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:
c2dc3ee
)
Wrap code starting with a definition.
author
Richard Levitte
<levitte@openssl.org>
Thu, 25 Mar 2004 20:01:01 +0000
(20:01 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 25 Mar 2004 20:01:01 +0000
(20:01 +0000)
PR: 854
crypto/rand/randfile.c
patch
|
blob
|
history
diff --git
a/crypto/rand/randfile.c
b/crypto/rand/randfile.c
index fd903528485e1e76aede5ef9503a7db8b40499fe..dda020fb108f433507ca04cdf491761c5287de31 100644
(file)
--- a/
crypto/rand/randfile.c
+++ b/
crypto/rand/randfile.c
@@
-166,6
+166,7
@@
int RAND_write_file(const char *file)
}
#if defined(O_CREAT) && !defined(OPENSSL_SYS_WIN32)
+ {
/* For some reason Win32 can't write to files created this way */
/* chmod(..., 0600) is too late to protect the file,
@@
-173,6
+174,7
@@
int RAND_write_file(const char *file)
int fd = open(file, O_CREAT, 0600);
if (fd != -1)
out = fdopen(fd, "wb");
+ }
#endif
if (out == NULL)
out = fopen(file,"wb");