{"action":"created","issue":{"url":"https://api.github.com/repos/ikod/dlang-requests/issues/57","repository_url":"https://api.github.com/repos/ikod/dlang-requests","labels_url":"https://api.github.com/repos/ikod/dlang-requests/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/ikod/dlang-requests/issues/57/comments","events_url":"https://api.github.com/repos/ikod/dlang-requests/issues/57/events","html_url":"https://github.com/ikod/dlang-requests/issues/57","id":269314205,"number":57,"title":"`requests.ssl_adapter.OpenSSL.OpenSSL_version_detect` is broken on armv7h","user":{"login":"ghost91-","id":236845,"avatar_url":"https://avatars1.githubusercontent.com/u/236845?v=4","gravatar_id":"","url":"https://api.github.com/users/ghost91-","html_url":"https://github.com/ghost91-","followers_url":"https://api.github.com/users/ghost91-/followers","following_url":"https://api.github.com/users/ghost91-/following{/other_user}","gists_url":"https://api.github.com/users/ghost91-/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost91-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost91-/subscriptions","organizations_url":"https://api.github.com/users/ghost91-/orgs","repos_url":"https://api.github.com/users/ghost91-/repos","events_url":"https://api.github.com/users/ghost91-/events{/privacy}","received_events_url":"https://api.github.com/users/ghost91-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-10-28T12:38:03Z","updated_at":"2017-10-29T13:40:54Z","closed_at":null,"author_association":"NONE","body":"Trying to use requests on my raspberry pi 3 using archlinux arm resultet in\r\n```\r\nobject.Exception@../.dub/packages/requests-0.5.3/requests/source/requests/ssl_adapter.d(103): loading openssl: unknown version for init\r\n```\r\nUpon further investigation, I found out that `requests.ssl_adapter.OpenSSL.OpenSSL_version_detect` actually returns `Version(1, 65)`, which obviously is nonsense. Making the function always return `Version(1, 1)` fixed it for me (1.1 is the version that is installed)."},"comment":{"url":"https://api.github.com/repos/ikod/dlang-requests/issues/comments/340263146","html_url":"https://github.com/ikod/dlang-requests/issues/57#issuecomment-340263146","issue_url":"https://api.github.com/repos/ikod/dlang-requests/issues/57","id":340263146,"user":{"login":"ikod","id":1273417,"avatar_url":"https://avatars2.githubusercontent.com/u/1273417?v=4","gravatar_id":"","url":"https://api.github.com/users/ikod","html_url":"https://github.com/ikod","followers_url":"https://api.github.com/users/ikod/followers","following_url":"https://api.github.com/users/ikod/following{/other_user}","gists_url":"https://api.github.com/users/ikod/gists{/gist_id}","starred_url":"https://api.github.com/users/ikod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikod/subscriptions","organizations_url":"https://api.github.com/users/ikod/orgs","repos_url":"https://api.github.com/users/ikod/repos","events_url":"https://api.github.com/users/ikod/events{/privacy}","received_events_url":"https://api.github.com/users/ikod/received_events","type":"User","site_admin":false},"created_at":"2017-10-29T13:40:54Z","updated_at":"2017-10-29T13:40:54Z","author_association":"OWNER","body":"there are two ponts here: \r\n\r\nhttps://manpages.debian.org/testing/libssl-doc/OpenSSL_version_num.3ssl.en.html\r\nclearly states that return value type is unsigned long (probably it is the same on ARM)\r\n\r\nNAME\r\nOPENSSL_VERSION_NUMBER, OpenSSL_version, OpenSSL_version_num - get OpenSSL version number\r\nSYNOPSIS\r\n #include <openssl/opensslv.h>\r\n #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL\r\n #include <openssl/crypto.h>\r\n unsigned long OpenSSL_version_num();\r\n const char *OpenSSL_version(int t);\r\n\r\nand at the same time it is obvious that only lower 32 bits of data used to store version info:\r\n `MNNFFPPS: major minor fix patch status`\r\n\r\nI'd like to avoid conflict with openssl library definition and I don't see a reason for it if I can do this in clear and legal way.\r\n\r\nAnyway, thanks a lot for your report and investigation, I'll roll out release with fix in few days.\r\n\r\n"}}
{"actor":{"display_login":"ikod"}}