diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2020-12-01 10:10:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-01 09:10:56 -0600 |
| commit | a2096694853aed0828d0aaf38e364577a52b3780 (patch) | |
| tree | ea969d16ff5deb755b9a5b369627bf5eef33c53c /src/cryptography | |
| parent | 6d858c8bacc86da7dd1f9907f134767a0c8f91de (diff) | |
| download | cryptography-a2096694853aed0828d0aaf38e364577a52b3780.tar.gz | |
Added tls bindings for new OpenSSL APIs (#5595)
fixes #5379
closes #5483
Diffstat (limited to 'src/cryptography')
| -rw-r--r-- | src/cryptography/hazmat/bindings/openssl/_conditional.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/_conditional.py b/src/cryptography/hazmat/bindings/openssl/_conditional.py index d990999cd..ca50fed13 100644 --- a/src/cryptography/hazmat/bindings/openssl/_conditional.py +++ b/src/cryptography/hazmat/bindings/openssl/_conditional.py @@ -262,6 +262,15 @@ def cryptography_has_srtp(): ] +def cryptography_has_get_proto_version(): + return [ + "SSL_CTX_get_min_proto_version", + "SSL_CTX_get_max_proto_version", + "SSL_get_min_proto_version", + "SSL_get_max_proto_version", + ] + + # This is a mapping of # {condition: function-returning-names-dependent-on-that-condition} so we can # loop over them and delete unsupported names at runtime. It will be removed @@ -309,4 +318,5 @@ CONDITIONAL_NAMES = { "Cryptography_HAS_ENGINE": cryptography_has_engine, "Cryptography_HAS_VERIFIED_CHAIN": cryptography_has_verified_chain, "Cryptography_HAS_SRTP": cryptography_has_srtp, + "Cryptography_HAS_GET_PROTO_VERSION": cryptography_has_get_proto_version, } |
