[Python-Dev] More on server-side SSL support

"Martin v. Löwis" martin at v.loewis.de
Mon Aug 20 19:05:07 CEST 2007


> We add to the socket module a subtype of socket.socket,
> socket.SSLSocket.  It has the following constructor:
> 
>   SSLSocket (family=AF_INET, type=SOCK_STREAM, proto=0,
> 	     cert_filename=None, key_filename=None,
> 	     cert_policy=CERT_NONE, ssl_protocol=PROTOCOL_SSLv23)

That's somewhat limiting - you should be able to do connection
upgrades (e.g. SMTP STARTTLS, or HTTP Connection: Upgrade); with
that design, such usages would not be possible, no?

Regards,
Martin


More information about the Python-Dev mailing list