Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add SSL_CTX_get0_param (#5070)
  • Loading branch information
mhils authored and alex committed Nov 23, 2019
1 parent 2bc47fe commit 0538ca6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_cffi_src/openssl/ssl.py
Expand Up @@ -196,6 +196,7 @@
/* Added in 1.0.2 */
X509_VERIFY_PARAM *SSL_get0_param(SSL *);
X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *);
int SSL_use_certificate(SSL *, X509 *);
int SSL_use_certificate_ASN1(SSL *, const unsigned char *, int);
Expand Down Expand Up @@ -655,6 +656,7 @@
/* SSL_get0_param was added in OpenSSL 1.0.2. */
#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 && !CRYPTOGRAPHY_IS_LIBRESSL
X509_VERIFY_PARAM *(*SSL_get0_param)(SSL *) = NULL;
X509_VERIFY_PARAM *(*SSL_CTX_get0_param)(SSL_CTX *) = NULL;
#else
#endif
Expand Down
1 change: 1 addition & 0 deletions src/cryptography/hazmat/bindings/openssl/_conditional.py
Expand Up @@ -99,6 +99,7 @@ def cryptography_has_102_verification_params():
"X509_VERIFY_PARAM_set1_ip_asc",
"X509_VERIFY_PARAM_set_hostflags",
"SSL_get0_param",
"SSL_CTX_get0_param",
"X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT",
"X509_CHECK_FLAG_NO_WILDCARDS",
"X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS",
Expand Down

0 comments on commit 0538ca6

Please sign in to comment.