{"action":"created","comment":{"url":"https://api.github.com/repos/pyca/cryptography/pulls/comments/30910340","id":30910340,"diff_hunk":"@@ -56,6 +56,80 @@\n                                        [\"code\", \"lib\", \"func\", \"reason\"])\n \n \n+def _encode_asn1_int(backend, x):\n+    i = backend._lib.ASN1_INTEGER_new()\n+    # i = backend._ffi.gc(i, backend._lib.ASN1_INTEGER_free)\n+    backend._lib.ASN1_INTEGER_set(i, x)\n+    return i\n+\n+\n+def _encode_asn1_str(backend, x, n):\n+    s = backend._lib.ASN1_OCTET_STRING_new()\n+    # s = backend._ffi.gc(s, backend._lib.ASN1_OCTET_STRING_free)","path":"src/cryptography/hazmat/backends/openssl/backend.py","position":22,"original_position":22,"commit_id":"fe8c73dd2928acadd1189cda8cecac74818add6b","original_commit_id":"fe8c73dd2928acadd1189cda8cecac74818add6b","user":{"login":"reaperhulk","id":161495,"avatar_url":"https://avatars.githubusercontent.com/u/161495?v=3","gravatar_id":"","url":"https://api.github.com/users/reaperhulk","html_url":"https://github.com/reaperhulk","followers_url":"https://api.github.com/users/reaperhulk/followers","following_url":"https://api.github.com/users/reaperhulk/following{/other_user}","gists_url":"https://api.github.com/users/reaperhulk/gists{/gist_id}","starred_url":"https://api.github.com/users/reaperhulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaperhulk/subscriptions","organizations_url":"https://api.github.com/users/reaperhulk/orgs","repos_url":"https://api.github.com/users/reaperhulk/repos","events_url":"https://api.github.com/users/reaperhulk/events{/privacy}","received_events_url":"https://api.github.com/users/reaperhulk/received_events","type":"User","site_admin":false},"body":"(Same)","created_at":"2015-05-22T16:34:40Z","updated_at":"2015-05-22T16:34:40Z","html_url":"https://github.com/pyca/cryptography/pull/1927#discussion_r30910340","pull_request_url":"https://api.github.com/repos/pyca/cryptography/pulls/1927","_links":{"self":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/comments/30910340"},"html":{"href":"https://github.com/pyca/cryptography/pull/1927#discussion_r30910340"},"pull_request":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/1927"}}},"pull_request":{"url":"https://api.github.com/repos/pyca/cryptography/pulls/1927","id":35189419,"html_url":"https://github.com/pyca/cryptography/pull/1927","diff_url":"https://github.com/pyca/cryptography/pull/1927.diff","patch_url":"https://github.com/pyca/cryptography/pull/1927.patch","issue_url":"https://api.github.com/repos/pyca/cryptography/issues/1927","number":1927,"state":"open","locked":false,"title":"Adds CSR builder.","user":{"login":"AndreLouisCaron","id":135974,"avatar_url":"https://avatars.githubusercontent.com/u/135974?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreLouisCaron","html_url":"https://github.com/AndreLouisCaron","followers_url":"https://api.github.com/users/AndreLouisCaron/followers","following_url":"https://api.github.com/users/AndreLouisCaron/following{/other_user}","gists_url":"https://api.github.com/users/AndreLouisCaron/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreLouisCaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreLouisCaron/subscriptions","organizations_url":"https://api.github.com/users/AndreLouisCaron/orgs","repos_url":"https://api.github.com/users/AndreLouisCaron/repos","events_url":"https://api.github.com/users/AndreLouisCaron/events{/privacy}","received_events_url":"https://api.github.com/users/AndreLouisCaron/received_events","type":"User","site_admin":false},"body":"This is a stripped down and rebased version of pull request #1914 with only the CSR builder.","created_at":"2015-05-12T03:00:39Z","updated_at":"2015-05-22T16:34:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2288c1aa6d3130e345d2d2867b6cd32f7589cbe","assignee":null,"milestone":{"url":"https://api.github.com/repos/pyca/cryptography/milestones/11","html_url":"https://github.com/pyca/cryptography/milestones/Tenth%20Release","labels_url":"https://api.github.com/repos/pyca/cryptography/milestones/11/labels","id":1099545,"number":11,"title":"Tenth Release","description":"","creator":{"login":"reaperhulk","id":161495,"avatar_url":"https://avatars.githubusercontent.com/u/161495?v=3","gravatar_id":"","url":"https://api.github.com/users/reaperhulk","html_url":"https://github.com/reaperhulk","followers_url":"https://api.github.com/users/reaperhulk/followers","following_url":"https://api.github.com/users/reaperhulk/following{/other_user}","gists_url":"https://api.github.com/users/reaperhulk/gists{/gist_id}","starred_url":"https://api.github.com/users/reaperhulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaperhulk/subscriptions","organizations_url":"https://api.github.com/users/reaperhulk/orgs","repos_url":"https://api.github.com/users/reaperhulk/repos","events_url":"https://api.github.com/users/reaperhulk/events{/privacy}","received_events_url":"https://api.github.com/users/reaperhulk/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":21,"state":"open","created_at":"2015-05-07T04:01:32Z","updated_at":"2015-05-20T20:21:30Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/pyca/cryptography/pulls/1927/commits","review_comments_url":"https://api.github.com/repos/pyca/cryptography/pulls/1927/comments","review_comment_url":"https://api.github.com/repos/pyca/cryptography/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyca/cryptography/issues/1927/comments","statuses_url":"https://api.github.com/repos/pyca/cryptography/statuses/fe8c73dd2928acadd1189cda8cecac74818add6b","head":{"label":"AndreLouisCaron:csr-builder","ref":"csr-builder","sha":"fe8c73dd2928acadd1189cda8cecac74818add6b","user":{"login":"AndreLouisCaron","id":135974,"avatar_url":"https://avatars.githubusercontent.com/u/135974?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreLouisCaron","html_url":"https://github.com/AndreLouisCaron","followers_url":"https://api.github.com/users/AndreLouisCaron/followers","following_url":"https://api.github.com/users/AndreLouisCaron/following{/other_user}","gists_url":"https://api.github.com/users/AndreLouisCaron/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreLouisCaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreLouisCaron/subscriptions","organizations_url":"https://api.github.com/users/AndreLouisCaron/orgs","repos_url":"https://api.github.com/users/AndreLouisCaron/repos","events_url":"https://api.github.com/users/AndreLouisCaron/events{/privacy}","received_events_url":"https://api.github.com/users/AndreLouisCaron/received_events","type":"User","site_admin":false},"repo":{"id":35314809,"name":"cryptography","full_name":"AndreLouisCaron/cryptography","owner":{"login":"AndreLouisCaron","id":135974,"avatar_url":"https://avatars.githubusercontent.com/u/135974?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreLouisCaron","html_url":"https://github.com/AndreLouisCaron","followers_url":"https://api.github.com/users/AndreLouisCaron/followers","following_url":"https://api.github.com/users/AndreLouisCaron/following{/other_user}","gists_url":"https://api.github.com/users/AndreLouisCaron/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreLouisCaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreLouisCaron/subscriptions","organizations_url":"https://api.github.com/users/AndreLouisCaron/orgs","repos_url":"https://api.github.com/users/AndreLouisCaron/repos","events_url":"https://api.github.com/users/AndreLouisCaron/events{/privacy}","received_events_url":"https://api.github.com/users/AndreLouisCaron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndreLouisCaron/cryptography","description":"cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.","fork":true,"url":"https://api.github.com/repos/AndreLouisCaron/cryptography","forks_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/forks","keys_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/teams","hooks_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/hooks","issue_events_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/issues/events{/number}","events_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/events","assignees_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/assignees{/user}","branches_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/branches{/branch}","tags_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/tags","blobs_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/statuses/{sha}","languages_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/languages","stargazers_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/stargazers","contributors_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/contributors","subscribers_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/subscribers","subscription_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/subscription","commits_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/contents/{+path}","compare_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/merges","archive_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/downloads","issues_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/issues{/number}","pulls_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/pulls{/number}","milestones_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/milestones{/number}","notifications_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/labels{/name}","releases_url":"https://api.github.com/repos/AndreLouisCaron/cryptography/releases{/id}","created_at":"2015-05-09T04:20:57Z","updated_at":"2015-05-09T04:21:04Z","pushed_at":"2015-05-20T12:39:03Z","git_url":"git://github.com/AndreLouisCaron/cryptography.git","ssh_url":"git@github.com:AndreLouisCaron/cryptography.git","clone_url":"https://github.com/AndreLouisCaron/cryptography.git","svn_url":"https://github.com/AndreLouisCaron/cryptography","homepage":"https://cryptography.io/","size":30291,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pyca:master","ref":"master","sha":"f2646557cbe6ee7dc8c338ad60b188a8ab1978ab","user":{"login":"pyca","id":5615737,"avatar_url":"https://avatars.githubusercontent.com/u/5615737?v=3","gravatar_id":"","url":"https://api.github.com/users/pyca","html_url":"https://github.com/pyca","followers_url":"https://api.github.com/users/pyca/followers","following_url":"https://api.github.com/users/pyca/following{/other_user}","gists_url":"https://api.github.com/users/pyca/gists{/gist_id}","starred_url":"https://api.github.com/users/pyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyca/subscriptions","organizations_url":"https://api.github.com/users/pyca/orgs","repos_url":"https://api.github.com/users/pyca/repos","events_url":"https://api.github.com/users/pyca/events{/privacy}","received_events_url":"https://api.github.com/users/pyca/received_events","type":"Organization","site_admin":false},"repo":{"id":11939484,"name":"cryptography","full_name":"pyca/cryptography","owner":{"login":"pyca","id":5615737,"avatar_url":"https://avatars.githubusercontent.com/u/5615737?v=3","gravatar_id":"","url":"https://api.github.com/users/pyca","html_url":"https://github.com/pyca","followers_url":"https://api.github.com/users/pyca/followers","following_url":"https://api.github.com/users/pyca/following{/other_user}","gists_url":"https://api.github.com/users/pyca/gists{/gist_id}","starred_url":"https://api.github.com/users/pyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyca/subscriptions","organizations_url":"https://api.github.com/users/pyca/orgs","repos_url":"https://api.github.com/users/pyca/repos","events_url":"https://api.github.com/users/pyca/events{/privacy}","received_events_url":"https://api.github.com/users/pyca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyca/cryptography","description":"cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.","fork":false,"url":"https://api.github.com/repos/pyca/cryptography","forks_url":"https://api.github.com/repos/pyca/cryptography/forks","keys_url":"https://api.github.com/repos/pyca/cryptography/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyca/cryptography/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyca/cryptography/teams","hooks_url":"https://api.github.com/repos/pyca/cryptography/hooks","issue_events_url":"https://api.github.com/repos/pyca/cryptography/issues/events{/number}","events_url":"https://api.github.com/repos/pyca/cryptography/events","assignees_url":"https://api.github.com/repos/pyca/cryptography/assignees{/user}","branches_url":"https://api.github.com/repos/pyca/cryptography/branches{/branch}","tags_url":"https://api.github.com/repos/pyca/cryptography/tags","blobs_url":"https://api.github.com/repos/pyca/cryptography/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyca/cryptography/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyca/cryptography/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyca/cryptography/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyca/cryptography/statuses/{sha}","languages_url":"https://api.github.com/repos/pyca/cryptography/languages","stargazers_url":"https://api.github.com/repos/pyca/cryptography/stargazers","contributors_url":"https://api.github.com/repos/pyca/cryptography/contributors","subscribers_url":"https://api.github.com/repos/pyca/cryptography/subscribers","subscription_url":"https://api.github.com/repos/pyca/cryptography/subscription","commits_url":"https://api.github.com/repos/pyca/cryptography/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyca/cryptography/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyca/cryptography/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyca/cryptography/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyca/cryptography/contents/{+path}","compare_url":"https://api.github.com/repos/pyca/cryptography/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyca/cryptography/merges","archive_url":"https://api.github.com/repos/pyca/cryptography/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyca/cryptography/downloads","issues_url":"https://api.github.com/repos/pyca/cryptography/issues{/number}","pulls_url":"https://api.github.com/repos/pyca/cryptography/pulls{/number}","milestones_url":"https://api.github.com/repos/pyca/cryptography/milestones{/number}","notifications_url":"https://api.github.com/repos/pyca/cryptography/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyca/cryptography/labels{/name}","releases_url":"https://api.github.com/repos/pyca/cryptography/releases{/id}","created_at":"2013-08-07T02:23:38Z","updated_at":"2015-05-21T15:15:18Z","pushed_at":"2015-05-21T23:13:12Z","git_url":"git://github.com/pyca/cryptography.git","ssh_url":"git@github.com:pyca/cryptography.git","clone_url":"https://github.com/pyca/cryptography.git","svn_url":"https://github.com/pyca/cryptography","homepage":"https://cryptography.io/","size":43684,"stargazers_count":695,"watchers_count":695,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":158,"mirror_url":null,"open_issues_count":111,"forks":158,"open_issues":111,"watchers":695,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/1927"},"html":{"href":"https://github.com/pyca/cryptography/pull/1927"},"issue":{"href":"https://api.github.com/repos/pyca/cryptography/issues/1927"},"comments":{"href":"https://api.github.com/repos/pyca/cryptography/issues/1927/comments"},"review_comments":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/1927/comments"},"review_comment":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyca/cryptography/pulls/1927/commits"},"statuses":{"href":"https://api.github.com/repos/pyca/cryptography/statuses/fe8c73dd2928acadd1189cda8cecac74818add6b"}}}}