summaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2004-03-25 20:01:01 +0000
committerRichard Levitte <levitte@openssl.org>2004-03-25 20:01:01 +0000
commitfd9fa844e21b08b6038e7175f05fbd9be815d3df (patch)
tree1186daabdc6a1901947b931711f429c39b313aac /crypto/rand
parentc2dc3ee8d9f9662486fba8c450ed8ac8251357e1 (diff)
Wrap code starting with a definition.
PR: 854
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/randfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index fd90352848..dda020fb10 100644
--- 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");