{"action":"created","issue":{"url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/24","labels_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/24/comments","events_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/24/events","html_url":"https://github.com/cl-plus-ssl/cl-plus-ssl/pull/24","id":120516636,"number":24,"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},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-12-05T01:01:20Z","updated_at":"2015-12-06T23:58:32Z","closed_at":"2015-12-06T18:26:24Z","pull_request":{"url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/pulls/24","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"},"body":"Provides `with-global-context` macro and `make-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-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"},"comment":{"url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/comments/162375888","html_url":"https://github.com/cl-plus-ssl/cl-plus-ssl/pull/24#issuecomment-162375888","issue_url":"https://api.github.com/repos/cl-plus-ssl/cl-plus-ssl/issues/24","id":162375888,"user":{"login":"avodonosov","id":2444,"avatar_url":"https://avatars.githubusercontent.com/u/2444?v=3","gravatar_id":"","url":"https://api.github.com/users/avodonosov","html_url":"https://github.com/avodonosov","followers_url":"https://api.github.com/users/avodonosov/followers","following_url":"https://api.github.com/users/avodonosov/following{/other_user}","gists_url":"https://api.github.com/users/avodonosov/gists{/gist_id}","starred_url":"https://api.github.com/users/avodonosov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avodonosov/subscriptions","organizations_url":"https://api.github.com/users/avodonosov/orgs","repos_url":"https://api.github.com/users/avodonosov/repos","events_url":"https://api.github.com/users/avodonosov/events{/privacy}","received_events_url":"https://api.github.com/users/avodonosov/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T23:58:32Z","updated_at":"2015-12-06T23:58:32Z","body":"This usocket example behaves the same for me"}}