From 76b5548b5c75a505052a7c87be2ee3251ccbda0f Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 5 Jan 2022 20:36:29 +0000 Subject: Prepare to provide DH_get_length() Will be needed by openssl(1) dhparam. ok inoguchi jsing --- src/lib/libcrypto/dh/dh.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/dh/dh.h') diff --git a/src/lib/libcrypto/dh/dh.h b/src/lib/libcrypto/dh/dh.h index 8e57c191c4..83ad67bebf 100644 --- a/src/lib/libcrypto/dh/dh.h +++ b/src/lib/libcrypto/dh/dh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.h,v 1.27 2022/01/05 20:30:16 tb Exp $ */ +/* $OpenBSD: dh.h,v 1.28 2022/01/05 20:36:29 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -209,6 +209,9 @@ const BIGNUM *DH_get0_pub_key(const DH *dh); void DH_clear_flags(DH *dh, int flags); int DH_test_flags(const DH *dh, int flags); void DH_set_flags(DH *dh, int flags); +#if defined(LIBRESSL_OPAQUE_DH) || defined(LIBRESSL_CRYPTO_INTERNAL) +long DH_get_length(const DH *dh); +#endif int DH_set_length(DH *dh, long length); /* Deprecated version */ -- cgit v1.2.3-55-g6feb