diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/_cffi_src/openssl/nid.py | 9 | ||||
-rw-r--r-- | src/cryptography/hazmat/bindings/openssl/_conditional.py | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/nid.py b/src/_cffi_src/openssl/nid.py index 5ee495ad..2cc4c2ae 100644 --- a/src/_cffi_src/openssl/nid.py +++ b/src/_cffi_src/openssl/nid.py @@ -9,6 +9,8 @@ INCLUDES = """ """ TYPES = """ +static const int Cryptography_HAS_X25519; + static const int NID_undef; static const int NID_dsa; static const int NID_dsaWithSHA; @@ -89,6 +91,7 @@ static const int NID_sect409k1; static const int NID_sect409r1; static const int NID_sect571k1; static const int NID_sect571r1; +static const int NID_X25519; static const int NID_wap_wsg_idm_ecid_wtls1; static const int NID_wap_wsg_idm_ecid_wtls3; static const int NID_wap_wsg_idm_ecid_wtls4; @@ -227,4 +230,10 @@ MACROS = """ """ CUSTOMIZATIONS = """ +#ifndef NID_X25519 +static const long Cryptography_HAS_X25519 = 0; +static const int NID_X25519 = 0; +#else +static const long Cryptography_HAS_X25519 = 1; +#endif """ diff --git a/src/cryptography/hazmat/bindings/openssl/_conditional.py b/src/cryptography/hazmat/bindings/openssl/_conditional.py index 7961bbea..942ac60b 100644 --- a/src/cryptography/hazmat/bindings/openssl/_conditional.py +++ b/src/cryptography/hazmat/bindings/openssl/_conditional.py @@ -173,4 +173,7 @@ CONDITIONAL_NAMES = { "X509_STORE_get_get_issuer", "X509_STORE_set_get_issuer", ], + "Cryptography_HAS_X25519": [ + "NID_X25519", + ], } |