{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/4029","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/4029/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/4029/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/4029/events","html_url":"https://github.com/nim-lang/Nim/pull/4029","id":145483885,"number":4029,"title":"openssl: fix compatibility with OpenSSL 1.0.2","user":{"login":"PeterCxy","id":4532423,"avatar_url":"https://avatars.githubusercontent.com/u/4532423?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterCxy","html_url":"https://github.com/PeterCxy","followers_url":"https://api.github.com/users/PeterCxy/followers","following_url":"https://api.github.com/users/PeterCxy/following{/other_user}","gists_url":"https://api.github.com/users/PeterCxy/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterCxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterCxy/subscriptions","organizations_url":"https://api.github.com/users/PeterCxy/orgs","repos_url":"https://api.github.com/users/PeterCxy/repos","events_url":"https://api.github.com/users/PeterCxy/events{/privacy}","received_events_url":"https://api.github.com/users/PeterCxy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-03T11:33:28Z","updated_at":"2016-04-03T14:50:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nim-lang/Nim/pulls/4029","html_url":"https://github.com/nim-lang/Nim/pull/4029","diff_url":"https://github.com/nim-lang/Nim/pull/4029.diff","patch_url":"https://github.com/nim-lang/Nim/pull/4029.patch"},"body":"OpenSSL has removed SSLv3 support in 1.0.2 and thus `SSLv3_method()` is\r\nno longer available. If an SSL-enabled Nim program runs on a system with\r\nOpenSSL 1.0.2, an error `could not import SSLv3_method` will occur.\r\n\r\nThis commit adds a flag `nosslv3`. When enabled, the `SSLv3_method()`\r\nwill be replaced with a stub function, and thus it will run properly\r\nwith OpenSSL 1.0.2 while not breaking any other module. Of course, the\r\nmodules will not be able to connect to SSLv3 servers with this enabled."},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/204992180","html_url":"https://github.com/nim-lang/Nim/pull/4029#issuecomment-204992180","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/4029","id":204992180,"user":{"login":"PeterCxy","id":4532423,"avatar_url":"https://avatars.githubusercontent.com/u/4532423?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterCxy","html_url":"https://github.com/PeterCxy","followers_url":"https://api.github.com/users/PeterCxy/followers","following_url":"https://api.github.com/users/PeterCxy/following{/other_user}","gists_url":"https://api.github.com/users/PeterCxy/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterCxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterCxy/subscriptions","organizations_url":"https://api.github.com/users/PeterCxy/orgs","repos_url":"https://api.github.com/users/PeterCxy/repos","events_url":"https://api.github.com/users/PeterCxy/events{/privacy}","received_events_url":"https://api.github.com/users/PeterCxy/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T14:50:14Z","updated_at":"2016-04-03T14:50:14Z","body":"So the problem is if my program imports `net` or any other procedures that require the module, the `SSLv3_init` will not be `dead code`. I encountered that error when playing with `httpclient`"}}