Dariusz Suchojad added the comment:

> I'm not sure people depend on getpeercert() returning None before the
> handshake is done, or perhaps by accident?

Ah, no, I meant that people may depend on the documented behaviour of 
.getpeercert's returning an empty dict (which I mixed up with returning None) 
if the certificate was not validated.

That this dictionary's contents depends on the validation is a bit quirky but 
it's documented so changing that one would surely break existing code.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19095>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to