diff options
author | Alex Bozarth <ajbozart@us.ibm.com> | 2023-05-19 14:08:41 -0500 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-06-06 17:03:41 +0200 |
commit | 68668243b176cd2bc53a83c6768d4f39930ba8ed (patch) | |
tree | 61cddf3545b28d1f276a92eb8e8736fcc5cb932b /test | |
parent | 8229874476cc2955e6947cf6d3fee09e13b8c160 (diff) |
Add SSL_get0_group_name() to get name of the group used for KEX
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20866)
Diffstat (limited to 'test')
-rw-r--r-- | test/sslapitest.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c index be1d742021..d2c6c774f5 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -5037,6 +5037,9 @@ static int test_key_exchange(int idx) /* We don't implement RFC 7919 named groups for TLS 1.2. */ if (idx != 13) { + if (!TEST_str_eq(SSL_get0_group_name(serverssl), kexch_name0) + || !TEST_str_eq(SSL_get0_group_name(clientssl), kexch_name0)) + goto end; if (!TEST_int_eq(SSL_get_negotiated_group(serverssl), kexch_groups[0])) goto end; if (!TEST_int_eq(SSL_get_negotiated_group(clientssl), kexch_groups[0])) @@ -9495,6 +9498,10 @@ static int test_pluggable_group(int idx) SSL_group_to_name(serverssl, SSL_get_shared_group(serverssl, 0)))) goto end; + if (!TEST_str_eq(group_name, SSL_get0_group_name(serverssl)) + || !TEST_str_eq(group_name, SSL_get0_group_name(clientssl))) + goto end; + testresult = 1; end: |