diff options
author | jsing <> | 2015-02-22 15:54:27 +0000 |
---|---|---|
committer | jsing <> | 2015-02-22 15:54:27 +0000 |
commit | 78601da9335579c01a88b356a8323117f14ec379 (patch) | |
tree | 38ba794e823ec25b4428f85632c6cdd2573912da /src/lib/libssl/ssl_locl.h | |
parent | 9ca594bf596db20fe3bf5a6e78e6df39cf9e10cd (diff) | |
download | openbsd-78601da9335579c01a88b356a8323117f14ec379.tar.gz openbsd-78601da9335579c01a88b356a8323117f14ec379.tar.bz2 openbsd-78601da9335579c01a88b356a8323117f14ec379.zip |
Reluctantly add server-side support for TLS_FALLBACK_SCSV.
This allows for clients that willingly choose to perform a downgrade and
attempt to establish a second connection at a lower protocol after the
previous attempt unexpectedly failed, to be notified and have the second
connection aborted, if the server does in fact support a higher protocol.
TLS has perfectly good version negotiation and client-side fallback is
dangerous. Despite this, in order to maintain maximum compatability with
broken web servers, most mainstream browsers implement this. Furthermore,
TLS_FALLBACK_SCSV only works if both the client and server support it and
there is effectively no way to tell if this is the case, unless you control
both ends.
Unfortunately, various auditors and vulnerability scanners (including
certain online assessment websites) consider the presence of a not yet
standardised feature to be important for security, even if the clients do
not perform client-side downgrade or the server only supports current TLS
protocols.
Diff is loosely based on OpenSSL with some inspiration from BoringSSL.
Discussed with beck@ and miod@.
ok bcook@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 3b7694fc94..c38aa3a90d 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.87 2015/02/12 03:45:25 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.88 2015/02/22 15:54:27 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -545,6 +545,7 @@ extern SSL_CIPHER ssl3_ciphers[]; | |||
545 | 545 | ||
546 | SSL_METHOD *ssl_bad_method(int ver); | 546 | SSL_METHOD *ssl_bad_method(int ver); |
547 | const char *ssl_version_string(int ver); | 547 | const char *ssl_version_string(int ver); |
548 | uint16_t ssl_max_server_version(SSL *s); | ||
548 | 549 | ||
549 | extern SSL3_ENC_METHOD TLSv1_enc_data; | 550 | extern SSL3_ENC_METHOD TLSv1_enc_data; |
550 | extern SSL3_ENC_METHOD TLSv1_1_enc_data; | 551 | extern SSL3_ENC_METHOD TLSv1_1_enc_data; |