Lines Matching refs:file
85 int RAND_load_file(const char *file, long bytes) in RAND_load_file() argument
106 if ((in = openssl_fopen(file, "rb")) == NULL) { in RAND_load_file()
108 "Filename=%s", file); in RAND_load_file()
115 "Filename=%s", file); in RAND_load_file()
175 ERR_raise_data(ERR_LIB_RAND, RAND_R_RESEED_ERROR, "Filename=%s", file); in RAND_load_file()
182 int RAND_write_file(const char *file) in RAND_write_file() argument
190 if (stat(file, &sb) >= 0 && !S_ISREG(sb.st_mode)) { in RAND_write_file()
192 "Filename=%s", file); in RAND_write_file()
211 int fd = open(file, O_WRONLY | O_CREAT | O_BINARY, 0600); in RAND_write_file()
218 "Filename=%s", file); in RAND_write_file()
243 out = openssl_fopen(file, "rb+"); in RAND_write_file()
247 out = openssl_fopen(file, "wb"); in RAND_write_file()
250 "Filename=%s", file); in RAND_write_file()
258 chmod(file, 0600); in RAND_write_file()