From 2a70c749235b80bc60904537b8a8c7c76533ffdb Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 24 Mar 2021 21:36:26 +0000 Subject: [PATCH] The server only sends a cookie during a HRR, not a SH --- regress/lib/libssl/tlsext/tlsexttest.c | 8 ++++---- 1 file 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 * Copyright (c) 2017 Doug Hogan @@ -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; } -- 2.20.1