[docs] [issue19095] Document SSLSocket.getpeercert always returns None without do_handshake

Dariusz Suchojad report at bugs.python.org
Thu Sep 26 15:20:50 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19095>
_______________________________________


More information about the docs mailing list