Lines Matching defs:filename
65 static BIO *bio_open_default_(const char *filename, char mode, int format,
346 CONF *app_load_config_bio(BIO *in, const char *filename)
363 if (filename != NULL)
364 BIO_printf(bio_err, "config file \"%s\"\n", filename);
372 CONF *app_load_config_verbose(const char *filename, int verbose)
375 if (*filename == '\0')
378 BIO_printf(bio_err, "Using configuration from %s\n", filename);
380 return app_load_config_internal(filename, 0);
383 CONF *app_load_config_internal(const char *filename, int quiet)
388 if (filename == NULL || *filename != '\0') {
389 if ((in = bio_open_default_(filename, 'r', FORMAT_TEXT, quiet)) == NULL)
391 conf = app_load_config_bio(in, filename);
394 /* Return empty config if filename is empty string. */
947 BIO_printf(bio_err, "No filename or uri specified for loading");
3023 BIO *bio_open_owner(const char *filename, int format, int private)
3032 if (!private || filename == NULL || strcmp(filename, "-") == 0)
3033 return bio_open_default(filename, 'w', format);
3059 fd = open(filename, mode, 0600, "ctx=bin");
3062 fd = open(filename, mode, 0600);
3068 fp = fopen(filename, modestr('w', format));
3081 opt_getprog(), filename, strerror(errno));
3093 static BIO *bio_open_default_(const char *filename, char mode, int format,
3098 if (filename == NULL || strcmp(filename, "-") == 0) {
3110 ret = BIO_new_file(filename, modestr(mode, format));
3119 filename, modeverb(mode), strerror(errno));
3125 BIO *bio_open_default(const char *filename, char mode, int format)
3127 return bio_open_default_(filename, mode, format, 0);
3130 BIO *bio_open_default_quiet(const char *filename, char mode, int format)
3132 return bio_open_default_(filename, mode, format, 1);