This module handles things specific to SSL. There are two objects defined: Context, Connection.
Whenever this exception is raised directly, it has a list of error messages
from the OpenSSL error queue, where each item is a tuple (lib,
function, reason)
. Here lib, function and reason
are all strings, describing where and what the problem is. See err(3)
for more information.
SSL_ERROR_ZERO_RETURN
, and
is raised when the SSL Connection has been closed. In SSL 3.0 and TLS 1.0, this
only occurs if a closure alert has occurred in the protocol, i.e. the
connection has been closed cleanly. Note that this does not necessarily
mean that the transport layer (e.g. a socket) has been closed.
It may seem a little strange that this is an exception, but it does match an
SSL_ERROR
code, and is very convenient.
(errnum,
errstr)
.