Changeset 105949 in vbox for trunk/src/libs/openssl-3.1.7/crypto/rand/randfile.c
- Timestamp:
- Sep 4, 2024 12:53:14 PM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 164683
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.1.7/crypto/rand/randfile.c
r105945 r105949 1 1 /* 2 * Copyright 1995-202 4The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 1995-2021 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"20 19 #include "internal/cryptlib.h" 21 20 … … 214 213 */ 215 214 int fd = open(file, O_WRONLY | O_CREAT | O_BINARY, 0600); 216 217 if (fd != -1) { 215 if (fd != -1) 218 216 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 }226 217 } 227 218 #endif
Note:
See TracChangeset
for help on using the changeset viewer.