projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make depend
[openssl.git]
/
crypto
/
rand
/
randfile.c
diff --git
a/crypto/rand/randfile.c
b/crypto/rand/randfile.c
index 45f8bb8b3d0987896050de719dfd7829046282d9..e15464651c3ff2219e4a4cb315fd5a45e5e8c2e0 100644
(file)
--- a/
crypto/rand/randfile.c
+++ b/
crypto/rand/randfile.c
@@
-113,12
+113,12
@@
static FILE *(*const vms_fopen)(const char *, const char *, ...) =
int RAND_load_file(const char *file, long bytes)
{
int RAND_load_file(const char *file, long bytes)
{
-
/*-
-
* If bytes >= 0, read up to 'bytes' bytes.
-
* if bytes == -1, read complete file.
-
*/
+ /*-
+ * If bytes >= 0, read up to 'bytes' bytes.
+ * if bytes == -1, read complete file.
+ */
-
MS_STATIC
unsigned char buf[BUFSIZE];
+ unsigned char buf[BUFSIZE];
#ifndef OPENSSL_NO_POSIX_IO
struct stat sb;
#endif
#ifndef OPENSSL_NO_POSIX_IO
struct stat sb;
#endif
@@
-160,9
+160,7
@@
int RAND_load_file(const char *file, long bytes)
* because we will waste system entropy.
*/
bytes = (bytes == -1) ? 2048 : bytes; /* ok, is 2048 enough? */
* because we will waste system entropy.
*/
bytes = (bytes == -1) ? 2048 : bytes; /* ok, is 2048 enough? */
-# ifndef OPENSSL_NO_SETVBUF_IONBF
- setvbuf(in, NULL, _IONBF, 0); /* don't do buffered reads */
-# endif /* ndef OPENSSL_NO_SETVBUF_IONBF */
+ setbuf(stdin, NULL); /* don't do buffered reads */
}
#endif
for (;;) {
}
#endif
for (;;) {