aboutsummaryrefslogtreecommitdiff
path: root/crypto/rand/randfile.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2001-02-08 17:22:56 +0000
committerUlf Möller <ulf@openssl.org>2001-02-08 17:22:56 +0000
commit928cc3a6de4606faece84ee1468a7ff2b7fc521e (patch)
tree31a813395417c1417092eba020b54d07db5d990f /crypto/rand/randfile.c
parent466e4249ab0cab8b4941261b1a9c4a9a04684e2c (diff)
downloadopenssl-928cc3a6de4606faece84ee1468a7ff2b7fc521e.zip
openssl-928cc3a6de4606faece84ee1468a7ff2b7fc521e.tar.gz
openssl-928cc3a6de4606faece84ee1468a7ff2b7fc521e.tar.bz2
point out that RAND_load_file() etc are only for seed files, not for
entropy devices or sockets.
Diffstat (limited to 'crypto/rand/randfile.c')
-rw-r--r--crypto/rand/randfile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index 528e410..fe4f2a9 100644
--- 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.