diff options
author | 2018-02-20 17:59:31 +0000 | |
---|---|---|
committer | 2018-02-20 17:59:31 +0000 | |
commit | a108d6e6ea6fc9da7b3b6c55fff679aaf5f45019 (patch) | |
tree | 40b8096de1ee424eef2ff24ead9d71b13d420b0d /lib/libcrypto/dh/dh_lib.c | |
parent | Provide BIO_{g,s}et_shutdown(). (diff) | |
download | wireguard-openbsd-a108d6e6ea6fc9da7b3b6c55fff679aaf5f45019.tar.xz wireguard-openbsd-a108d6e6ea6fc9da7b3b6c55fff679aaf5f45019.zip |
Provide DH_bits()
ok jsing
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 e5e8b9146b9..ade6ace4871 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.26 2018/02/20 17:38:15 tb Exp $ */ +/* $OpenBSD: dh_lib.c,v 1.27 2018/02/20 17:59:31 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -240,6 +240,12 @@ DH_size(const DH *dh) return BN_num_bytes(dh->p); } +int +DH_bits(const DH *dh) +{ + return BN_num_bits(dh->p); +} + void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g) { |