@@ -805,11 +805,6 @@ def explode(*args, **kwargs): # type: ignore[no-untyped-def]
805
805
return _requires_decorator
806
806
807
807
808
- _requires_alpn = _make_requires (
809
- _lib .Cryptography_HAS_ALPN , "ALPN not available"
810
- )
811
-
812
-
813
808
_requires_keylog = _make_requires (
814
809
getattr (_lib , "Cryptography_HAS_KEYLOG" , 0 ), "Key logging not available"
815
810
)
@@ -1646,7 +1641,6 @@ def set_tlsext_use_srtp(self, profiles: bytes) -> None:
1646
1641
_lib .SSL_CTX_set_tlsext_use_srtp (self ._context , profiles ) == 0
1647
1642
)
1648
1643
1649
- @_requires_alpn
1650
1644
def set_alpn_protos (self , protos : List [bytes ]) -> None :
1651
1645
"""
1652
1646
Specify the protocols that the client is prepared to speak after the
@@ -1684,7 +1678,6 @@ def set_alpn_protos(self, protos: List[bytes]) -> None:
1684
1678
== 0
1685
1679
)
1686
1680
1687
- @_requires_alpn
1688
1681
def set_alpn_select_callback (self , callback : _ALPNSelectCallback ) -> None :
1689
1682
"""
1690
1683
Specify a callback function that will be called on the server when a
@@ -2882,7 +2875,6 @@ def get_protocol_version(self) -> int:
2882
2875
version = _lib .SSL_version (self ._ssl )
2883
2876
return version
2884
2877
2885
- @_requires_alpn
2886
2878
def set_alpn_protos (self , protos : List [bytes ]) -> None :
2887
2879
"""
2888
2880
Specify the client's ALPN protocol list.
@@ -2917,7 +2909,6 @@ def set_alpn_protos(self, protos: List[bytes]) -> None:
2917
2909
_lib .SSL_set_alpn_protos (self ._ssl , input_str , len (protostr )) == 0
2918
2910
)
2919
2911
2920
- @_requires_alpn
2921
2912
def get_alpn_proto_negotiated (self ) -> bytes :
2922
2913
"""
2923
2914
Get the protocol that was negotiated by ALPN.
0 commit comments