summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2020-01-23 07:30:55 +0000
committerbeck <beck@openbsd.org>2020-01-23 07:30:55 +0000
commit709e85ff7aac016d54db6ea4e81f77a9ba741d54 (patch)
tree067a358f840e0010c61c82baaa7c3b1f779bf6bb /lib/libssl/tls13_internal.h
parentdo not Xr both pppx and pppac in SEE ALSO, since they are the same page; (diff)
downloadwireguard-openbsd-709e85ff7aac016d54db6ea4e81f77a9ba741d54.tar.xz
wireguard-openbsd-709e85ff7aac016d54db6ea4e81f77a9ba741d54.zip
Add checking int the client to check the magic values which are
set by a 1.3 server when it downgrades to tls 1.2 or 1.1 as per RFC 8446 section 4.1.3 ok jsing@
Diffstat (limited to 'lib/libssl/tls13_internal.h')
-rw-r--r--lib/libssl/tls13_internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libssl/tls13_internal.h b/lib/libssl/tls13_internal.h
index 12ba5750a0d..f11d96f2ea2 100644
--- a/lib/libssl/tls13_internal.h
+++ b/lib/libssl/tls13_internal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_internal.h,v 1.48 2020/01/23 05:08:30 jsing Exp $ */
+/* $OpenBSD: tls13_internal.h,v 1.49 2020/01/23 07:30:55 beck Exp $ */
/*
* Copyright (c) 2018 Bob Beck <beck@openbsd.org>
* Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -305,6 +305,9 @@ int tls13_error_setx(struct tls13_error *error, int code, int subcode,
tls13_error_setx(&(ctx)->error, (code), (subcode), __FILE__, __LINE__, \
(fmt), __VA_ARGS__)
+extern uint8_t tls13_downgrade_12[8];
+extern uint8_t tls13_downgrade_11[8];
+
__END_HIDDEN_DECLS
#endif