summaryrefslogtreecommitdiff
path: root/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2019-04-04 16:53:58 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2019-04-04 16:53:58 +0000
commit8f470710054cb563a6bd29ee2bc846a7806b981a (patch)
tree4a73ace3c086566ed930e5d35945e02b36e8a812 /lib/libssl/tls13_internal.h
parent21aa5fe0eeafbe2013ef12b90826e6424db94d49 (diff)
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);