summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authortb <>2021-03-24 21:36:26 +0000
committertb <>2021-03-24 21:36:26 +0000
commit78304416451899bb48e1cb86c96eafb6fa3cbaf3 (patch)
tree996791bfa08bf7edbc115be79327e6a53c18291e /src/regress/lib
parent1530e958f4366f0b67d319bf3310b72cb2ddcbda (diff)
downloadopenbsd-78304416451899bb48e1cb86c96eafb6fa3cbaf3.tar.gz
openbsd-78304416451899bb48e1cb86c96eafb6fa3cbaf3.tar.bz2
openbsd-78304416451899bb48e1cb86c96eafb6fa3cbaf3.zip
The server only sends a cookie during a HRR, not a SH
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libssl/tlsext/tlsexttest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c
index a2a37f5854..4d7d22de8e 100644
--- a/src/regress/lib/libssl/tlsext/tlsexttest.c
+++ b/src/regress/lib/libssl/tlsext/tlsexttest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tlsexttest.c,v 1.48 2021/03/24 19:02:35 jsing Exp $ */ 1/* $OpenBSD: tlsexttest.c,v 1.49 2021/03/24 21:36:26 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -3447,14 +3447,14 @@ test_tlsext_cookie_server(void)
3447 S3I(ssl)->hs.tls13.cookie = strdup(cookie); 3447 S3I(ssl)->hs.tls13.cookie = strdup(cookie);
3448 S3I(ssl)->hs.tls13.cookie_len = strlen(cookie); 3448 S3I(ssl)->hs.tls13.cookie_len = strlen(cookie);
3449 3449
3450 if (!tlsext_cookie_server_needs(ssl, SSL_TLSEXT_MSG_SH)) { 3450 if (!tlsext_cookie_server_needs(ssl, SSL_TLSEXT_MSG_HRR)) {
3451 FAIL("server should need cookie\n"); 3451 FAIL("server should need cookie\n");
3452 failure = 1; 3452 failure = 1;
3453 goto done; 3453 goto done;
3454 } 3454 }
3455 3455
3456 if (!tlsext_cookie_server_build(ssl, SSL_TLSEXT_MSG_SH, &cbb)) { 3456 if (!tlsext_cookie_server_build(ssl, SSL_TLSEXT_MSG_HRR, &cbb)) {
3457 FAIL("server have built a cookie response\n"); 3457 FAIL("server should have built a cookie response\n");
3458 failure = 1; 3458 failure = 1;
3459 goto done; 3459 goto done;
3460 } 3460 }