summaryrefslogtreecommitdiff
path: root/tests/tls13/prf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tls13/prf.c')
-rw-r--r--tests/tls13/prf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tls13/prf.c b/tests/tls13/prf.c
index a8a529bcb8..c9c9f80b7b 100644
--- a/tests/tls13/prf.c
+++ b/tests/tls13/prf.c
@@ -234,6 +234,12 @@ static void client(int fd)
exit(1);
}
+ ret = gnutls_prf_hash_get(session);
+ if (ret != GNUTLS_DIG_SHA384) {
+ fprintf(stderr, "negotiated unexpected hash: %s\n", gnutls_digest_get_name(ret));
+ exit(1);
+ }
+
check_prfs(session);
gnutls_bye(session, GNUTLS_SHUT_WR);