File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1217,17 +1217,15 @@ def set_sigalgs_list(self, sigalgs_list):
1217
1217
:param bytes sigalgs_list: An OpenSSL signature algorithms list.
1218
1218
:return: None
1219
1219
"""
1220
- if not _lib .Cryptography_HAS_SIGALGS :
1221
- return
1222
-
1223
1220
sigalgs_list = _text_to_bytes_and_warn ("sigalgs_list" , sigalgs_list )
1224
1221
1225
1222
if not isinstance (sigalgs_list , bytes ):
1226
1223
raise TypeError ("sigalgs_list must be a byte string." )
1227
1224
1228
- _openssl_assert (
1229
- _lib .SSL_CTX_set1_sigalgs_list (self ._context , sigalgs_list ) == 1
1230
- )
1225
+ if _lib .Cryptography_HAS_SIGALGS :
1226
+ _openssl_assert (
1227
+ _lib .SSL_CTX_set1_sigalgs_list (self ._context , sigalgs_list ) == 1
1228
+ )
1231
1229
1232
1230
def set_client_ca_list (self , certificate_authorities ):
1233
1231
"""
You can’t perform that action at this time.
0 commit comments