summaryrefslogtreecommitdiff
path: root/tests/tls13/tls12-no-tls13-exts.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-10-06 10:18:33 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-11-15 11:42:23 +0100
commit04ba4db72d9c9c846cecfc2b0958eaf7df1fd54d (patch)
tree3e3ad3786569273d43c5a29fc34429c8344411e6 /tests/tls13/tls12-no-tls13-exts.c
parent2d8a12b7fb089287d110ea64e5888fda4298548a (diff)
downloadgnutls-04ba4db72d9c9c846cecfc2b0958eaf7df1fd54d.tar.gz
tests: added key share behavioral testtmp-draft-ietf-tls-tls13-21-nmav-backports4
This verifies whether the gnutls_init() flags GNUTLS_KEY_SHARE_TOP, GNUTLS_KEY_SHARE_TOP2, GNUTLS_KEY_SHARE_TOP3 behave as advertized. Resolves #284 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/tls13/tls12-no-tls13-exts.c')
-rw-r--r--tests/tls13/tls12-no-tls13-exts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tls13/tls12-no-tls13-exts.c b/tests/tls13/tls12-no-tls13-exts.c
index c9bbafe7ce..b7411fbdc8 100644
--- a/tests/tls13/tls12-no-tls13-exts.c
+++ b/tests/tls13/tls12-no-tls13-exts.c
@@ -125,11 +125,11 @@ static int client_hello_callback(gnutls_session_t session, unsigned int htype,
if (htype != GNUTLS_HANDSHAKE_CLIENT_HELLO || post != GNUTLS_HOOK_PRE)
return 0;
- if (find_client_extension(msg, TLS_EXT_SUPPORTED_VERSIONS, NULL)) {
+ if (find_client_extension(msg, TLS_EXT_SUPPORTED_VERSIONS, NULL, NULL)) {
fail("Found TLS 1.3 supported versions extension in TLS 1.2!\n");
}
- if (find_client_extension(msg, TLS_EXT_POST_HANDSHAKE, NULL)) {
+ if (find_client_extension(msg, TLS_EXT_POST_HANDSHAKE, NULL, NULL)) {
fail("Found TLS 1.3 supported versions extension in TLS 1.2!\n");
}