diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-18 11:44:55 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-18 12:50:49 +0200 |
commit | 276d3dc8dc81fa1ae130d588085a1b88fbe38c2c (patch) | |
tree | 59bbb925d88d2e62b86be2a255024d4ccbaa6ed7 /tests | |
parent | b36e9735170a9c33e277cb794e1f90d04262b3e6 (diff) | |
download | gnutls-276d3dc8dc81fa1ae130d588085a1b88fbe38c2c.tar.gz |
tests: verify the presence of GNUTLS_SFLAGS_RFC7919 flag in server and client mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tls12-ffdhe.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tls12-ffdhe.c b/tests/tls12-ffdhe.c index 4cec9ef1ca..cfedf2701f 100644 --- a/tests/tls12-ffdhe.c +++ b/tests/tls12-ffdhe.c @@ -150,6 +150,18 @@ static void try(test_case_st *test) fail("%s: group doesn't match the expected\n", test->name); } + if (test->group) { + if (test->group == GNUTLS_GROUP_FFDHE2048 || test->group == GNUTLS_GROUP_FFDHE3072 || + test->group == GNUTLS_GROUP_FFDHE4096 || test->group == GNUTLS_GROUP_FFDHE8192) { + if (!(gnutls_session_get_flags(client) & GNUTLS_SFLAGS_RFC7919)) { + fail("%s: gnutls_session_get_flags(client) reports that no RFC7919 negotiation was performed!\n", test->name); + } + + if (!(gnutls_session_get_flags(server) & GNUTLS_SFLAGS_RFC7919)) { + fail("%s: gnutls_session_get_flags(server) reports that no RFC7919 negotiation was performed!\n", test->name); + } + } + } gnutls_deinit(server); gnutls_deinit(client); gnutls_anon_free_client_credentials(c_anon_cred); |