Changeset 105945 in vbox for trunk/src/libs/openssl-3.1.7/crypto/rand/randfile.c
- Timestamp:
- Sep 4, 2024 11:32:47 AM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 164679
- Location:
- trunk/src/libs/openssl-3.1.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.1.7
- Property svn:mergeinfo
-
old new 25 25 /vendor/openssl/3.0.3:151497-151729 26 26 /vendor/openssl/3.0.7:154371 27 /vendor/openssl/3.1.7:164675-164677
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.1.7/crypto/rand/randfile.c
r104078 r105945 1 1 /* 2 * Copyright 1995-202 1The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 4 * Licensed under the Apache License 2.0 (the "License"). You may not use … … 17 17 #endif 18 18 19 #include "internal/e_os.h" 19 20 #include "internal/cryptlib.h" 20 21 … … 213 214 */ 214 215 int fd = open(file, O_WRONLY | O_CREAT | O_BINARY, 0600); 215 if (fd != -1) 216 217 if (fd != -1) { 216 218 out = fdopen(fd, "wb"); 219 if (out == NULL) { 220 close(fd); 221 ERR_raise_data(ERR_LIB_RAND, RAND_R_CANNOT_OPEN_FILE, 222 "Filename=%s", file); 223 return -1; 224 } 225 } 217 226 } 218 227 #endif
Note:
See TracChangeset
for help on using the changeset viewer.