summaryrefslogtreecommitdiffstats
path: root/crypto/dsa/dsa_ossl.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-02-10 01:34:02 +0100
committerBodo Möller <bodo@openssl.org>2001-02-10 01:34:02 +0100
commite306892994a0f189089916d2ea66b3bdc0b2d777 (patch)
tree94199007669d4e72e954df3615b86bae9a3c742c /crypto/dsa/dsa_ossl.c
parentNew Option SSL_OP_CIPHER_SERVER_PREFERENCE allows TLS/SSLv3 server to override (diff)
downloadopenssl-e306892994a0f189089916d2ea66b3bdc0b2d777.tar.xz
openssl-e306892994a0f189089916d2ea66b3bdc0b2d777.zip
Simplify BN_rand_range
Diffstat (limited to 'crypto/dsa/dsa_ossl.c')
-rw-r--r--crypto/dsa/dsa_ossl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dsa/dsa_ossl.c b/crypto/dsa/dsa_ossl.c
index 1967290baf..7346817337 100644
--- a/crypto/dsa/dsa_ossl.c
+++ b/crypto/dsa/dsa_ossl.c
@@ -181,7 +181,7 @@ static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
/* Get random k */
do
- if (!BN_rand_range(&k, NULL, dsa->q)) goto err;
+ if (!BN_rand_range(&k, dsa->q)) goto err;
while (BN_is_zero(&k));
if ((dsa->method_mont_p == NULL) && (dsa->flags & DSA_FLAG_CACHE_MONT_P))