SSL Socket class wraps pyOpenSSL's SSL.Connection class implementing
the makefile method so that it is compatible with the standard socket
interface and usable with httplib.
|
|
|
__del__(self)
Close underlying socket when this object goes out of scope |
source code
|
|
|
close(self)
Shutdown the SSL connection and call the close method of the
underlying socket |
source code
|
|
|
|
|
|
|
bind(self,
addr)
bind to the given address - calls method of the underlying socket |
source code
|
|
|
|
|
|
tuple
|
|
|
|
|
connect(self,
addr)
Call the connect method of the underlying socket and set up SSL on
the socket, using the Context object supplied to this Connection
object at creation. |
source code
|
|
bool
|
|
|
renegotiate(self)
Renegotiate this connection's SSL parameters. |
source code
|
|
int
|
pending(self)
Returns:
numbers of bytes that can be safely read from the SSL buffer. |
source code
|
|
|
|
|
|
string
|
|
|
|
int
|
|
|
getsockopt(self,
*args)
See socket.socket.getsockopt |
source code
|
|
int/string
|
|
|
state_string(self)
Return the SSL state of this connection. |
source code
|
|
cStringIO.StringO
|
makefile(self,
*args)
Specific to Python socket API and required by httplib: convert
response into a file-like object. |
source code
|
|
|
|
|
|
|
get_context(self)
Retrieve the Context object associated with this Connection. |
source code
|
|
|
get_peer_certificate(self)
Retrieve the other side's certificate (if any) |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|