Example #1
0
 def clear_options(self):
     """Directly calls OpenSSL's SSL_CTX_clear_options()."""
     libssl.SSL_CTX_ctrl(self._ssl_ctx_struct_p, SSL_CTRL_OPTIONS, 0, None)
Example #2
0
 def set_session_cache_mode(self, mode):
     """Directly calls OpenSSL's SSL_CTX_set_session_cache_mode()."""
     libssl.SSL_CTX_ctrl(self._ssl_ctx_struct_p,
                         SSL_CTRL_SET_SESS_CACHE_MODE, mode, None)
Example #3
0
 def set_options(self, option):
     """Directly calls OpenSSL's SSL_CTX_set_options()."""
     libssl.SSL_CTX_ctrl(self._ssl_ctx_struct_p, SSL_CTRL_OPTIONS, option,
                         None)