diff options
| author | Jean-Daniel <Jean-Daniel@users.noreply.github.com> | 2022-06-19 23:52:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-19 21:52:22 +0000 |
| commit | a8e3a0a39c92dcb2f7a6f2ed8ddd241c4692ba47 (patch) | |
| tree | 40a97903ebded89b61b7a1ced66149e43883266e /src/_cffi_src | |
| parent | d4f10821c559c775993bb2af967c75868cb56cbc (diff) | |
| download | cryptography-a8e3a0a39c92dcb2f7a6f2ed8ddd241c4692ba47.tar.gz | |
Bind functions for dealing with sigalgs (#7349)
Fixes https://github.com/pyca/cryptography/issues/7336
Diffstat (limited to 'src/_cffi_src')
| -rw-r--r-- | src/_cffi_src/openssl/ssl.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py index 4b83a2aad..b2b94f4d9 100644 --- a/src/_cffi_src/openssl/ssl.py +++ b/src/_cffi_src/openssl/ssl.py @@ -20,6 +20,7 @@ static const long Cryptography_HAS_TLSv1_3_FUNCTIONS; static const long Cryptography_HAS_SECURE_RENEGOTIATION; static const long Cryptography_HAS_SSL_CTX_CLEAR_OPTIONS; static const long Cryptography_HAS_DTLS; +static const long Cryptography_HAS_SIGALGS; static const long Cryptography_HAS_PSK; static const long Cryptography_HAS_PSK_TLSv1_3; static const long Cryptography_HAS_VERIFIED_CHAIN; @@ -299,6 +300,8 @@ void SSL_CTX_set_keylog_callback(SSL_CTX *, void (*)(const SSL *, const char *)); void (*SSL_CTX_get_keylog_callback(SSL_CTX *))(const SSL *, const char *); +long SSL_CTX_set1_sigalgs_list(SSL_CTX *, const char *); + /* SSL_SESSION */ void SSL_SESSION_free(SSL_SESSION *); @@ -677,6 +680,13 @@ long Cryptography_DTLSv1_get_timeout(SSL *ssl, time_t *ptv_sec, return r; } +#if CRYPTOGRAPHY_IS_LIBRESSL +static const long Cryptography_HAS_SIGALGS = 0; +const long (*SSL_CTX_set1_sigalgs_list)(SSL_CTX *, const char *) = NULL; +#else +static const long Cryptography_HAS_SIGALGS = 1; +#endif + #if CRYPTOGRAPHY_IS_LIBRESSL || defined(OPENSSL_NO_PSK) static const long Cryptography_HAS_PSK = 0; int (*SSL_CTX_use_psk_identity_hint)(SSL_CTX *, const char *) = NULL; |
