summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_local.h
diff options
context:
space:
mode:
authortb <>2026-06-04 12:05:57 +0000
committertb <>2026-06-04 12:05:57 +0000
commitf7aa9e9ab865860ef489999bdcd0737e5cb3bc46 (patch)
treef092de9601f3a08ed67e65523cc19e5af99483d9 /src/lib/libssl/ssl_local.h
parent1706e03b9fc0ba05a73b554b68d7275dbf79fd48 (diff)
downloadopenbsd-f7aa9e9ab865860ef489999bdcd0737e5cb3bc46.tar.gz
openbsd-f7aa9e9ab865860ef489999bdcd0737e5cb3bc46.tar.bz2
openbsd-f7aa9e9ab865860ef489999bdcd0737e5cb3bc46.zip
libssl: const correct ssl_*version* API
None of these functions modifies the SSL pointer. An upcoming diff will need to call one of them with a const pointer, so fix all of them. ok jsing kenjiro
Diffstat (limited to 'src/lib/libssl/ssl_local.h')
-rw-r--r--src/lib/libssl/ssl_local.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/lib/libssl/ssl_local.h b/src/lib/libssl/ssl_local.h
index df4c0dc357..d5c218e50d 100644
--- a/src/lib/libssl/ssl_local.h
+++ b/src/lib/libssl/ssl_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_local.h,v 1.39 2026/05/31 14:34:44 jsing Exp $ */ 1/* $OpenBSD: ssl_local.h,v 1.40 2026/06/04 12:05:57 tb 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 *
@@ -1177,15 +1177,17 @@ int ssl_version_set_min(const SSL_METHOD *meth, uint16_t proto_ver,
1177 uint16_t max_tls_ver, uint16_t *out_tls_ver, uint16_t *out_proto_ver); 1177 uint16_t max_tls_ver, uint16_t *out_tls_ver, uint16_t *out_proto_ver);
1178int ssl_version_set_max(const SSL_METHOD *meth, uint16_t proto_ver, 1178int ssl_version_set_max(const SSL_METHOD *meth, uint16_t proto_ver,
1179 uint16_t min_tls_ver, uint16_t *out_tls_ver, uint16_t *out_proto_ver); 1179 uint16_t min_tls_ver, uint16_t *out_tls_ver, uint16_t *out_proto_ver);
1180int ssl_enabled_tls_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver); 1180int ssl_enabled_tls_version_range(const SSL *s, uint16_t *min_ver,
1181int ssl_supported_tls_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver); 1181 uint16_t *max_ver);
1182int ssl_supported_tls_version_range(const SSL *s, uint16_t *min_ver,
1183 uint16_t *max_ver);
1182uint16_t ssl_tls_version(uint16_t version); 1184uint16_t ssl_tls_version(uint16_t version);
1183uint16_t ssl_effective_tls_version(SSL *s); 1185uint16_t ssl_effective_tls_version(const SSL *s);
1184int ssl_max_supported_version(SSL *s, uint16_t *max_ver); 1186int ssl_max_supported_version(const SSL *s, uint16_t *max_ver);
1185int ssl_max_legacy_version(SSL *s, uint16_t *max_ver); 1187int ssl_max_legacy_version(const SSL *s, uint16_t *max_ver);
1186int ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver); 1188int ssl_max_shared_version(const SSL *s, uint16_t peer_ver, uint16_t *max_ver);
1187int ssl_check_version_from_server(SSL *s, uint16_t server_version); 1189int ssl_check_version_from_server(const SSL *s, uint16_t server_version);
1188int ssl_legacy_stack_version(SSL *s, uint16_t version); 1190int ssl_legacy_stack_version(const SSL *s, uint16_t version);
1189int ssl_cipher_in_list(STACK_OF(SSL_CIPHER) *ciphers, const SSL_CIPHER *cipher); 1191int ssl_cipher_in_list(STACK_OF(SSL_CIPHER) *ciphers, const SSL_CIPHER *cipher);
1190int ssl_cipher_allowed_in_tls_version_range(const SSL_CIPHER *cipher, 1192int ssl_cipher_allowed_in_tls_version_range(const SSL_CIPHER *cipher,
1191 uint16_t min_ver, uint16_t max_ver); 1193 uint16_t min_ver, uint16_t max_ver);