diff options
author | Rich Salz <rsalz@openssl.org> | 2016-08-08 22:12:28 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-08-10 10:07:37 -0400 |
commit | 2301d91dd58d9827865e360d616291f2549ec5bf (patch) | |
tree | 0b60f1e481fbf8c4afc49f493d59a3c8961febb8 /crypto/dh | |
parent | f67cbb74437842a0f88f84f43a0faa968ca77b35 (diff) |
Change callers to use the new constants.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1429)
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/dh_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dh/dh_key.c b/crypto/dh/dh_key.c index 21dada35ad..fe021904cc 100644 --- a/crypto/dh/dh_key.c +++ b/crypto/dh/dh_key.c @@ -106,7 +106,7 @@ static int generate_key(DH *dh) } else { /* secret exponent length */ l = dh->length ? dh->length : BN_num_bits(dh->p) - 1; - if (!BN_rand(priv_key, l, 0, 0)) + if (!BN_rand(priv_key, l, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY)) goto err; } } |