summaryrefslogtreecommitdiff
path: root/lib/libssl/tls13_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/tls13_server.c')
-rw-r--r--lib/libssl/tls13_server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libssl/tls13_server.c b/lib/libssl/tls13_server.c
index e605ccd90fb..621e51d5011 100644
--- a/lib/libssl/tls13_server.c
+++ b/lib/libssl/tls13_server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_server.c,v 1.52 2020/05/23 08:47:19 tb Exp $ */
+/* $OpenBSD: tls13_server.c,v 1.53 2020/05/23 11:58:46 jsing Exp $ */
/*
* Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2020 Bob Beck <beck@openbsd.org>
@@ -34,6 +34,9 @@ tls13_server_init(struct tls13_ctx *ctx)
}
s->version = ctx->hs->max_version;
+ tls13_record_layer_set_retry_after_phh(ctx->rl,
+ (s->internal->mode & SSL_MODE_AUTO_RETRY) != 0);
+
if (!ssl_get_new_session(s, 0)) /* XXX */
return 0;