diff options
author | tb <> | 2022-01-05 20:52:14 +0000 |
---|---|---|
committer | tb <> | 2022-01-05 20:52:14 +0000 |
commit | 6374ad4e43d13b83a40757c4aabea3a9a4d40c07 (patch) | |
tree | d97b55a8463b32f67d8c3b0c133809eb96fb742a /src/lib/libcrypto/dsa/dsa_lib.c | |
parent | eef6ddcccaf5fe42f6d86ba338a40717dad95c4c (diff) | |
download | openbsd-6374ad4e43d13b83a40757c4aabea3a9a4d40c07.tar.gz openbsd-6374ad4e43d13b83a40757c4aabea3a9a4d40c07.tar.bz2 openbsd-6374ad4e43d13b83a40757c4aabea3a9a4d40c07.zip |
Prepare to provide DSA_bits()
Used by Qt5 and Qt6 and slightly reduces the patching in there.
ok inoguchi jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_lib.c')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_lib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_lib.c b/src/lib/libcrypto/dsa/dsa_lib.c index 146d2cc5e0..84d0fdb320 100644 --- a/src/lib/libcrypto/dsa/dsa_lib.c +++ b/src/lib/libcrypto/dsa/dsa_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_lib.c,v 1.30 2022/01/05 20:33:49 tb Exp $ */ | 1 | /* $OpenBSD: dsa_lib.c,v 1.31 2022/01/05 20:52:14 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 | * |
@@ -414,3 +414,9 @@ DSA_get0_engine(DSA *d) | |||
414 | { | 414 | { |
415 | return d->engine; | 415 | return d->engine; |
416 | } | 416 | } |
417 | |||
418 | int | ||
419 | DSA_bits(const DSA *dsa) | ||
420 | { | ||
421 | return BN_num_bits(dsa->p); | ||
422 | } | ||