[Patches] [ python-Patches-783188 ] support for server side
transactions in _ssl
SourceForge.net
noreply at sourceforge.net
Mon Aug 4 18:18:44 EDT 2003
Patches item #783188, was opened at 2003-08-05 02:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=783188&group_id=5470
Category: Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Ilario Nardinocchi (illo)
Assigned to: Nobody/Anonymous (nobody)
Summary: support for server side transactions in _ssl
Initial Comment:
Added a parameter (server_mode, type int) to the
newPySSLObject() function. If its value is non-zero, a server
SSL transaction is attempted - by using SSL_accept() instead
of SSL_connect().
Also, the parameter has been added to the PySocket_ssl()
constructor function (it defaults to 0 for compatibility) and
the ssl() documentation reflects the change.
A new python function has been added (pending(), C function
PySSL_SSLpending()), which calls SSL_pending() and returns
its return value as a python integer. Added documentation
for this one, too.
The return value is the number of bytes still to be read from
the input buffer, so that if it's greater than zero it is useless
to call a select() in a nonblocking scenery.
Trivial patch but it's the only way to code an SSL server
without third-party stuff.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=783188&group_id=5470
More information about the Patches
mailing list