| Home | Trees | Index | Help |
|
|---|
| Package pyxmpp :: Module streamtls |
|
TLS support for XMPP streams. Normative reference: - `RFC 3920 <http://www.ietf.org/rfc/rfc3920.txt>`__
| Classes | |
|---|---|
StreamTLSMixIn |
Mix-in class providing TLS support for an XMPP stream. |
TLSSettings |
Storage for TLS-related settings of an XMPP stream. |
| Exceptions | |
|---|---|
TLSError |
Raised on TLS error during stream processing. |
TLSNegotiationFailed |
Raised when stream TLS negotiation fails. |
| Function Summary | |
|---|---|
Pass control to the right verification function for a TLS connection. | |
| Variable Summary | |
|---|---|
str |
__revision__ = '$Id: streamtls.py 603 2005-10-14 16:06:2...
|
int |
TLS_ERR_BAD_CN = 1001 |
str |
TLS_NS = 'urn:ietf:params:xml:ns:xmpp-tls'
|
errno,
logging,
M2Crypto,
socket,
M2Crypto.SSL,
sys
SSLError,
StreamBase
FatalStreamError,
StreamEncryptionRequired
STREAM_NS,
tls_available
| Function Details |
|---|
cert_verify_callback(ssl_ctx_ptr, x509_ptr, errnum, depth, ok)
Pass control to the right verification function for a TLS connection.
M2Crypto doesn't associate verification callbacks with connection, so
we have one global callback, which finds and calls right callback.
:Parameters:
- `ssl_ctx_ptr`: TLS context pointer.
- `x509_ptr`: X.509 certificate pointer.
- `errnum`: error number.
- `depth`: verification depth.
- `ok`: current verification result.
|
| Variable Details |
|---|
__revision__
|
TLS_ERR_BAD_CN
|
TLS_NS
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed May 31 22:37:03 2006 | http://epydoc.sf.net |