Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit ba94dd2

Browse files
kaduktmshort
authored andcommitted
QUIC: Test KeyUpdate rejection
For now, just test that we don't generate any, since we don't really expose the mechanics for encrypting one and the QUIC API is not integrated into the TLSProxy setup.
1 parent 4781344 commit ba94dd2

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/sslapitest.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10260,6 +10260,17 @@ static int test_quic_api(void)
1026010260
|| !TEST_true(SSL_process_quic_post_handshake(clientssl)))
1026110261
goto end;
1026210262

10263+
/* Dummy handshake call should succeed */
10264+
if (!TEST_true(SSL_do_handshake(clientssl)))
10265+
goto end;
10266+
/* Test that we (correctly) fail to send KeyUpdate */
10267+
if (!TEST_true(SSL_key_update(clientssl, SSL_KEY_UPDATE_NOT_REQUESTED))
10268+
|| !TEST_int_le(SSL_do_handshake(clientssl), 0))
10269+
goto end;
10270+
if (!TEST_true(SSL_key_update(serverssl, SSL_KEY_UPDATE_NOT_REQUESTED))
10271+
|| !TEST_int_le(SSL_do_handshake(serverssl), 0))
10272+
goto end;
10273+
1026310274
testresult = 1;
1026410275

1026510276
end:

0 commit comments

Comments
 (0)