An SSL connection.
|
|
|
__init__(self,
ctx,
sock=None) |
|
|
|
accept(self)
Accept an SSL connection. |
|
|
|
|
|
|
|
clear(self)
If there were errors in this connection, call clear() rather than
close() to end it, so that bad sessions will be cleared from cache. |
|
|
|
|
|
|
|
|
|
|
|
get_cipher(self)
Return an M2Crypto.SSL.Cipher object for this connection; if the
connection has not been initialised with a cipher suite, return None. |
|
|
|
get_cipher_list(self,
idx=0)
Return the cipher suites for this connection as a string object. |
|
|
|
get_ciphers(self)
Return an M2Crypto.SSL.Cipher_Stack object for this connection; if
the connection has not been initialised with cipher suites, return
None. |
|
|
|
get_context(self)
Return the SSL.Context object associated with this connection. |
|
|
|
get_default_session_timeout(self) |
|
|
|
get_peer_cert(self)
Return the peer certificate; if the peer did not provide a
certificate, return None. |
|
|
|
get_peer_cert_chain(self)
Return the peer certificate chain; if the peer did not provide a
certificate chain, return None. |
|
|
|
|
|
|
|
get_socket_read_timeout(self) |
|
|
|
get_socket_write_timeout(self) |
|
|
|
get_state(self)
Return the SSL state of this connection. |
|
|
|
get_verify_depth(self)
Return the peer certificate verification depth. |
|
|
|
get_verify_mode(self)
Return the peer certificate verification mode. |
|
|
|
get_verify_result(self)
Return the peer certificate verification result. |
|
|
|
get_version(self)
Return the TLS/SSL protocol version for this connection. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
makefile(self,
mode=' rb ' ,
bufsize=' ignored ' ) |
|
|
|
pending(self)
Return the numbers of octets that can be read from the connection. |
|
|
|
|
|
|
|
renegotiate(self)
Renegotiate this connection's SSL parameters. |
|
|
|
|
|
|
|
serverPostConnectionCheck(*args,
**kw) |
|
|
|
|
|
set_bio(self,
readbio,
writebio)
Explicitly set read and write bios |
|
|
|
set_cipher_list(self,
cipher_list)
Set the cipher suites for this connection. |
|
|
|
|
|
|
|
|
|
set_post_connection_check_callback(self,
postConnectionCheck) |
|
|
|
set_session(self,
session) |
|
|
|
set_session_id_ctx(self,
id) |
|
|
|
|
|
set_socket_read_timeout(self,
timeo) |
|
|
|
set_socket_write_timeout(self,
timeo) |
|
|
|
|
|
setblocking(self,
mode)
Set this connection's underlying socket to _mode_. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|