##// END OF EJS Templates
safehasattr: pass attribute name as string instead of bytes...
marmoute -
r51495:b73bae35 default
parent child Browse files
Show More
@@ -628,7 +628,7 b' def wrapserversocket('
628 # Otherwise, use the list of more secure ciphers if found in the ssl module.
628 # Otherwise, use the list of more secure ciphers if found in the ssl module.
629 if exactprotocol:
629 if exactprotocol:
630 sslcontext.set_ciphers('DEFAULT:@SECLEVEL=0')
630 sslcontext.set_ciphers('DEFAULT:@SECLEVEL=0')
631 elif util.safehasattr(ssl, b'_RESTRICTED_SERVER_CIPHERS'):
631 elif util.safehasattr(ssl, '_RESTRICTED_SERVER_CIPHERS'):
632 sslcontext.options |= getattr(ssl, 'OP_CIPHER_SERVER_PREFERENCE', 0)
632 sslcontext.options |= getattr(ssl, 'OP_CIPHER_SERVER_PREFERENCE', 0)
633 # pytype: disable=module-attr
633 # pytype: disable=module-attr
634 sslcontext.set_ciphers(ssl._RESTRICTED_SERVER_CIPHERS)
634 sslcontext.set_ciphers(ssl._RESTRICTED_SERVER_CIPHERS)
General Comments 0
You need to be logged in to leave comments. Login now