diff options
| author | tb <> | 2022-01-05 20:52:14 +0000 |
|---|---|---|
| committer | tb <> | 2022-01-05 20:52:14 +0000 |
| commit | 30f2a4ab5339ee0c1b10fbdbfe5caae18ba09525 (patch) | |
| tree | d97b55a8463b32f67d8c3b0c133809eb96fb742a /src/lib/libcrypto/dsa/dsa_lib.c | |
| parent | a4481172b798978099e06e9751d45cd5760c1551 (diff) | |
| download | openbsd-30f2a4ab5339ee0c1b10fbdbfe5caae18ba09525.tar.gz openbsd-30f2a4ab5339ee0c1b10fbdbfe5caae18ba09525.tar.bz2 openbsd-30f2a4ab5339ee0c1b10fbdbfe5caae18ba09525.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 | } | ||
