summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dh/dh.h
diff options
context:
space:
mode:
authortb <>2022-06-27 12:31:38 +0000
committertb <>2022-06-27 12:31:38 +0000
commite9bc35a6d120c0aa1f30feafb92222df91771dbd (patch)
tree931e6b745022209240526123ee6e1211a6334fdc /src/lib/libcrypto/dh/dh.h
parent8674f39abf2f430ca49e5a5422d35c5e540a8f44 (diff)
downloadopenbsd-e9bc35a6d120c0aa1f30feafb92222df91771dbd.tar.gz
openbsd-e9bc35a6d120c0aa1f30feafb92222df91771dbd.tar.bz2
openbsd-e9bc35a6d120c0aa1f30feafb92222df91771dbd.zip
Prepare to provide DH_security_bits()
ok beck jsing
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/dh/dh.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dh/dh.h b/src/lib/libcrypto/dh/dh.h
index ef10495029..c7f4d3fdd0 100644
--- a/src/lib/libcrypto/dh/dh.h
+++ b/src/lib/libcrypto/dh/dh.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: dh.h,v 1.32 2022/01/14 08:25:44 tb Exp $ */ 1/* $OpenBSD: dh.h,v 1.33 2022/06/27 12:31:38 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 *
@@ -143,6 +143,9 @@ int DH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
143 CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); 143 CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
144int DH_set_ex_data(DH *d, int idx, void *arg); 144int DH_set_ex_data(DH *d, int idx, void *arg);
145void *DH_get_ex_data(DH *d, int idx); 145void *DH_get_ex_data(DH *d, int idx);
146#ifdef LIBRESSL_INTERNAL
147int DH_security_bits(const DH *dh);
148#endif
146 149
147ENGINE *DH_get0_engine(DH *d); 150ENGINE *DH_get0_engine(DH *d);
148void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, 151void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q,