projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change callers to use the new constants.
[oweals/openssl.git]
/
crypto
/
dh
/
dh_key.c
diff --git
a/crypto/dh/dh_key.c
b/crypto/dh/dh_key.c
index 21dada35addcf000400d4e5e5dc5f797528ac0c6..fe021904ccc86c633427d9cdbe9ee8a56800c3ad 100644
(file)
--- 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;
}
}