Skip to content

Commit 978207f

Browse files
committed
Address CR comments
1 parent 4034b85 commit 978207f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ssl/ssl_version_test.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,9 @@ TEST_P(SSLVersionTest, PeerTmpKey) {
23352335
EVP_PKEY *key = nullptr;
23362336

23372337
if (getVersionParam().version == TLS1_3_VERSION) {
2338-
// TLS 1.3 default should be using X5519MLKEM768 as the key exchange.
2338+
// TLS 1.3 default should be using X25519MLKEM768 as the key exchange.
2339+
// We expect SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE because there is no EVP_PKEY type
2340+
// for hybrid keys, only individual X25519 or MLKEM768 keys.
23392341
ERR_clear_error();
23402342
EXPECT_FALSE(SSL_get_peer_tmp_key(ssl, &key));
23412343
ErrorEquals(ERR_get_error(), ERR_LIB_SSL, SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE);

0 commit comments

Comments
 (0)