summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2019-02-21 21:41:52 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2019-02-22 10:41:52 +0800
commita42c5c9a91639c1d4405e67316046cb6b939ac84 (patch)
treef5f7f1ccc8e0401becc3d1fc22b0704505911d71
parentbe2bd54f4bf0c8ea50eaf5fd7343652f2bdf9eca (diff)
downloadpyopenssl-git-a42c5c9a91639c1d4405e67316046cb6b939ac84.tar.gz
OpenSSL always has SNI (#821)
-rw-r--r--src/OpenSSL/SSL.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py
index 232f81d..506354d 100644
--- a/src/OpenSSL/SSL.py
+++ b/src/OpenSSL/SSL.py
@@ -664,11 +664,6 @@ _requires_alpn = _make_requires(
)
-_requires_sni = _make_requires(
- _lib.Cryptography_HAS_TLSEXT_HOSTNAME, "SNI not available"
-)
-
-
class Session(object):
"""
A class representing an SSL session. A session defines certain connection
@@ -1371,7 +1366,6 @@ class Context(object):
return _lib.SSL_CTX_set_mode(self._context, mode)
- @_requires_sni
def set_tlsext_servername_callback(self, callback):
"""
Specify a callback function to be called when clients specify a server
@@ -1675,7 +1669,6 @@ class Connection(object):
_lib.SSL_set_SSL_CTX(self._ssl, context._context)
self._context = context
- @_requires_sni
def get_servername(self):
"""
Retrieve the servername extension value if provided in the client hello
@@ -1693,7 +1686,6 @@ class Connection(object):
return _ffi.string(name)
- @_requires_sni
def set_tlsext_host_name(self, name):
"""
Set the value of the servername extension to send in the client hello.