{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSC/OpenSC/issues/654","labels_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/654/labels{/name}","comments_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/654/comments","events_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/654/events","html_url":"https://github.com/OpenSC/OpenSC/pull/654","id":125192149,"number":654,"title":"Changes needed for OpenSSL 1.1","user":{"login":"dengert","id":865329,"avatar_url":"https://avatars.githubusercontent.com/u/865329?v=3","gravatar_id":"","url":"https://api.github.com/users/dengert","html_url":"https://github.com/dengert","followers_url":"https://api.github.com/users/dengert/followers","following_url":"https://api.github.com/users/dengert/following{/other_user}","gists_url":"https://api.github.com/users/dengert/gists{/gist_id}","starred_url":"https://api.github.com/users/dengert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dengert/subscriptions","organizations_url":"https://api.github.com/users/dengert/orgs","repos_url":"https://api.github.com/users/dengert/repos","events_url":"https://api.github.com/users/dengert/events{/privacy}","received_events_url":"https://api.github.com/users/dengert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-06T15:01:28Z","updated_at":"2016-01-13T17:02:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenSC/OpenSC/pulls/654","html_url":"https://github.com/OpenSC/OpenSC/pull/654","diff_url":"https://github.com/OpenSC/OpenSC/pull/654.diff","patch_url":"https://github.com/OpenSC/OpenSC/pull/654.patch"},"body":"This change is the first cut at changes to OpenSC so it can be compiled against OpenSSL 1.1 as well as previous versions.\r\n\r\nOpenSSL 1.1 will be released later this year.\r\n\r\n\thttps://www.openssl.org/policies/releasestrat.html\r\n\r\n\thttps://www.openssl.org/news/changelog.html#x0\r\n\r\n17 OpenSC routines need changes ranging from adding headers for ossl_type.h, rsa.h and bn.h to rewriting code to use changed interfaces. \r\n\r\n5 routines that should be looked at closely are:\r\n\r\n\tsrc/libopensc/card-epass2003.c\r\n\tsrc/libopensc/pkcs15-itacns.c\r\n\tsrc/pkcs15init/pkcs15-oberthur-awp.c\r\n\tsrc/tools/pkcs15-init.c\r\n\tsrc/tools/sc-hsm-tool.c\r\n\r\nsrc/tools/sc-hsm-tool.c needs so many changes that I did not attempt to change it. If compiled against OpenSSL 1.1 it will produce a dummy routine, and a warning message.\r\nIt uses the BIGNUM structure in line in many places, but BIGNUM is now just a typedef and the actual structure is now hidden.\r\n@CardContact \r\nThe sc-hsm developers need to make the changes.\r\n\r\nI have compiles against OpenSSL 1.0.1g, 1.0.2d and 1.1.0-pre2-dev\r\nfrom github.com Minimal testing has been done.\r\n\r\nNext is engine and libp11 so ECDH can be used from engine."},"comment":{"url":"https://api.github.com/repos/OpenSC/OpenSC/issues/comments/171364698","html_url":"https://github.com/OpenSC/OpenSC/pull/654#issuecomment-171364698","issue_url":"https://api.github.com/repos/OpenSC/OpenSC/issues/654","id":171364698,"user":{"login":"dengert","id":865329,"avatar_url":"https://avatars.githubusercontent.com/u/865329?v=3","gravatar_id":"","url":"https://api.github.com/users/dengert","html_url":"https://github.com/dengert","followers_url":"https://api.github.com/users/dengert/followers","following_url":"https://api.github.com/users/dengert/following{/other_user}","gists_url":"https://api.github.com/users/dengert/gists{/gist_id}","starred_url":"https://api.github.com/users/dengert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dengert/subscriptions","organizations_url":"https://api.github.com/users/dengert/orgs","repos_url":"https://api.github.com/users/dengert/repos","events_url":"https://api.github.com/users/dengert/events{/privacy}","received_events_url":"https://api.github.com/users/dengert/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T17:02:40Z","updated_at":"2016-01-13T17:02:40Z","body":"For 1.1 @CardContact  to have a look at sc-hsm-tool.c. I could hahck at it, but would like them to look\r\nat the use of BIGNUM as in 1.1 it is hidden and must be acccesed by pointers and functions only. \r\n\r\n"}}