diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-09-26 13:38:36 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2018-09-26 14:38:36 -0400 |
commit | 1717f8c998b22fbbebec4b5514aee42fb3a2f68d (patch) | |
tree | 5992e22e5b74ae27a118b8859388a5e2ab53dbac /src/_cffi_src/openssl/nid.py | |
parent | 0a7bebfaf710d3691cec311d13be7725af4b93cc (diff) | |
download | cryptography-1717f8c998b22fbbebec4b5514aee42fb3a2f68d.tar.gz cryptography-1717f8c998b22fbbebec4b5514aee42fb3a2f68d.tar.bz2 cryptography-1717f8c998b22fbbebec4b5514aee42fb3a2f68d.zip |
add ed25519 bindings (#4476)
* add ed25519 bindings
* var name
Diffstat (limited to 'src/_cffi_src/openssl/nid.py')
-rw-r--r-- | src/_cffi_src/openssl/nid.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/nid.py b/src/_cffi_src/openssl/nid.py index ee739c1b..03aaee92 100644 --- a/src/_cffi_src/openssl/nid.py +++ b/src/_cffi_src/openssl/nid.py @@ -10,6 +10,7 @@ INCLUDES = """ TYPES = """ static const int Cryptography_HAS_X25519; +static const int Cryptography_HAS_ED25519; static const int NID_undef; static const int NID_dsa; @@ -92,6 +93,7 @@ static const int NID_sect409r1; static const int NID_sect571k1; static const int NID_sect571r1; static const int NID_X25519; +static const int NID_ED25519; 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; @@ -233,4 +235,10 @@ static const int NID_X25519 = 0; #else static const long Cryptography_HAS_X25519 = 1; #endif +#ifndef NID_ED25519 +static const long Cryptography_HAS_ED25519 = 0; +static const int NID_ED25519 = 0; +#else +static const long Cryptography_HAS_ED25519 = 1; +#endif """ |