diff options
author | Maximilian Hils <git@maximilianhils.com> | 2020-04-12 03:34:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 20:34:32 -0500 |
commit | f69225d1240fb378b48f363083e51b0cebb961d0 (patch) | |
tree | 78a452d44ea05bf4676ff8925d59278dd9543a1a /src/cryptography | |
parent | 55f3b7d71b448c5a7f4dd98acfc6f349412bc934 (diff) | |
download | cryptography-f69225d1240fb378b48f363083e51b0cebb961d0.tar.gz cryptography-f69225d1240fb378b48f363083e51b0cebb961d0.tar.bz2 cryptography-f69225d1240fb378b48f363083e51b0cebb961d0.zip |
add SSL_CTX_(get|set)_keylog_callback (#5187)
* add SSL_CTX_(get|set)_keylog_callback
* For travis
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Diffstat (limited to 'src/cryptography')
-rw-r--r-- | src/cryptography/hazmat/bindings/openssl/_conditional.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/_conditional.py b/src/cryptography/hazmat/bindings/openssl/_conditional.py index ea4ae4c6..b089f65b 100644 --- a/src/cryptography/hazmat/bindings/openssl/_conditional.py +++ b/src/cryptography/hazmat/bindings/openssl/_conditional.py @@ -270,6 +270,13 @@ def cryptography_has_tlsv13(): ] +def cryptography_has_keylog(): + return [ + "SSL_CTX_set_keylog_callback", + "SSL_CTX_get_keylog_callback", + ] + + def cryptography_has_raw_key(): return [ "EVP_PKEY_new_raw_private_key", @@ -356,6 +363,7 @@ CONDITIONAL_NAMES = { "Cryptography_HAS_OPENSSL_CLEANUP": cryptography_has_openssl_cleanup, "Cryptography_HAS_CIPHER_DETAILS": cryptography_has_cipher_details, "Cryptography_HAS_TLSv1_3": cryptography_has_tlsv13, + "Cryptography_HAS_KEYLOG": cryptography_has_keylog, "Cryptography_HAS_RAW_KEY": cryptography_has_raw_key, "Cryptography_HAS_EVP_DIGESTFINAL_XOF": ( cryptography_has_evp_digestfinal_xof |