diff options
author | tb <> | 2022-01-14 07:49:49 +0000 |
---|---|---|
committer | tb <> | 2022-01-14 07:49:49 +0000 |
commit | 8c60ea70a3180083dd57070d774a38f43ce0ea08 (patch) | |
tree | 86eaa4f6c31663bf615ddba9616c66030e99b5c9 /src/lib/libcrypto/dh | |
parent | 55b6b15a4f08444e468a207fc894ef005c2fb5fa (diff) | |
download | openbsd-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.h | 6 |
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, | |||
199 | int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); | 199 | int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); |
200 | void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key); | 200 | void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key); |
201 | int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); | 201 | int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key); |
202 | #if defined(LIBRESSL_OPAQUE_DH) || defined(LIBRESSL_CRYPTO_INTERNAL) | ||
203 | const BIGNUM *DH_get0_p(const DH *dh); | 202 | const BIGNUM *DH_get0_p(const DH *dh); |
204 | const BIGNUM *DH_get0_q(const DH *dh); | 203 | const BIGNUM *DH_get0_q(const DH *dh); |
205 | const BIGNUM *DH_get0_g(const DH *dh); | 204 | const BIGNUM *DH_get0_g(const DH *dh); |
206 | const BIGNUM *DH_get0_priv_key(const DH *dh); | 205 | const BIGNUM *DH_get0_priv_key(const DH *dh); |
207 | const BIGNUM *DH_get0_pub_key(const DH *dh); | 206 | const BIGNUM *DH_get0_pub_key(const DH *dh); |
208 | #endif | ||
209 | void DH_clear_flags(DH *dh, int flags); | 207 | void DH_clear_flags(DH *dh, int flags); |
210 | int DH_test_flags(const DH *dh, int flags); | 208 | int DH_test_flags(const DH *dh, int flags); |
211 | void DH_set_flags(DH *dh, int flags); | 209 | void DH_set_flags(DH *dh, int flags); |
212 | #if defined(LIBRESSL_OPAQUE_DH) || defined(LIBRESSL_CRYPTO_INTERNAL) | ||
213 | long DH_get_length(const DH *dh); | 210 | long DH_get_length(const DH *dh); |
214 | #endif | ||
215 | int DH_set_length(DH *dh, long length); | 211 | int DH_set_length(DH *dh, long length); |
216 | 212 | ||
217 | /* Deprecated version */ | 213 | /* Deprecated version */ |