diff options
author | jsing <> | 2020-05-31 16:36:35 +0000 |
---|---|---|
committer | jsing <> | 2020-05-31 16:36:35 +0000 |
commit | a49dcaedc471e79508b3e5674c538ca90f5c4e2e (patch) | |
tree | 1ce257d0fa239a96e7594d053190347cb2b42c4a /src/lib/libssl/ssl_locl.h | |
parent | f05dbe69dd53b7d5eabcdb912115a58a46ab676a (diff) | |
download | openbsd-a49dcaedc471e79508b3e5674c538ca90f5c4e2e.tar.gz openbsd-a49dcaedc471e79508b3e5674c538ca90f5c4e2e.tar.bz2 openbsd-a49dcaedc471e79508b3e5674c538ca90f5c4e2e.zip |
Correct downgrade sentinels when a version pinned method is in use.
Previously only the enabled protocol versions were considered, however we
also have to consider the method in use which may be version pinned.
Found the hard way by danj@ with haproxy and force-tlsv12.
ok beck@ inoguchi@ tb@
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 e7e3e56154..03c2c227ed 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.277 2020/05/29 18:00:10 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.278 2020/05/31 16:36:35 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 | * |
@@ -1095,6 +1095,7 @@ int ssl_version_set_min(const SSL_METHOD *meth, uint16_t ver, uint16_t max_ver, | |||
1095 | int ssl_version_set_max(const SSL_METHOD *meth, uint16_t ver, uint16_t min_ver, | 1095 | int ssl_version_set_max(const SSL_METHOD *meth, uint16_t ver, uint16_t min_ver, |
1096 | uint16_t *out_ver); | 1096 | uint16_t *out_ver); |
1097 | uint16_t ssl_max_server_version(SSL *s); | 1097 | uint16_t ssl_max_server_version(SSL *s); |
1098 | int ssl_downgrade_max_version(SSL *s, uint16_t *max_ver); | ||
1098 | int ssl_cipher_is_permitted(const SSL_CIPHER *cipher, uint16_t min_ver, | 1099 | int ssl_cipher_is_permitted(const SSL_CIPHER *cipher, uint16_t min_ver, |
1099 | uint16_t max_ver); | 1100 | uint16_t max_ver); |
1100 | 1101 | ||