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:
6bdb723
)
add comment and RAND_load_file() change as in main branch.
author
Ulf Möller
<ulf@openssl.org>
Thu, 8 Feb 2001 17:50:55 +0000
(17:50 +0000)
committer
Ulf Möller
<ulf@openssl.org>
Thu, 8 Feb 2001 17:50:55 +0000
(17:50 +0000)
crypto/rand/randfile.c
patch
|
blob
|
history
diff --git
a/crypto/rand/randfile.c
b/crypto/rand/randfile.c
index 528e410f74009e82ccb922801d4bf316a5a90685..02f16aa810329d28ee698dc51a05130f37645c9a 100644
(file)
--- a/
crypto/rand/randfile.c
+++ b/
crypto/rand/randfile.c
@@
-83,6
+83,9
@@
/* #define RFILE ".rnd" - defined in ../../e_os.h */
+/* Note that these functions are intended for seed files only.
+ * Entropy devices and EGD sockets are handled in rand_unix.c */
+
int RAND_load_file(const char *file, long bytes)
{
/* If bytes >= 0, read up to 'bytes' bytes.
@@
-117,7
+120,7
@@
int RAND_load_file(const char *file, long bytes)
if (bytes > 0)
{
bytes-=n;
- if (bytes
=
= 0) break;
+ if (bytes
<
= 0) break;
}
}
fclose(in);