Lines Matching defs:format
169 const char *key_descrip, int format);
844 X509 *load_cert(BIO *err, const char *file, int format,
850 if (format == FORMAT_HTTP) {
875 if (format == FORMAT_ASN1)
877 else if (format == FORMAT_NETSCAPE) {
892 } else if (format == FORMAT_PEM)
895 else if (format == FORMAT_PKCS12) {
899 BIO_printf(err, "bad input format specified for %s\n", cert_descrip);
912 X509_CRL *load_crl(const char *infile, int format)
917 if (format == FORMAT_HTTP) {
936 if (format == FORMAT_ASN1)
938 else if (format == FORMAT_PEM)
941 BIO_printf(bio_err, "bad input format specified for input crl\n");
955 EVP_PKEY *load_key(BIO *err, const char *file, int format, int maybe_stdin,
965 if (file == NULL && (!maybe_stdin || format == FORMAT_ENGINE)) {
970 if (format == FORMAT_ENGINE) {
1000 if (format == FORMAT_ASN1) {
1002 } else if (format == FORMAT_PEM) {
1008 else if (format == FORMAT_NETSCAPE || format == FORMAT_IISSGC)
1009 pkey = load_netscape_key(err, key, file, key_descrip, format);
1011 else if (format == FORMAT_PKCS12) {
1018 else if (format == FORMAT_MSBLOB)
1020 else if (format == FORMAT_PVK)
1025 BIO_printf(err, "bad input format specified for key file\n");
1038 EVP_PKEY *load_pubkey(BIO *err, const char *file, int format, int maybe_stdin,
1048 if (file == NULL && (!maybe_stdin || format == FORMAT_ENGINE)) {
1053 if (format == FORMAT_ENGINE) {
1078 if (format == FORMAT_ASN1) {
1082 else if (format == FORMAT_ASN1RSA) {
1092 } else if (format == FORMAT_PEMRSA) {
1106 else if (format == FORMAT_PEM) {
1112 else if (format == FORMAT_NETSCAPE || format == FORMAT_IISSGC)
1113 pkey = load_netscape_key(err, key, file, key_descrip, format);
1116 else if (format == FORMAT_MSBLOB)
1120 BIO_printf(err, "bad input format specified for key file\n");
1133 const char *key_descrip, int format)
1160 (format == FORMAT_IISSGC ? 1 : 0));
1173 static int load_certs_crls(BIO *err, const char *file, int format,
1188 if (format != FORMAT_PEM) {
1189 BIO_printf(err, "bad input format specified for %s\n", desc);
1263 STACK_OF(X509) *load_certs(BIO *err, const char *file, int format,
1267 if (!load_certs_crls(err, file, format, pass, e, desc, &certs, NULL))
1272 STACK_OF(X509_CRL) *load_crls(BIO *err, const char *file, int format,
1276 if (!load_certs_crls(err, file, format, pass, e, desc, NULL, &crls))
1744 BIO_printf(bio_err, "error converting serial to ASN.1 format\n");
2127 * subject is expected to be in the format /type0=value0/type1=value1/type2=...
2750 * in a format suitable for passing to SSL_CTX_set_next_protos_advertised.