{"action":"created","comment":{"url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/comments/46768786","id":46768786,"diff_hunk":"@@ -23,4 +23,11 @@\n            #:ssl-set-global-default-verify-paths\n            #:ssl-error-verify\n            #:ssl-error-stream\n-           #:ssl-error-code))\n+           #:ssl-error-code\n+\n+           #:+ssl-verify-none+\n+           #:+ssl-verify-peer+\n+           #:+ssl-verify-fail-if-no-peer-cert+\n+           #:+ssl-verify--client-once+","path":"package.lisp","position":10,"original_position":10,"commit_id":"9965085a5787b5c9733f19107f34418b9c6eafc8","original_commit_id":"9965085a5787b5c9733f19107f34418b9c6eafc8","user":{"login":"deadtrickster","id":172311,"avatar_url":"https://avatars.githubusercontent.com/u/172311?v=3","gravatar_id":"","url":"https://api.github.com/users/deadtrickster","html_url":"https://github.com/deadtrickster","followers_url":"https://api.github.com/users/deadtrickster/followers","following_url":"https://api.github.com/users/deadtrickster/following{/other_user}","gists_url":"https://api.github.com/users/deadtrickster/gists{/gist_id}","starred_url":"https://api.github.com/users/deadtrickster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadtrickster/subscriptions","organizations_url":"https://api.github.com/users/deadtrickster/orgs","repos_url":"https://api.github.com/users/deadtrickster/repos","events_url":"https://api.github.com/users/deadtrickster/events{/privacy}","received_events_url":"https://api.github.com/users/deadtrickster/received_events","type":"User","site_admin":false},"body":"yes","created_at":"2015-12-06T10:30:19Z","updated_at":"2015-12-06T10:30:19Z","html_url":"https://github.com/cl-plus-ssl/cl-plus-ssl/pull/24#discussion_r46768786","pull_request_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/comments/46768786"},"html":{"href":"https://github.com/cl-plus-ssl/cl-plus-ssl/pull/24#discussion_r46768786"},"pull_request":{"href":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/24","id":52740990,"html_url":"https://github.com/cl-plus-ssl/cl-plus-ssl/pull/24","diff_url":"https://github.com/cl-plus-ssl/cl-plus-ssl/pull/24.diff","patch_url":"https://github.com/cl-plus-ssl/cl-plus-ssl/pull/24.patch","issue_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/24","number":24,"state":"open","locked":false,"title":"Make-context","user":{"login":"deadtrickster","id":172311,"avatar_url":"https://avatars.githubusercontent.com/u/172311?v=3","gravatar_id":"","url":"https://api.github.com/users/deadtrickster","html_url":"https://github.com/deadtrickster","followers_url":"https://api.github.com/users/deadtrickster/followers","following_url":"https://api.github.com/users/deadtrickster/following{/other_user}","gists_url":"https://api.github.com/users/deadtrickster/gists{/gist_id}","starred_url":"https://api.github.com/users/deadtrickster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadtrickster/subscriptions","organizations_url":"https://api.github.com/users/deadtrickster/orgs","repos_url":"https://api.github.com/users/deadtrickster/repos","events_url":"https://api.github.com/users/deadtrickster/events{/privacy}","received_events_url":"https://api.github.com/users/deadtrickster/received_events","type":"User","site_admin":false},"body":"Provides `with-global-context` macro and `make-global-context` function\r\n\r\nCan help with problems like described here: \r\nhttps://github.com/edicl/drakma/issues/50\r\n\r\nExamples:\r\n\r\n```lisp\r\n(cl+ssl:with-global-context \r\n    (cl+ssl:make-context :verify-location \"/etc/ssl/certs\")\r\n  (drakma:http-request \"https://google.com\" :force-ssl t))\r\n```\r\n\r\n```lisp\r\n(cl+ssl:with-global-context \r\n    (cl+ssl:make-context :verify-mode cl+ssl::+ssl-verify-none+)\r\n  (drakma:http-request \"https://incomplete-chain.badssl.com/\"))\r\n```\r\n\r\n```lisp\r\n(cl+ssl:with-global-context \r\n    (cl+ssl:make-context :verify-mode cl+ssl::+ssl-verify-peer+)\r\n  (drakma:http-request \"https://incomplete-chain.badssl.com/\"))\r\n\r\nSSL verify error: 20 X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY\r\n```\r\n\r\n```lisp\r\n(cl+ssl:with-global-context \r\n    (cl+ssl:make-context :verify-mode cl+ssl::+ssl-verify-peer+ :verify-callback nil)\r\n  (drakma:http-request \"https://incomplete-chain.badssl.com/\"))\r\n\r\nA failure in the SSL library occurred on handle #.(SB-SYS:INT-SAP #X7FFE6825EC40) (return code: 1).\r\nSSL error queue:\r\nerror:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed\r\n```\r\n","created_at":"2015-12-05T01:01:20Z","updated_at":"2015-12-06T10:30:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df74a6e2a84c1879ab6be3282b1bf42bb957f65a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/24/commits","review_comments_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/24/comments","review_comment_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/24/comments","statuses_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/statuses/9965085a5787b5c9733f19107f34418b9c6eafc8","head":{"label":"deadtrickster:make-context","ref":"make-context","sha":"9965085a5787b5c9733f19107f34418b9c6eafc8","user":{"login":"deadtrickster","id":172311,"avatar_url":"https://avatars.githubusercontent.com/u/172311?v=3","gravatar_id":"","url":"https://api.github.com/users/deadtrickster","html_url":"https://github.com/deadtrickster","followers_url":"https://api.github.com/users/deadtrickster/followers","following_url":"https://api.github.com/users/deadtrickster/following{/other_user}","gists_url":"https://api.github.com/users/deadtrickster/gists{/gist_id}","starred_url":"https://api.github.com/users/deadtrickster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadtrickster/subscriptions","organizations_url":"https://api.github.com/users/deadtrickster/orgs","repos_url":"https://api.github.com/users/deadtrickster/repos","events_url":"https://api.github.com/users/deadtrickster/events{/privacy}","received_events_url":"https://api.github.com/users/deadtrickster/received_events","type":"User","site_admin":false},"repo":{"id":24335530,"name":"cl-plus-ssl","full_name":"deadtrickster/cl-plus-ssl","owner":{"login":"deadtrickster","id":172311,"avatar_url":"https://avatars.githubusercontent.com/u/172311?v=3","gravatar_id":"","url":"https://api.github.com/users/deadtrickster","html_url":"https://github.com/deadtrickster","followers_url":"https://api.github.com/users/deadtrickster/followers","following_url":"https://api.github.com/users/deadtrickster/following{/other_user}","gists_url":"https://api.github.com/users/deadtrickster/gists{/gist_id}","starred_url":"https://api.github.com/users/deadtrickster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadtrickster/subscriptions","organizations_url":"https://api.github.com/users/deadtrickster/orgs","repos_url":"https://api.github.com/users/deadtrickster/repos","events_url":"https://api.github.com/users/deadtrickster/events{/privacy}","received_events_url":"https://api.github.com/users/deadtrickster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deadtrickster/cl-plus-ssl","description":"Common Lisp bindings to OpenSSL.","fork":true,"url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl","forks_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/forks","keys_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/teams","hooks_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/hooks","issue_events_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/issues/events{/number}","events_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/events","assignees_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/assignees{/user}","branches_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/branches{/branch}","tags_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/tags","blobs_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/statuses/{sha}","languages_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/languages","stargazers_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/stargazers","contributors_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/contributors","subscribers_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/subscribers","subscription_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/subscription","commits_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/contents/{+path}","compare_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/merges","archive_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/downloads","issues_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/issues{/number}","pulls_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/pulls{/number}","milestones_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/milestones{/number}","notifications_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/labels{/name}","releases_url":"https://api.github.com/repos/deadtrickster/cl-plus-ssl/releases{/id}","created_at":"2014-09-22T16:04:27Z","updated_at":"2014-09-25T21:04:47Z","pushed_at":"2015-12-05T21:08:47Z","git_url":"git://github.com/deadtrickster/cl-plus-ssl.git","ssh_url":"git@github.com:deadtrickster/cl-plus-ssl.git","clone_url":"https://github.com/deadtrickster/cl-plus-ssl.git","svn_url":"https://github.com/deadtrickster/cl-plus-ssl","homepage":null,"size":127,"stargazers_count":0,"watchers_count":0,"language":"Common Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"check-host/email/ip"}},"base":{"label":"cl-plus-ssl:master","ref":"master","sha":"37038827657382996eadecde53ffbccf6684748f","user":{"login":"cl-plus-ssl","id":6634908,"avatar_url":"https://avatars.githubusercontent.com/u/6634908?v=3","gravatar_id":"","url":"https://api.github.com/users/cl-plus-ssl","html_url":"https://github.com/cl-plus-ssl","followers_url":"https://api.github.com/users/cl-plus-ssl/followers","following_url":"https://api.github.com/users/cl-plus-ssl/following{/other_user}","gists_url":"https://api.github.com/users/cl-plus-ssl/gists{/gist_id}","starred_url":"https://api.github.com/users/cl-plus-ssl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cl-plus-ssl/subscriptions","organizations_url":"https://api.github.com/users/cl-plus-ssl/orgs","repos_url":"https://api.github.com/users/cl-plus-ssl/repos","events_url":"https://api.github.com/users/cl-plus-ssl/events{/privacy}","received_events_url":"https://api.github.com/users/cl-plus-ssl/received_events","type":"Organization","site_admin":false},"repo":{"id":16681900,"name":"cl-plus-ssl","full_name":"cl-plus-ssl/cl-plus-ssl","owner":{"login":"cl-plus-ssl","id":6634908,"avatar_url":"https://avatars.githubusercontent.com/u/6634908?v=3","gravatar_id":"","url":"https://api.github.com/users/cl-plus-ssl","html_url":"https://github.com/cl-plus-ssl","followers_url":"https://api.github.com/users/cl-plus-ssl/followers","following_url":"https://api.github.com/users/cl-plus-ssl/following{/other_user}","gists_url":"https://api.github.com/users/cl-plus-ssl/gists{/gist_id}","starred_url":"https://api.github.com/users/cl-plus-ssl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cl-plus-ssl/subscriptions","organizations_url":"https://api.github.com/users/cl-plus-ssl/orgs","repos_url":"https://api.github.com/users/cl-plus-ssl/repos","events_url":"https://api.github.com/users/cl-plus-ssl/events{/privacy}","received_events_url":"https://api.github.com/users/cl-plus-ssl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cl-plus-ssl/cl-plus-ssl","description":"Common Lisp bindings to OpenSSL.","fork":false,"url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl","forks_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/forks","keys_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/teams","hooks_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/hooks","issue_events_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/events{/number}","events_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/events","assignees_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/assignees{/user}","branches_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/branches{/branch}","tags_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/tags","blobs_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/statuses/{sha}","languages_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/languages","stargazers_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/stargazers","contributors_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/contributors","subscribers_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/subscribers","subscription_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/subscription","commits_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/contents/{+path}","compare_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/merges","archive_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/downloads","issues_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues{/number}","pulls_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls{/number}","milestones_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/milestones{/number}","notifications_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/labels{/name}","releases_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/releases{/id}","created_at":"2014-02-10T02:20:20Z","updated_at":"2015-11-15T16:58:04Z","pushed_at":"2015-12-05T21:08:48Z","git_url":"git://github.com/cl-plus-ssl/cl-plus-ssl.git","ssh_url":"git@github.com:cl-plus-ssl/cl-plus-ssl.git","clone_url":"https://github.com/cl-plus-ssl/cl-plus-ssl.git","svn_url":"https://github.com/cl-plus-ssl/cl-plus-ssl","homepage":null,"size":161,"stargazers_count":9,"watchers_count":9,"language":"Common Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":3,"forks":8,"open_issues":3,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/24"},"html":{"href":"https://github.com/cl-plus-ssl/cl-plus-ssl/pull/24"},"issue":{"href":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/24"},"comments":{"href":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/statuses/9965085a5787b5c9733f19107f34418b9c6eafc8"}}}}