File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -664,11 +664,6 @@ def explode(*args, **kwargs):
664
664
)
665
665
666
666
667
- _requires_sni = _make_requires (
668
- _lib .Cryptography_HAS_TLSEXT_HOSTNAME , "SNI not available"
669
- )
670
-
671
-
672
667
class Session (object ):
673
668
"""
674
669
A class representing an SSL session. A session defines certain connection
@@ -1371,7 +1366,6 @@ def set_mode(self, mode):
1371
1366
1372
1367
return _lib .SSL_CTX_set_mode (self ._context , mode )
1373
1368
1374
- @_requires_sni
1375
1369
def set_tlsext_servername_callback (self , callback ):
1376
1370
"""
1377
1371
Specify a callback function to be called when clients specify a server
@@ -1675,7 +1669,6 @@ def set_context(self, context):
1675
1669
_lib .SSL_set_SSL_CTX (self ._ssl , context ._context )
1676
1670
self ._context = context
1677
1671
1678
- @_requires_sni
1679
1672
def get_servername (self ):
1680
1673
"""
1681
1674
Retrieve the servername extension value if provided in the client hello
@@ -1693,7 +1686,6 @@ def get_servername(self):
1693
1686
1694
1687
return _ffi .string (name )
1695
1688
1696
- @_requires_sni
1697
1689
def set_tlsext_host_name (self , name ):
1698
1690
"""
1699
1691
Set the value of the servername extension to send in the client hello.
You can’t perform that action at this time.
0 commit comments