summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dh
diff options
context:
space:
mode:
authortb <>2022-01-14 07:49:49 +0000
committertb <>2022-01-14 07:49:49 +0000
commit8c60ea70a3180083dd57070d774a38f43ce0ea08 (patch)
tree86eaa4f6c31663bf615ddba9616c66030e99b5c9 /src/lib/libcrypto/dh
parent55b6b15a4f08444e468a207fc894ef005c2fb5fa (diff)
downloadopenbsd-8c60ea70a3180083dd57070d774a38f43ce0ea08.tar.gz
openbsd-8c60ea70a3180083dd57070d774a38f43ce0ea08.tar.bz2
openbsd-8c60ea70a3180083dd57070d774a38f43ce0ea08.zip
Unifdef LIBRESSL_OPAQUE_* and LIBRESSL_NEXT_API
This marks the start of major surgery in libcrypto. Do not attempt to build the tree for a while (~50 commits).
Diffstat (limited to 'src/lib/libcrypto/dh')
-rw-r--r--src/lib/libcrypto/dh/dh.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libcrypto/dh/dh.h b/src/lib/libcrypto/dh/dh.h
index 21e840efc4..4545035afb 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.30 2022/01/10 12:00:52 tb Exp $ */ 1/* $OpenBSD: dh.h,v 1.31 2022/01/14 07:49:49 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 *
@@ -199,19 +199,15 @@ void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q,
199int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); 199int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
200void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key); 200void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key);
201int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); 201int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
202#if defined(LIBRESSL_OPAQUE_DH) || defined(LIBRESSL_CRYPTO_INTERNAL)
203const BIGNUM *DH_get0_p(const DH *dh); 202const BIGNUM *DH_get0_p(const DH *dh);
204const BIGNUM *DH_get0_q(const DH *dh); 203const BIGNUM *DH_get0_q(const DH *dh);
205const BIGNUM *DH_get0_g(const DH *dh); 204const BIGNUM *DH_get0_g(const DH *dh);
206const BIGNUM *DH_get0_priv_key(const DH *dh); 205const BIGNUM *DH_get0_priv_key(const DH *dh);
207const BIGNUM *DH_get0_pub_key(const DH *dh); 206const BIGNUM *DH_get0_pub_key(const DH *dh);
208#endif
209void DH_clear_flags(DH *dh, int flags); 207void DH_clear_flags(DH *dh, int flags);
210int DH_test_flags(const DH *dh, int flags); 208int DH_test_flags(const DH *dh, int flags);
211void DH_set_flags(DH *dh, int flags); 209void DH_set_flags(DH *dh, int flags);
212#if defined(LIBRESSL_OPAQUE_DH) || defined(LIBRESSL_CRYPTO_INTERNAL)
213long DH_get_length(const DH *dh); 210long DH_get_length(const DH *dh);
214#endif
215int DH_set_length(DH *dh, long length); 211int DH_set_length(DH *dh, long length);
216 212
217/* Deprecated version */ 213/* Deprecated version */