summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_server.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-05-23 11:58:46 +0000
committerjsing <jsing@openbsd.org>2020-05-23 11:58:46 +0000
commit29323c26e9cd73eb78f2991bcbe9e27f34199728 (patch)
tree1082cb4dc6b0659e2b003f73342ad1eadf2df2b0 /lib/libssl/tls13_server.c
parentProvide the option to retry or return after post-handshake messages. (diff)
downloadwireguard-openbsd-29323c26e9cd73eb78f2991bcbe9e27f34199728.tar.xz
wireguard-openbsd-29323c26e9cd73eb78f2991bcbe9e27f34199728.zip
Wire up SSL_MODE_AUTO_RETRY mode to retrying after PHH messages.
ok beck@ inoguchi@ tb@
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;