projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename the rand_drbg_st data member "pool" to "seed_pool"
[openssl.git]
/
crypto
/
rand
/
rand_lib.c
diff --git
a/crypto/rand/rand_lib.c
b/crypto/rand/rand_lib.c
index 884917a36e28ded885d16baacc7a55f01e35ad50..4f1a1349004fdc3d65fef64552301a7d575bbaa0 100644
(file)
--- a/
crypto/rand/rand_lib.c
+++ b/
crypto/rand/rand_lib.c
@@
-146,8
+146,8
@@
size_t rand_drbg_get_entropy(RAND_DRBG *drbg,
return 0;
}
return 0;
}
- if (drbg->pool != NULL) {
- pool = drbg->pool;
+ if (drbg->
seed_
pool != NULL) {
+ pool = drbg->
seed_
pool;
pool->entropy_requested = entropy;
} else {
pool = rand_pool_new(entropy, min_len, max_len);
pool->entropy_requested = entropy;
} else {
pool = rand_pool_new(entropy, min_len, max_len);
@@
-204,7
+204,7
@@
size_t rand_drbg_get_entropy(RAND_DRBG *drbg,
}
err:
}
err:
- if (drbg->pool == NULL)
+ if (drbg->
seed_
pool == NULL)
rand_pool_free(pool);
return ret;
}
rand_pool_free(pool);
return ret;
}
@@
-216,7
+216,7
@@
size_t rand_drbg_get_entropy(RAND_DRBG *drbg,
void rand_drbg_cleanup_entropy(RAND_DRBG *drbg,
unsigned char *out, size_t outlen)
{
void rand_drbg_cleanup_entropy(RAND_DRBG *drbg,
unsigned char *out, size_t outlen)
{
- if (drbg->pool == NULL)
+ if (drbg->
seed_
pool == NULL)
OPENSSL_secure_clear_free(out, outlen);
}
OPENSSL_secure_clear_free(out, outlen);
}