diff options
author | jsing <> | 2018-02-22 16:41:04 +0000 |
---|---|---|
committer | jsing <> | 2018-02-22 16:41:04 +0000 |
commit | f893e5308029c2b4c7a91260a11cea3204ee39ee (patch) | |
tree | 84f14b068fd8bb19ffd9c7098650922a54e0b7dd /src/lib/libcrypto/dh/dh_lib.c | |
parent | 0bf6ecbe2d20b398c509a2a122cd7821dca2f0b9 (diff) | |
download | openbsd-f893e5308029c2b4c7a91260a11cea3204ee39ee.tar.gz openbsd-f893e5308029c2b4c7a91260a11cea3204ee39ee.tar.bz2 openbsd-f893e5308029c2b4c7a91260a11cea3204ee39ee.zip |
Provide DH_get0_engine().
Diffstat (limited to 'src/lib/libcrypto/dh/dh_lib.c')
-rw-r--r-- | src/lib/libcrypto/dh/dh_lib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dh/dh_lib.c b/src/lib/libcrypto/dh/dh_lib.c index 638b3a18fc..e02ce7455a 100644 --- a/src/lib/libcrypto/dh/dh_lib.c +++ b/src/lib/libcrypto/dh/dh_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh_lib.c,v 1.29 2018/02/20 21:11:15 tb Exp $ */ | 1 | /* $OpenBSD: dh_lib.c,v 1.30 2018/02/22 16:41:04 jsing 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 | * |
@@ -247,6 +247,12 @@ DH_bits(const DH *dh) | |||
247 | return BN_num_bits(dh->p); | 247 | return BN_num_bits(dh->p); |
248 | } | 248 | } |
249 | 249 | ||
250 | ENGINE * | ||
251 | DH_get0_engine(DH *dh) | ||
252 | { | ||
253 | return dh->engine; | ||
254 | } | ||
255 | |||
250 | void | 256 | void |
251 | DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) | 257 | DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) |
252 | { | 258 | { |