mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
allow TLS only
This commit is contained in:
parent
244e9b0baf
commit
e8505d829b
@ -154,7 +154,7 @@ class mySSLContext(SSL.Context):
|
||||
|
||||
def __init__(self):
|
||||
SSL.Context.__init__(self, 'sslv23')
|
||||
self.set_options(m2.SSL_OP_ALL | m2.SSL_OP_NO_SSLv2) # m2crypto does this for us but better safe than sorry
|
||||
self.set_options(m2.SSL_OP_ALL | m2.SSL_OP_NO_SSLv2 | m2.SSL_OP_NO_SSLv3)
|
||||
self.set_session_cache_mode(m2.SSL_SESS_CACHE_CLIENT)
|
||||
self.verrs = None
|
||||
#self.set_info_callback() # debug
|
||||
|
Loading…
Reference in New Issue
Block a user