projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e903238
)
ERR_peek_error() returns "unsigned long".
author
Lutz Jänicke
<jaenicke@openssl.org>
Thu, 7 Jun 2001 17:22:01 +0000
(17:22 +0000)
committer
Lutz Jänicke
<jaenicke@openssl.org>
Thu, 7 Jun 2001 17:22:01 +0000
(17:22 +0000)
crypto/rand/md_rand.c
patch
|
blob
|
history
diff --git
a/crypto/rand/md_rand.c
b/crypto/rand/md_rand.c
index 2d049e227b7bc176f555f9fcc1c4dd21dad5c3f9..534899bbce0ecae541e534c4079e4faeedf12ae7 100644
(file)
--- a/
crypto/rand/md_rand.c
+++ b/
crypto/rand/md_rand.c
@@
-493,11
+493,12
@@
static int ssleay_rand_bytes(unsigned char *buf, int num)
static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num)
{
int ret;
+ unsigned long err;
ret = RAND_bytes(buf, num);
if (ret == 0)
{
-
long
err = ERR_peek_error();
+ err = ERR_peek_error();
if (ERR_GET_LIB(err) == ERR_LIB_RAND &&
ERR_GET_REASON(err) == RAND_R_PRNG_NOT_SEEDED)
(void)ERR_get_error();