diff options
-rw-r--r-- | cryptography/hazmat/backends/openssl/ssl.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cryptography/hazmat/backends/openssl/ssl.py b/cryptography/hazmat/backends/openssl/ssl.py index d91c89a6..09d342b8 100644 --- a/cryptography/hazmat/backends/openssl/ssl.py +++ b/cryptography/hazmat/backends/openssl/ssl.py @@ -233,11 +233,7 @@ long SSL_CTX_get_timeout(const SSL_CTX *); /* SNI APIs were introduced in OpenSSL 1.0.0. To continue to support * earlier versions some special handling of these is necessary. */ -void SSL_set_tlsext_host_name(SSL *, char *); const char *SSL_get_servername(const SSL *, const int); -void SSL_CTX_set_tlsext_servername_callback( - SSL_CTX *, - int (*cb)(const SSL *, int *, void *)); """ MACROS = """ @@ -288,6 +284,14 @@ const SSL_METHOD *SSLv23_client_method(); /*- These aren't macros these arguments are all const X on openssl > 1.0.x -*/ SSL_CTX *SSL_CTX_new(const SSL_METHOD *); long SSL_CTX_get_timeout(const SSL_CTX *); + +/* SNI APIs were introduced in OpenSSL 1.0.0. To continue to support + * earlier versions some special handling of these is necessary. + */ +void SSL_set_tlsext_host_name(SSL *, char *); +void SSL_CTX_set_tlsext_servername_callback( + SSL_CTX *, + int (*cb)(const SSL *, int *, void *)); """ CUSTOMIZATIONS = """ |