homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: support for server side transactions in _ssl
Type: Stage:
Components: Extension Modules Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder: server-side ssl support
View: 1018
Assigned To: janssen Nosy List: akuchling, illo, janssen, loewis
Priority: normal Keywords: patch

Created on 2003年08月05日 00:18 by illo, last changed 2022年04月10日 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
_ssl.patch.gz illo, 2003年08月05日 06:45 let's try again
Messages (7)
msg44384 - (view) Author: Ilario Nardinocchi (illo) Date: 2003年08月05日 00:18
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.
msg44385 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003年08月05日 06:28
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. :-( )
msg44386 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003年10月18日 22:16
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?
msg55300 - (view) Author: Bill Janssen (janssen) * (Python committer) Date: 2007年08月26日 03:04
I believe issue 1018 renders this one moot. Though more examples in Demo 
is still a good idea. I'll contribute a threaded server example for 
that.
msg55447 - (view) Author: Bill Janssen (janssen) * (Python committer) Date: 2007年08月29日 22:57
I'll take on providing the server example.
msg55791 - (view) Author: Bill Janssen (janssen) * (Python committer) Date: 2007年09月10日 19:48
I think the example in Lib/test/test_ssl.py will have to suffice.
It would be nice to have an asyncore example server, too.
msg55795 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007年09月10日 21:30
Marking as out-of-date
History
Date User Action Args
2022年04月10日 16:10:29adminsetgithub: 39009
2007年09月10日 21:30:04loewissetstatus: open -> closed
resolution: out of date
superseder: server-side ssl support
messages: + msg55795
2007年09月10日 19:48:30janssensetmessages: + msg55791
2007年08月29日 22:57:08janssensetassignee: akuchling -> janssen
messages: + msg55447
2007年08月26日 03:04:31janssensetnosy: + janssen
messages: + msg55300
2003年08月05日 00:18:44illocreate

AltStyle によって変換されたページ (->オリジナル) /