summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-05-09 15:30:21 +0000
committerjsing <jsing@openbsd.org>2020-05-09 15:30:21 +0000
commit0e548c8feebabab6d01582c56a4e4e46725c89f8 (patch)
treed9d77d61b7fe1a06d1d3814c9bccd655effa387d /lib/libssl/tls13_lib.c
parentcatch the other place this needs to change (diff)
downloadwireguard-openbsd-0e548c8feebabab6d01582c56a4e4e46725c89f8.tar.xz
wireguard-openbsd-0e548c8feebabab6d01582c56a4e4e46725c89f8.zip
Add a middlebox_compat flag and condition session ID randomisation on it.
ok tb@
Diffstat (limited to 'lib/libssl/tls13_lib.c')
-rw-r--r--lib/libssl/tls13_lib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libssl/tls13_lib.c b/lib/libssl/tls13_lib.c
index 37f300ae43b..3825707d5c9 100644
--- a/lib/libssl/tls13_lib.c
+++ b/lib/libssl/tls13_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_lib.c,v 1.37 2020/05/09 15:05:50 beck Exp $ */
+/* $OpenBSD: tls13_lib.c,v 1.38 2020/05/09 15:30:21 jsing Exp $ */
/*
* Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2019 Bob Beck <beck@openbsd.org>
@@ -351,6 +351,8 @@ tls13_ctx_new(int mode)
ctx->handshake_message_recv_cb = tls13_legacy_handshake_message_recv_cb;
ctx->ocsp_status_recv_cb = tls13_legacy_ocsp_status_recv_cb;
+ ctx->middlebox_compat = 1;
+
return ctx;
err: