Created
December 29, 2013 17:16
-
-
Save public/8172501 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cryptography.hazmat.backends | |
| b = cryptography.hazmat.backends.default_backend() | |
| print "%x" % b.lib.OPENSSL_VERSION_NUMBER | |
| print b.lib.EVP_get_cipherbyname("aes-128-gcm") | |
| diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py | |
| index 6231aad..ea43e30 100644 | |
| --- a/cryptography/hazmat/backends/openssl/backend.py | |
| +++ b/cryptography/hazmat/backends/openssl/backend.py | |
| @@ -154,7 +154,7 @@ class Backend(object): | |
| functions + | |
| customizations | |
| ), | |
| - libraries=["crypto", "ssl"], | |
| + libraries=[":libcrypto.so.0.9.8", ":libssl.so.0.9.8"], | |
| ) | |
| for name in cls._modules: | |
| (CRYPT)alexs@alexs-thinkpad:~/code/cryptography$ CFLAGS="-I/home/alexs/code/openssl/include" python v.py | |
| 90819f | |
| <cdata 'EVP_CIPHER *' NULL> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment