Skip to content

Commit

Permalink
assert size of ciphersuite stack
Browse files Browse the repository at this point in the history
  • Loading branch information
smittals2 committed Feb 18, 2025
1 parent e281a3d commit f140fc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ssl/ssl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2853,6 +2853,8 @@ TEST(SSLTest, CheckSSLCipherInheritance) {
STACK_OF(SSL_CIPHER) *server_ciphers = SSL_get_ciphers(server.get());
ASSERT_TRUE(client_ciphers);
ASSERT_TRUE(server_ciphers);
ASSERT_EQ(sk_SSL_CIPHER_num(client_ciphers), 2u);
ASSERT_EQ(sk_SSL_CIPHER_num(server_ciphers), 2u);
const SSL_CIPHER *tls13_cipher = SSL_get_cipher_by_value(TLS1_3_CK_AES_128_GCM_SHA256 & 0xFFFF);
const SSL_CIPHER *tls12_cipher = SSL_get_cipher_by_value(TLS1_CK_RSA_WITH_AES_128_SHA & 0xFFFF);
ASSERT_TRUE(tls13_cipher);
Expand Down

0 comments on commit f140fc8

Please sign in to comment.