From f3b35d1af02c3bc250276acd62a2434d3b80d349 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 14 Jul 2024 15:39:36 +0000 Subject: Prepare to provide SSL_CIPHER_get_handshake_digest() Needed by newer freeradius. This is a straightforward implementation that essentially duplicates tls13_cipher_hash(). ok jsing --- src/lib/libssl/ssl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/ssl.h') diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index e63312a123..d8846a4851 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.238 2024/07/13 18:33:18 tb Exp $ */ +/* $OpenBSD: ssl.h,v 1.239 2024/07/14 15:39:36 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1125,6 +1125,9 @@ int SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c); int SSL_CIPHER_get_digest_nid(const SSL_CIPHER *c); int SSL_CIPHER_get_kx_nid(const SSL_CIPHER *c); int SSL_CIPHER_get_auth_nid(const SSL_CIPHER *c); +#if defined(LIBRESSL_INTERNAL) || defined(LIBRESSL_NEXT_API) +const EVP_MD *SSL_CIPHER_get_handshake_digest(const SSL_CIPHER *c); +#endif int SSL_CIPHER_is_aead(const SSL_CIPHER *c); int SSL_get_fd(const SSL *s); -- cgit v1.2.3-55-g6feb