diff options
author | Adam Goodman <akgood@duosecurity.com> | 2014-07-09 10:42:07 -0400 |
---|---|---|
committer | Adam Goodman <akgood@duosecurity.com> | 2014-07-09 10:46:09 -0400 |
commit | ab3093ffe7dcc058cbd1b22ecb32b715ca47d6d2 (patch) | |
tree | f144bd9ea8d8b7e5ee82a0ff9915e3f4ef3ecb52 | |
parent | 728b7e4c77c5075a36308781355adc0bc68bde94 (diff) | |
download | cryptography-ab3093ffe7dcc058cbd1b22ecb32b715ca47d6d2.tar.gz cryptography-ab3093ffe7dcc058cbd1b22ecb32b715ca47d6d2.tar.bz2 cryptography-ab3093ffe7dcc058cbd1b22ecb32b715ca47d6d2.zip |
reorder libssl/libcrypto on linker command line
-rw-r--r-- | cryptography/hazmat/bindings/openssl/binding.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cryptography/hazmat/bindings/openssl/binding.py b/cryptography/hazmat/bindings/openssl/binding.py index 4cd1b89b..372ee49e 100644 --- a/cryptography/hazmat/bindings/openssl/binding.py +++ b/cryptography/hazmat/bindings/openssl/binding.py @@ -96,7 +96,10 @@ class Binding(object): # OpenSSL goes by a different library name on different operating # systems. if sys.platform != "win32": - libraries = ["crypto", "ssl"] + # In some circumstances, the order in which these libs are specified + # on the linker command-line is significant; libssl must come before + # libcrypto (http://marc.info/?l=openssl-users&m=135361825921871) + libraries = ["ssl", "crypto"] else: # pragma: no cover link_type = os.environ.get("PYCA_WINDOWS_LINK_TYPE", "static") libraries = _get_windows_libraries(link_type) |