Message150773
I think it would be confusing if getpeercert returned None both for valid connections without certificates and also for invalid connections. I would almost prefer the current behaviour (AttributeError) if just it was documented and there was a documented way to check if the connection actually was alive. Do you agree that checking .cipher() is the recommended way to do that in a way that is compatible with past and future 2.x versions?
I hope the proper fix will ensure that an exception always is raised if the ssl handshake fails - and that a successful wrap_socket means that the ssl negotiation did succeed with the given constraints. It might however only be feasible to fix that for 3.x.
I filed Issue13724 for the create_socket documentation. |
|
Date |
User |
Action |
Args |
2012-01-06 22:14:35 | kiilerix | set | recipients:
+ kiilerix, pitrou |
2012-01-06 22:14:34 | kiilerix | set | messageid: <1325888075.0.0.00318737341897.issue13721@psf.upfronthosting.co.za> |
2012-01-06 22:14:34 | kiilerix | link | issue13721 messages |
2012-01-06 22:14:34 | kiilerix | create | |
|