Skip to content

Commit c3d85b7

Browse files
kadukjasnell
authored andcommitted
deps: cherry-pick akamai/openssl/commit/a5a08cb8050bb69120e833456e355f482e392456
Original Commit Message: 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. PR-URL: #34033 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent bad1a15 commit c3d85b7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: deps/openssl/openssl/test/sslapitest.c

+11
Original file line numberDiff line numberDiff line change
@@ -6591,6 +6591,17 @@ static int test_quic_api(void)
65916591
|| !TEST_true(SSL_process_quic_post_handshake(clientssl)))
65926592
goto end;
65936593

6594+
/* Dummy handshake call should succeed */
6595+
if (!TEST_true(SSL_do_handshake(clientssl)))
6596+
goto end;
6597+
/* Test that we (correctly) fail to send KeyUpdate */
6598+
if (!TEST_true(SSL_key_update(clientssl, SSL_KEY_UPDATE_NOT_REQUESTED))
6599+
|| !TEST_int_le(SSL_do_handshake(clientssl), 0))
6600+
goto end;
6601+
if (!TEST_true(SSL_key_update(serverssl, SSL_KEY_UPDATE_NOT_REQUESTED))
6602+
|| !TEST_int_le(SSL_do_handshake(serverssl), 0))
6603+
goto end;
6604+
65946605
testresult = 1;
65956606

65966607
end:

0 commit comments

Comments
 (0)