summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2019-04-04 16:53:57 +0000
committerjsing <jsing@openbsd.org>2019-04-04 16:53:57 +0000
commit1fdae6bff5c3a0b1adc93d9caed427f888a3aeab (patch)
treea5aa2c2bade79ab20a92be12b5c1254d12c14cc1 /lib/libssl/tls13_internal.h
parentClean up the cipher/digest table mess. (diff)
downloadwireguard-openbsd-1fdae6bff5c3a0b1adc93d9caed427f888a3aeab.tar.xz
wireguard-openbsd-1fdae6bff5c3a0b1adc93d9caed427f888a3aeab.zip
Implement legacy fallback for the TLS 1.3 client.
If the Server Hello received indicates that the server did not negotiate TLS 1.3, fallback to the original TLS client implementation. ok bcook@, tb@
Diffstat (limited to 'lib/libssl/tls13_internal.h')
-rw-r--r--lib/libssl/tls13_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/tls13_internal.h b/lib/libssl/tls13_internal.h
index 1fe8f547a15..c9ef37a39f4 100644
--- a/lib/libssl/tls13_internal.h
+++ b/lib/libssl/tls13_internal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_internal.h,v 1.26 2019/03/17 15:13:23 jsing Exp $ */
+/* $OpenBSD: tls13_internal.h,v 1.27 2019/04/04 16:53:57 jsing Exp $ */
/*
* Copyright (c) 2018 Bob Beck <beck@openbsd.org>
* Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -35,6 +35,7 @@ __BEGIN_HIDDEN_DECLS
#define TLS13_IO_FAILURE -1
#define TLS13_IO_WANT_POLLIN -2
#define TLS13_IO_WANT_POLLOUT -3
+#define TLS13_IO_USE_LEGACY -4
typedef void (*tls13_alert_cb)(uint8_t _alert_desc, void *_cb_arg);
typedef int (*tls13_post_handshake_cb)(void *_cb_arg);