circuitpython/tests/multi_net/tls_dtls_server_client.py.exp
Angus Gratton 89f9ee9d7c tests/multi_net: Update DTLS multi-net test.
The original version of this test had to exchange a 1 byte UDP packet
before the DTLS handshake. This is no longer needed due to MSG_PEEK
support.

The test also doesn't work with HelloVerify enabled, as the first
connection attempt always fails with an
MBEDTLS_ERR_SSL_HELLO_VERIFY_REQUIRED result. Anticipate this by listening
for the client twice on the server side.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2025-07-23 15:47:16 +10:00

17 lines
338 B
Text

--- instance0 ---
waiting
incoming connection
(-27264, 'MBEDTLS_ERR_SSL_HELLO_VERIFY_REQUIRED')
waiting
incoming connection
b'client to server 0'
b'client to server 1'
b'client to server 2'
b'client to server 3'
--- instance1 ---
connect
wrap socket
b'server to client 0'
b'server to client 1'
b'server to client 2'
b'server to client 3'