summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2021-03-24 21:36:26 +0000
committertb <tb@openbsd.org>2021-03-24 21:36:26 +0000
commit2a70c749235b80bc60904537b8a8c7c76533ffdb (patch)
treee6bf3fca7a2b48b98c7de9d438a7eb43227faf76
parenttest HEAD requests, from niklas@ (diff)
downloadwireguard-openbsd-2a70c749235b80bc60904537b8a8c7c76533ffdb.tar.xz
wireguard-openbsd-2a70c749235b80bc60904537b8a8c7c76533ffdb.zip
The server only sends a cookie during a HRR, not a SH
-rw-r--r--regress/lib/libssl/tlsext/tlsexttest.c8
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;
}