2012-10-29 23:44:24 +04:00
|
|
|
# PyDTLS: datagram TLS for Python. Written by Ray Brown.
|
|
|
|
"""PyDTLS package
|
|
|
|
|
2012-11-21 23:23:03 +04:00
|
|
|
This package exports OpenSSL's DTLS support to Python. Calling its patch
|
|
|
|
function will add the constant PROTOCOL_DTLSv1 to the Python standard library's
|
|
|
|
ssl module. Subsequently passing a datagram socket to that module's
|
|
|
|
wrap_socket function (or instantiating its SSLSocket class with a datagram
|
|
|
|
socket) will activate this module's DTLS implementation for the returned
|
|
|
|
SSLSocket instance.
|
|
|
|
|
|
|
|
Instead of or in addition to invoking the patch functionality, the
|
|
|
|
SSLConnection class can be used directly for secure communication over datagram
|
|
|
|
sockets.
|
2012-10-29 23:44:24 +04:00
|
|
|
|
|
|
|
wrap_socket's parameters and their semantics have been maintained.
|
|
|
|
"""
|
2012-11-21 23:23:03 +04:00
|
|
|
|
|
|
|
from patch import do_patch
|
|
|
|
from sslconnection import SSLConnection
|