diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-03-24 21:36:27 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-03-24 21:36:27 +0000 |
commit | 371e919182974242afe0a093ffaab61e663ff6dd (patch) | |
tree | 1a311ef7fcbc24cc6121fbac9f64a1d730ca6b90 /regress | |
parent | 5a0e7c728e1a13ef7bc9968550aa9e8cf78b5857 (diff) |
The server only sends a cookie during a HRR, not a SH
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libssl/tlsext/tlsexttest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/lib/libssl/tlsext/tlsexttest.c b/regress/lib/libssl/tlsext/tlsexttest.c index a2a37f5854b..4d7d22de8e1 100644 --- a/regress/lib/libssl/tlsext/tlsexttest.c +++ b/regress/lib/libssl/tlsext/tlsexttest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tlsexttest.c,v 1.48 2021/03/24 19:02:35 jsing Exp $ */ +/* $OpenBSD: tlsexttest.c,v 1.49 2021/03/24 21:36:26 tb Exp $ */ /* * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> @@ -3447,14 +3447,14 @@ test_tlsext_cookie_server(void) S3I(ssl)->hs.tls13.cookie = strdup(cookie); S3I(ssl)->hs.tls13.cookie_len = strlen(cookie); - if (!tlsext_cookie_server_needs(ssl, SSL_TLSEXT_MSG_SH)) { + if (!tlsext_cookie_server_needs(ssl, SSL_TLSEXT_MSG_HRR)) { FAIL("server should need cookie\n"); failure = 1; goto done; } - if (!tlsext_cookie_server_build(ssl, SSL_TLSEXT_MSG_SH, &cbb)) { - FAIL("server have built a cookie response\n"); + if (!tlsext_cookie_server_build(ssl, SSL_TLSEXT_MSG_HRR, &cbb)) { + FAIL("server should have built a cookie response\n"); failure = 1; goto done; } |