diff options
author | jsing <> | 2021-02-22 15:59:10 +0000 |
---|---|---|
committer | jsing <> | 2021-02-22 15:59:10 +0000 |
commit | 5be7b39a3d59ca113945b77a97aaa4d8875ccc82 (patch) | |
tree | a7f7865a8d1bcc0bfa905831a41b2d44f8183e83 /src/lib/libssl/ssl_locl.h | |
parent | 1da7041bc31ef34b77468a85d810549c4e4f0729 (diff) | |
download | openbsd-5be7b39a3d59ca113945b77a97aaa4d8875ccc82.tar.gz openbsd-5be7b39a3d59ca113945b77a97aaa4d8875ccc82.tar.bz2 openbsd-5be7b39a3d59ca113945b77a97aaa4d8875ccc82.zip |
Factor out/change some of the legacy client version handling code.
This consolidates the version handling code and will make upcoming changes
easier.
ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index fc61ffee4f..3a4d318987 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.321 2021/02/20 09:43:29 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.322 2021/02/22 15:59:10 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 | * |
@@ -1123,12 +1123,14 @@ extern const SSL_CIPHER ssl3_ciphers[]; | |||
1123 | const char *ssl_version_string(int ver); | 1123 | const char *ssl_version_string(int ver); |
1124 | int ssl_enabled_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver); | 1124 | int ssl_enabled_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver); |
1125 | int ssl_supported_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver); | 1125 | int ssl_supported_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver); |
1126 | int ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver); | ||
1127 | int ssl_version_set_min(const SSL_METHOD *meth, uint16_t ver, uint16_t max_ver, | 1126 | int ssl_version_set_min(const SSL_METHOD *meth, uint16_t ver, uint16_t max_ver, |
1128 | uint16_t *out_ver, uint16_t *out_proto_ver); | 1127 | uint16_t *out_ver, uint16_t *out_proto_ver); |
1129 | int ssl_version_set_max(const SSL_METHOD *meth, uint16_t ver, uint16_t min_ver, | 1128 | int ssl_version_set_max(const SSL_METHOD *meth, uint16_t ver, uint16_t min_ver, |
1130 | uint16_t *out_ver, uint16_t *out_proto_ver); | 1129 | uint16_t *out_ver, uint16_t *out_proto_ver); |
1131 | int ssl_downgrade_max_version(SSL *s, uint16_t *max_ver); | 1130 | int ssl_downgrade_max_version(SSL *s, uint16_t *max_ver); |
1131 | int ssl_max_supported_version(SSL *s, uint16_t *max_ver); | ||
1132 | int ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver); | ||
1133 | int ssl_check_version_from_server(SSL *s, uint16_t server_version); | ||
1132 | int ssl_legacy_stack_version(SSL *s, uint16_t version); | 1134 | int ssl_legacy_stack_version(SSL *s, uint16_t version); |
1133 | int ssl_cipher_in_list(STACK_OF(SSL_CIPHER) *ciphers, const SSL_CIPHER *cipher); | 1135 | int ssl_cipher_in_list(STACK_OF(SSL_CIPHER) *ciphers, const SSL_CIPHER *cipher); |
1134 | int ssl_cipher_allowed_in_version_range(const SSL_CIPHER *cipher, | 1136 | int ssl_cipher_allowed_in_version_range(const SSL_CIPHER *cipher, |