diff options
author | 2018-02-22 16:41:04 +0000 | |
---|---|---|
committer | 2018-02-22 16:41:04 +0000 | |
commit | dfbc7a436cad6c7e6d7ea00f4a56a59ba9a4d69d (patch) | |
tree | bc4a1ca39e07b93d5192c7f689ddca767319cee9 /lib/libcrypto/dh/dh_lib.c | |
parent | Provide BIO_up_ref(). (diff) | |
download | wireguard-openbsd-dfbc7a436cad6c7e6d7ea00f4a56a59ba9a4d69d.tar.xz wireguard-openbsd-dfbc7a436cad6c7e6d7ea00f4a56a59ba9a4d69d.zip |
Provide DH_get0_engine().
Diffstat (limited to 'lib/libcrypto/dh/dh_lib.c')
-rw-r--r-- | lib/libcrypto/dh/dh_lib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libcrypto/dh/dh_lib.c b/lib/libcrypto/dh/dh_lib.c index 638b3a18fc4..e02ce7455a2 100644 --- a/lib/libcrypto/dh/dh_lib.c +++ b/lib/libcrypto/dh/dh_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh_lib.c,v 1.29 2018/02/20 21:11:15 tb Exp $ */ +/* $OpenBSD: dh_lib.c,v 1.30 2018/02/22 16:41:04 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -247,6 +247,12 @@ DH_bits(const DH *dh) return BN_num_bits(dh->p); } +ENGINE * +DH_get0_engine(DH *dh) +{ + return dh->engine; +} + void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) { |