mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-20 16:21:03 +00:00
Remove "error" allowance in dtls_server
Now that dtls_server doesn't print "error" when it receives stray messages while it's waiting for a second handshake, have the tests fail if "error" is printed for some other reason. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
713127de4c
commit
13b4954597
@ -334,11 +334,6 @@ run_test "Sample: ssl_pthread_server, gnutls client, TLS 1.3" \
|
|||||||
-S "error" \
|
-S "error" \
|
||||||
-C "ERROR"
|
-C "ERROR"
|
||||||
|
|
||||||
# The server complains of extra data after it closes the connection
|
|
||||||
# because the client keeps sending data, so the server receives
|
|
||||||
# more application data when it expects a new handshake. We consider
|
|
||||||
# the test a success if both sides have sent and received application
|
|
||||||
# data, no matter what happens afterwards.
|
|
||||||
run_test "Sample: dtls_client with dtls_server" \
|
run_test "Sample: dtls_client with dtls_server" \
|
||||||
-P 4433 \
|
-P 4433 \
|
||||||
"$PROGRAMS_DIR/dtls_server" \
|
"$PROGRAMS_DIR/dtls_server" \
|
||||||
@ -348,13 +343,9 @@ run_test "Sample: dtls_client with dtls_server" \
|
|||||||
-s "[1-9][0-9]* bytes written" \
|
-s "[1-9][0-9]* bytes written" \
|
||||||
-c "[1-9][0-9]* bytes read" \
|
-c "[1-9][0-9]* bytes read" \
|
||||||
-c "[1-9][0-9]* bytes written" \
|
-c "[1-9][0-9]* bytes written" \
|
||||||
|
-S "error" \
|
||||||
-C "error"
|
-C "error"
|
||||||
|
|
||||||
# The server complains of extra data after it closes the connection
|
|
||||||
# because the client keeps sending data, so the server receives
|
|
||||||
# more application data when it expects a new handshake. We consider
|
|
||||||
# the test a success if both sides have sent and received application
|
|
||||||
# data, no matter what happens afterwards.
|
|
||||||
run_test "Sample: ssl_client2, dtls_server" \
|
run_test "Sample: ssl_client2, dtls_server" \
|
||||||
-P 4433 \
|
-P 4433 \
|
||||||
"$PROGRAMS_DIR/dtls_server" \
|
"$PROGRAMS_DIR/dtls_server" \
|
||||||
@ -364,6 +355,7 @@ run_test "Sample: ssl_client2, dtls_server" \
|
|||||||
-s "[1-9][0-9]* bytes written" \
|
-s "[1-9][0-9]* bytes written" \
|
||||||
-c "[1-9][0-9]* bytes read" \
|
-c "[1-9][0-9]* bytes read" \
|
||||||
-c "[1-9][0-9]* bytes written" \
|
-c "[1-9][0-9]* bytes written" \
|
||||||
|
-S "error" \
|
||||||
-C "error"
|
-C "error"
|
||||||
|
|
||||||
requires_protocol_version dtls12
|
requires_protocol_version dtls12
|
||||||
|
Loading…
x
Reference in New Issue
Block a user