diff options
author | Jeff Tang <mrjefftang@gmail.com> | 2014-04-16 14:52:41 -0400 |
---|---|---|
committer | Jeff Tang <mrjefftang@gmail.com> | 2014-04-16 14:52:41 -0400 |
commit | 5a7fd73a82310f949646127382055c8ccf9c7853 (patch) | |
tree | ff2b5547c4b56ae04d2595ac74ef359dc5ea96e8 | |
parent | 380e61372737dd9f90464900cf924965be9f5f2f (diff) | |
download | cryptography-5a7fd73a82310f949646127382055c8ccf9c7853.tar.gz cryptography-5a7fd73a82310f949646127382055c8ccf9c7853.tar.bz2 cryptography-5a7fd73a82310f949646127382055c8ccf9c7853.zip |
Add customizations for OPENSSL_NO_EC to EVP
-rw-r--r-- | cryptography/hazmat/bindings/openssl/evp.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/evp.py b/cryptography/hazmat/bindings/openssl/evp.py index 5ffbe43f..f2a7599d 100644 --- a/cryptography/hazmat/bindings/openssl/evp.py +++ b/cryptography/hazmat/bindings/openssl/evp.py @@ -213,6 +213,11 @@ int (*Cryptography_EVP_PKEY_encrypt)(EVP_PKEY_CTX *, unsigned char *, size_t *, int (*Cryptography_EVP_PKEY_decrypt)(EVP_PKEY_CTX *, unsigned char *, size_t *, const unsigned char *, size_t) = NULL; #endif +#ifdef OPENSSL_NO_EC +static const int EVP_PKEY_EC = 0; +int (*EVP_PKEY_assign_EC_KEY)(EVP_PKEY *, EC_KEY *) = NULL; +#endif + """ CONDITIONAL_NAMES = { @@ -238,5 +243,9 @@ CONDITIONAL_NAMES = { "Cryptography_EVP_PKEY_decrypt", "EVP_PKEY_decrypt_init", "EVP_PKEY_CTX_set_signature_md", + ], + "Cryptography_HAS_EC": [ + "EVP_PKEY_EC", + "EVP_PKEY_assign_EC_KEY", ] } |