summaryrefslogtreecommitdiffstats
path: root/crypto/dsa/dsa_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-08-01 18:37:03 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-08-01 19:37:42 +0100
commit5d8d9a8efaad0ece23f6692f1b1318744230fd4d (patch)
treeab17e16b52b1f2c4b38d887c0317825fcf3bbb62 /crypto/dsa/dsa_lib.c
parent6c1f368d882846e5624f8b47be951d16be65a30c (diff)
Add DSA_bits() function.
RT#4637 Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/dsa/dsa_lib.c')
-rw-r--r--crypto/dsa/dsa_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c
index 9c001d7b1b..42324c70fb 100644
--- a/crypto/dsa/dsa_lib.c
+++ b/crypto/dsa/dsa_lib.c
@@ -339,3 +339,8 @@ ENGINE *DSA_get0_engine(DSA *d)
{
return d->engine;
}
+
+int DSA_bits(const DSA *dsa)
+{
+ return BN_num_bits(dsa->p);
+}