diff options
author | Damien George <damien@micropython.org> | 2023-12-12 17:15:24 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-12-12 21:21:54 +1100 |
commit | ef996d15b9cbadee591a185f27fb16e90a5d4f5d (patch) | |
tree | 595af344ea1e59e1c0813897df3152680acc662b /tests/net_inet/tls_text_errors.py | |
parent | c9eb6bc6016a7f13cc624b6a4160599ab6b166ff (diff) |
extmod/modssl_mbedtls: Make SSLSocket.getpeercert() optional.
And only enable this method when the relevant feature is available in
mbedtls. Otherwise, if mbedtls doesn't support getting the peer
certificate, this method always returns None and it's confusing why it does
that. It's better to remove the method altogether, so the error trying to
use it is more obvious.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/net_inet/tls_text_errors.py')
0 files changed, 0 insertions, 0 deletions