Skip to content

Commit a42c5c9

Browse files
alexreaperhulk
authored andcommitted
OpenSSL always has SNI (#821)
1 parent be2bd54 commit a42c5c9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/OpenSSL/SSL.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -664,11 +664,6 @@ def explode(*args, **kwargs):
664664
)
665665

666666

667-
_requires_sni = _make_requires(
668-
_lib.Cryptography_HAS_TLSEXT_HOSTNAME, "SNI not available"
669-
)
670-
671-
672667
class Session(object):
673668
"""
674669
A class representing an SSL session. A session defines certain connection
@@ -1371,7 +1366,6 @@ def set_mode(self, mode):
13711366

13721367
return _lib.SSL_CTX_set_mode(self._context, mode)
13731368

1374-
@_requires_sni
13751369
def set_tlsext_servername_callback(self, callback):
13761370
"""
13771371
Specify a callback function to be called when clients specify a server
@@ -1675,7 +1669,6 @@ def set_context(self, context):
16751669
_lib.SSL_set_SSL_CTX(self._ssl, context._context)
16761670
self._context = context
16771671

1678-
@_requires_sni
16791672
def get_servername(self):
16801673
"""
16811674
Retrieve the servername extension value if provided in the client hello
@@ -1693,7 +1686,6 @@ def get_servername(self):
16931686

16941687
return _ffi.string(name)
16951688

1696-
@_requires_sni
16971689
def set_tlsext_host_name(self, name):
16981690
"""
16991691
Set the value of the servername extension to send in the client hello.

0 commit comments

Comments
 (0)