summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2020-05-31 16:36:35 +0000
committerjsing <>2020-05-31 16:36:35 +0000
commita49dcaedc471e79508b3e5674c538ca90f5c4e2e (patch)
tree1ce257d0fa239a96e7594d053190347cb2b42c4a /src/lib/libssl/ssl_locl.h
parentf05dbe69dd53b7d5eabcdb912115a58a46ab676a (diff)
downloadopenbsd-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.h3
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,
1095int ssl_version_set_max(const SSL_METHOD *meth, uint16_t ver, uint16_t min_ver, 1095int 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);
1097uint16_t ssl_max_server_version(SSL *s); 1097uint16_t ssl_max_server_version(SSL *s);
1098int ssl_downgrade_max_version(SSL *s, uint16_t *max_ver);
1098int ssl_cipher_is_permitted(const SSL_CIPHER *cipher, uint16_t min_ver, 1099int ssl_cipher_is_permitted(const SSL_CIPHER *cipher, uint16_t min_ver,
1099 uint16_t max_ver); 1100 uint16_t max_ver);
1100 1101