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):
12171217 :param bytes sigalgs_list: An OpenSSL signature algorithms list.
12181218 :return: None
12191219 """
1220- if not _lib .Cryptography_HAS_SIGALGS :
1221- return
1222-
12231220 sigalgs_list = _text_to_bytes_and_warn ("sigalgs_list" , sigalgs_list )
12241221
12251222 if not isinstance (sigalgs_list , bytes ):
12261223 raise TypeError ("sigalgs_list must be a byte string." )
12271224
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+ )
12311229
12321230 def set_client_ca_list (self , certificate_authorities ):
12331231 """
You can’t perform that action at this time.
0 commit comments