Package rhn :: Module SSL :: Class SSLSocket
[hide private]
[frames] | no frames]

Class SSLSocket

source code


Class that wraps a pyOpenSSL Connection object, adding more methods

Instance Methods [hide private]
 
__init__(self, socket, trusted_certs=None) source code
 
add_trusted_cert(self, file)
Adds a trusted certificate to the certificate store of the SSL context object.
source code
 
init_ssl(self, server_name=None)
Initializes the SSL connection.
source code
 
makefile(self, mode, bufsize=None)
Returns self, since we are a file-like object already
source code
 
close(self)
Closes the SSL connection
source code
 
flush(self) source code
 
_really_close(self) source code
 
_check_closed(self) source code
 
__getattr__(self, name) source code
 
isatty(self)
Returns false always.
source code
 
tell(self) source code
 
seek(self, pos, mode=0) source code
 
read(self, amt=None)
Reads up to amt bytes from the SSL connection.
source code
 
readinto(self, buf) source code
 
_poll(self, filter_type, caller_name) source code
 
write(self, data)
Writes to the SSL connection.
source code
 
recv(self, amt) source code
 
send(self, data)
Writes to the SSL connection.
source code
 
sendall(self, data)
Writes to the SSL connection.
source code
 
readline(self, length=None)
Reads a single line (up to `length' characters long) from the SSL connection.
source code