projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add zero strenght arguments to BN and RAND RNG calls
[openssl.git]
/
crypto
/
srp
/
srp_vfy.c
diff --git
a/crypto/srp/srp_vfy.c
b/crypto/srp/srp_vfy.c
index 85e2c96e1a13f0d75500cb972329ba9fcb6c9f09..e8beb60d278a08773fad58afb02bf25f9bad3e97 100644
(file)
--- a/
crypto/srp/srp_vfy.c
+++ b/
crypto/srp/srp_vfy.c
@@
-645,7
+645,7
@@
char *SRP_create_verifier_ex(const char *user, const char *pass, char **salt,
}
if (*salt == NULL) {
}
if (*salt == NULL) {
- if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN) <= 0)
+ if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN
, 0
) <= 0)
goto err;
s = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL);
goto err;
s = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL);
@@
-728,7
+728,7
@@
int SRP_create_verifier_BN_ex(const char *user, const char *pass, BIGNUM **salt,
goto err;
if (*salt == NULL) {
goto err;
if (*salt == NULL) {
- if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN) <= 0)
+ if (RAND_bytes_ex(libctx, tmp2, SRP_RANDOM_SALT_LEN
, 0
) <= 0)
goto err;
salttmp = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL);
goto err;
salttmp = BN_bin2bn(tmp2, SRP_RANDOM_SALT_LEN, NULL);