Patches item #783188, was opened at 2003-08-04 20:18 Message generated for change (Settings changed) made by akuchling You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=783188&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Modules Group: Python 2.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Ilario Nardinocchi (illo) >Assigned to: A.M. Kuchling (akuchling) 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. ---------------------------------------------------------------------- Comment By: Martin v. Löwis (loewis) Date: 2003-10-18 18:16 Message: Logged In: YES user_id=21627 Can you please provide patches for Doc/lib/libsocket.tex as well? Contribution of a small example of an SSL server in Demo/sockets would be appreciated as well. The demo should ship with a pre-generated self-signed certificate (private key without pass phrase); comments inside the sslserver.py should list the openssl commands used to generate the certificate. Are you interested in contributing such an example? ---------------------------------------------------------------------- Comment By: Martin v. Löwis (loewis) Date: 2003-08-05 02:28 Message: Logged In: YES user_id=21627 There's no uploaded file! You have to check the checkbox labeled "Check to Upload & Attach File" when you upload a file. In addition, even if you *did* check this checkbox, a bug in SourceForge prevents attaching a file when *creating* an issue. Please try again. (This is a SourceForge annoyance that we can do nothing about. :-( ) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=783188&group_id=5470 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches