wolfssl-py/tests
Juliusz Sosinowicz 93954c9430 Return None from getpeercert when peer has no certificate (F-5623)
get_peer_x509() checked only whether the session was NULL and then built
a WolfSSLX509, whose __init__ called wolfSSL_get_peer_certificate() and
raised SSLError on NULL. On a valid connection where the peer presented
no certificate (e.g. a server not requesting a client cert), this raised
instead of returning None as the stdlib ssl getpeercert() contract
requires. Fetch the certificate in get_peer_x509(), return None when it
is NULL, and have WolfSSLX509 wrap the already-obtained pointer.
2026-06-24 12:27:57 +00:00
..
conftest.py
test_client.py Guard shutdowns and clean up code 2026-04-14 17:10:36 +00:00
test_client_example.py Enable hostname verification in client example (F-5621) 2026-06-24 12:26:37 +00:00
test_context.py Guard shutdowns and clean up code 2026-04-14 17:10:36 +00:00
test_dtls_handshake_once.py Drive DTLS handshake only until complete in I/O methods (F-4136) 2026-06-23 11:33:22 +00:00
test_dtls_server_example.py Fix DTLS server example consuming the ClientHello before handshake (F-3481) 2026-06-23 11:22:06 +00:00
test_getpeercert.py Return None from getpeercert when peer has no certificate (F-5623) 2026-06-24 12:27:57 +00:00
test_io_error_mapping.py Map WANT_WRITE from SSLSocket.recv_into() to SSLWantWriteError (F-3907) 2026-06-23 11:25:08 +00:00
test_methods.py
test_write_bytes.py Send bytes-like data verbatim in SSLSocket.write (F-5622) 2026-06-24 12:27:28 +00:00
wolfssltestserver.py