summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authortb <>2022-10-20 15:22:51 +0000
committertb <>2022-10-20 15:22:51 +0000
commit2eb5ecc0e85a8e912093ea091e01062b9f248743 (patch)
tree4d9d553629fe11145cfba0462caaeaad44995a65 /src/lib/libssl/ssl_locl.h
parent47209472cf3275a516b2c41cd92de3e922851222 (diff)
downloadopenbsd-2eb5ecc0e85a8e912093ea091e01062b9f248743.tar.gz
openbsd-2eb5ecc0e85a8e912093ea091e01062b9f248743.tar.bz2
openbsd-2eb5ecc0e85a8e912093ea091e01062b9f248743.zip
Provide ssl_session_dup()
SSL_SESSION_dup() is a currently essentially unused public OpenSSL 1.1.1 API. Add a version that does not duplicate the secrets for internal use. If the public API should be needed, we can easily make it a wrapper. ok jsing
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 1ddc5e0d5c..42ae429074 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.428 2022/10/20 15:20:27 tb Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.429 2022/10/20 15:22:51 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 *
@@ -1313,6 +1313,7 @@ int ssl_security_cert_chain(const SSL *ssl, STACK_OF(X509) *sk,
1313int ssl_security_shared_group(const SSL *ssl, uint16_t group_id); 1313int ssl_security_shared_group(const SSL *ssl, uint16_t group_id);
1314int ssl_security_supported_group(const SSL *ssl, uint16_t group_id); 1314int ssl_security_supported_group(const SSL *ssl, uint16_t group_id);
1315 1315
1316SSL_SESSION *ssl_session_dup(SSL_SESSION *src, int include_ticket);
1316int ssl_get_new_session(SSL *s, int session); 1317int ssl_get_new_session(SSL *s, int session);
1317int ssl_get_prev_session(SSL *s, CBS *session_id, CBS *ext_block, 1318int ssl_get_prev_session(SSL *s, CBS *session_id, CBS *ext_block,
1318 int *alert); 1319 int *alert);