diff options
| author | markus <> | 2002-09-05 22:12:12 +0000 |
|---|---|---|
| committer | markus <> | 2002-09-05 22:12:12 +0000 |
| commit | e08fb7998d733407336e83a299f140b0c1d2fcd3 (patch) | |
| tree | 64de5de3b0be4adfc5050b6f785b6975c564b730 /src/lib/libcrypto/dsa/dsa_key.c | |
| parent | b200d1ec45aafc7c92b197a4b605e34834d74f1d (diff) | |
| download | openbsd-e08fb7998d733407336e83a299f140b0c1d2fcd3.tar.gz openbsd-e08fb7998d733407336e83a299f140b0c1d2fcd3.tar.bz2 openbsd-e08fb7998d733407336e83a299f140b0c1d2fcd3.zip | |
merge with 0.9.7-beta1
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_key.c')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_key.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_key.c b/src/lib/libcrypto/dsa/dsa_key.c index bf718c1c6d..ef87c3e637 100644 --- a/src/lib/libcrypto/dsa/dsa_key.c +++ b/src/lib/libcrypto/dsa/dsa_key.c | |||
| @@ -64,8 +64,6 @@ | |||
| 64 | #include <openssl/dsa.h> | 64 | #include <openssl/dsa.h> |
| 65 | #include <openssl/rand.h> | 65 | #include <openssl/rand.h> |
| 66 | 66 | ||
| 67 | extern int __BN_rand_range(BIGNUM *r, BIGNUM *range); | ||
| 68 | |||
| 69 | int DSA_generate_key(DSA *dsa) | 67 | int DSA_generate_key(DSA *dsa) |
| 70 | { | 68 | { |
| 71 | int ok=0; | 69 | int ok=0; |
| @@ -82,7 +80,7 @@ int DSA_generate_key(DSA *dsa) | |||
| 82 | priv_key=dsa->priv_key; | 80 | priv_key=dsa->priv_key; |
| 83 | 81 | ||
| 84 | do | 82 | do |
| 85 | if (!__BN_rand_range(priv_key,dsa->q)) goto err; | 83 | if (!BN_rand_range(priv_key,dsa->q)) goto err; |
| 86 | while (BN_is_zero(priv_key)); | 84 | while (BN_is_zero(priv_key)); |
| 87 | 85 | ||
| 88 | if (dsa->pub_key == NULL) | 86 | if (dsa->pub_key == NULL) |
