Lines Matching +defs:file +defs:name
122 int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn)
124 int consider_randfile = (file == NULL);
134 if (file == NULL)
135 file = RAND_file_name(buffer, sizeof buffer);
136 else if (RAND_egd(file) > 0)
139 if it is, we don't write anything back to the file. */
143 if (file == NULL || !RAND_load_file(file, -1))
152 if (consider_randfile) /* explanation does not apply when a file is explicitly named */
154 BIO_printf(bio_e,"Consider setting the RANDFILE environment variable to point at a file that\n");
155 BIO_printf(bio_e,"'random' data can be kept in (the file will be overwritten).\n");
165 long app_RAND_load_files(char *name)
175 for (p=name; ((*p != '\0') && (*p != LIST_SEPARATOR_CHAR)); p++);
178 n=name;
179 name=p+1;
194 int app_RAND_write_file(const char *file, BIO *bio_e)
199 /* If we did not manage to read the seed file,
200 * we should not write a low-entropy seed file back --
205 if (file == NULL)
206 file = RAND_file_name(buffer, sizeof buffer);
207 if (file == NULL || !RAND_write_file(file))