Skip to content

Instantly share code, notes, and snippets.

@public
Created December 29, 2013 17:16
Show Gist options
  • Select an option

  • Save public/8172501 to your computer and use it in GitHub Desktop.

Select an option

Save public/8172501 to your computer and use it in GitHub Desktop.
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