Lines Matching defs:file
7 * this file except in compliance with the License. You can obtain a copy
8 * in the file LICENSE in the source distribution or at
57 static CONF *conf = NULL; /* OpenSSL config file context structure */
269 "Configuration file to use. \"\" = none. Default from env variable OPENSSL_CONF"},
271 "Section(s) in config file to get options from. \"\" = 'default'. Default 'cmp'"},
301 "Name of config file section defining certificate request extensions."},
309 "Name of config file section defining policies certificate request extension"},
319 "PKCS#10 CSR file in PEM or DER format to convert or to use in p10cr"},
425 "Format (PEM or DER) to use when saving a certificate to a file. Default PEM"},
434 "Engines may also be defined in OpenSSL config file engine section."},
467 "Take sequence of CMP requests to send to server from file(s)"},
471 "Save sequence of CMP requests created by the client to file(s)"},
473 "Process sequence of CMP responses provided in file(s), skipping server"},
475 "Save sequence of actually used CMP responses to file(s)"},
650 static int print_to_bio_out(const char *func, const char *file, int line,
653 return OSSL_CMP_print_to_bio(bio_out, func, file, line, level, msg);
656 static int print_to_bio_err(const char *func, const char *file, int line,
659 return OSSL_CMP_print_to_bio(bio_err, func, file, line, level, msg);
706 BIO_printf(bio_err, "error: unable to load %s from file '%s'\n", desc,
737 /* write OSSL_CMP_MSG DER-encoded to the specified file name item */
740 char *file;
747 CMP_err("not enough file names provided for writing PKIMessage");
751 file = *filenames;
752 *filenames = next_item(file);
753 if (OSSL_CMP_MSG_write(file, msg) < 0) {
754 CMP_err1("cannot write PKIMessage to file '%s'", file);
760 /* read DER-encoded OSSL_CMP_MSG from the specified file name item */
763 char *file;
771 CMP_err("not enough file names provided for reading PKIMessage");
775 file = *filenames;
776 *filenames = next_item(file);
778 ret = OSSL_CMP_MSG_read(file, app_get0_libctx(), app_get0_propq());
780 CMP_err1("cannot read PKIMessage from file '%s'", file);
782 CMP_info2("%s %s", desc, file);
1173 * set up verification aspects of OSSL_CMP_CTX w.r.t. opts from config file/CLI.
1249 * set up ssl_ctx for the OSSL_CMP_CTX based on options from config file/CLI.
1280 /* need opt_tls_keypass if opt_tls_cert is encrypted PKCS#12 file */
1291 CMP_err1("unable to use client TLS certificate file '%s'",
1397 * file/CLI while parsing options and checking their consistency.
1459 /* opt_keypass is needed if opt_cert is an encrypted PKCS#12 file */
1516 * based on options from config file/CLI.
1622 const char *file = opt_newkey;
1631 pkey = load_key_pwd(file, format, pass, engine, desc);
1638 pkey = load_pubkey(file, format, 0, pass, engine, desc);
1749 /* opt_keypass needed if opt_oldcert is an encrypted PKCS#12 file */
1840 * set up the client-side OSSL_CMP_CTX based on options from config file/CLI
2041 * If destFile != NULL writes out a stack of certs to the given file.
2056 CMP_info3("received %d %s certificate(s), saving to file '%s'",
2063 CMP_err1("could not open file '%s' for writing", destFile);
2070 CMP_err1("cannot write certificate to file '%s'", destFile);
2176 * of openssl.cnf. Defaults are taken from the config file, they can be
2189 * would not make sense within the config file.
2276 CMP_err2("for option '%s' in config file section '%s'",
2827 /* read default values for options from config file */
2831 CMP_info2("using section(s) '%s' of OpenSSL configuration file '%s'",
2839 CMP_info2("no [%s] section found in config file '%s';"
2846 CMP_err2("no [%s] section found in config file '%s'",