summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_local.h
diff options
context:
space:
mode:
authortb <>2025-10-24 09:23:06 +0000
committertb <>2025-10-24 09:23:06 +0000
commit2e803cbe8e599c0ae52e9dda44c3d22e3dec105d (patch)
tree1745d43df8008897003b3d8082f0f6d76a233b47 /src/lib/libssl/ssl_local.h
parent783e86feca43e6347eff9ec54047dfd62b4c93e0 (diff)
downloadopenbsd-2e803cbe8e599c0ae52e9dda44c3d22e3dec105d.tar.gz
openbsd-2e803cbe8e599c0ae52e9dda44c3d22e3dec105d.tar.bz2
openbsd-2e803cbe8e599c0ae52e9dda44c3d22e3dec105d.zip
libssl: const correct the ssl_session_dup() helper
This allows a const correct SSL_SESSION_dup() implementation at the cost of casting away const due to the const incorrect CRYPTO_dup_ex_data()... (I should look into fixing that, but things like rust-openssl make that hard at this point in the release cycle.) ok kenjiro (as part of a larger diff)
Diffstat (limited to 'src/lib/libssl/ssl_local.h')
-rw-r--r--src/lib/libssl/ssl_local.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_local.h b/src/lib/libssl/ssl_local.h
index acb87f8650..9921c3a730 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.33 2025/05/10 06:04:36 tb Exp $ */ 1/* $OpenBSD: ssl_local.h,v 1.34 2025/10/24 09:23:06 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 *
@@ -1240,7 +1240,7 @@ int ssl_security_cert_chain(const SSL *ssl, STACK_OF(X509) *sk,
1240int ssl_security_shared_group(const SSL *ssl, uint16_t group_id); 1240int ssl_security_shared_group(const SSL *ssl, uint16_t group_id);
1241int ssl_security_supported_group(const SSL *ssl, uint16_t group_id); 1241int ssl_security_supported_group(const SSL *ssl, uint16_t group_id);
1242 1242
1243SSL_SESSION *ssl_session_dup(SSL_SESSION *src, int include_ticket); 1243SSL_SESSION *ssl_session_dup(const SSL_SESSION *src, int include_ticket);
1244int ssl_get_new_session(SSL *s, int session); 1244int ssl_get_new_session(SSL *s, int session);
1245int ssl_get_prev_session(SSL *s, CBS *session_id, CBS *ext_block, 1245int ssl_get_prev_session(SSL *s, CBS *session_id, CBS *ext_block,
1246 int *alert); 1246 int *alert);