Home
last modified time | relevance | path

Searched refs:informat (Results 1 – 18 of 18) sorted by relevance

/freebsd-12.1/crypto/openssl/apps/
H A Dec.c83 int informat = FORMAT_PEM, outformat = FORMAT_PEM, text = 0, noout = 0;
100 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat))
174 if (informat != FORMAT_ENGINE) {
175 in = bio_open_default(infile, 'r', informat);
181 if (informat == FORMAT_ASN1) {
186 } else if (informat == FORMAT_ENGINE) {
189 pkey = load_pubkey(infile, informat, 1, passin, e, "Public Key");
191 pkey = load_key(infile, informat, 1, passin, e, "Private Key");
H A Dpkcs8.c77 int informat = FORMAT_PEM, outformat = FORMAT_PEM, topk8 = 0, pbe_nid = -1; in pkcs8_main() local
96 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in pkcs8_main()
197 in = bio_open_default(infile, 'r', informat); in pkcs8_main()
205 pkey = load_key(infile, informat, 1, passin, e, "key"); in pkcs8_main()
281 if (informat == FORMAT_PEM) { in pkcs8_main()
283 } else if (informat == FORMAT_ASN1) { in pkcs8_main()
290 if (informat == FORMAT_PEM) { in pkcs8_main()
292 } else if (informat == FORMAT_ASN1) { in pkcs8_main()
H A Drsa.c76 int informat = FORMAT_PEM, outformat = FORMAT_PEM, text = 0, check = 0;
96 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat))
176 if (informat == FORMAT_PEM)
178 else if (informat == FORMAT_ASN1)
181 tmpformat = informat;
186 pkey = load_key(infile, informat, 1, passin, e, "Private Key");
H A Dcrl2p7.c51 int i = 0, informat = FORMAT_PEM, outformat = FORMAT_PEM, ret = 1, nocrl = in crl2pkcs7_main() local
68 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in crl2pkcs7_main()
98 in = bio_open_default(infile, 'r', informat); in crl2pkcs7_main()
102 if (informat == FORMAT_ASN1) in crl2pkcs7_main()
104 else if (informat == FORMAT_PEM) in crl2pkcs7_main()
H A Dpkcs7.c51 int informat = FORMAT_PEM, outformat = FORMAT_PEM; in pkcs7_main() local
69 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in pkcs7_main()
103 in = bio_open_default(infile, 'r', informat); in pkcs7_main()
107 if (informat == FORMAT_ASN1) in pkcs7_main()
H A Dpkey.c59 int informat = FORMAT_PEM, outformat = FORMAT_PEM; in pkey_main() local
76 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat)) in pkey_main()
145 pkey = load_pubkey(infile, informat, 1, passin, e, "Public Key"); in pkey_main()
147 pkey = load_key(infile, informat, 1, passin, e, "key"); in pkey_main()
H A Ddhparam.c79 int informat = FORMAT_PEM, outformat = FORMAT_PEM, check = 0, noout = 0;
95 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat))
216 in = bio_open_default(infile, 'r', informat);
224 if (informat == FORMAT_ASN1)
244 if (informat == FORMAT_ASN1) {
H A Ddsa.c72 int informat = FORMAT_PEM, outformat = FORMAT_PEM, text = 0, noout = 0;
93 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat))
161 pkey = load_pubkey(infile, informat, 1, passin, e, "Public Key");
163 pkey = load_key(infile, informat, 1, passin, e, "Private Key");
H A Ddsaparam.c60 int informat = FORMAT_PEM, outformat = FORMAT_PEM, noout = 0, C = 0;
78 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat))
123 in = bio_open_default(infile, 'r', informat);
156 } else if (informat == FORMAT_ASN1) {
H A Dasn1pars.c67 int indent = 0, noout = 0, dump = 0, strictpem = 0, informat = FORMAT_PEM; in asn1parse_main() local
94 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in asn1parse_main()
135 informat = FORMAT_PEM; in asn1parse_main()
167 if ((in = bio_open_default(infile, 'r', informat)) == NULL) in asn1parse_main()
195 if (informat == FORMAT_PEM) { in asn1parse_main()
H A Dsess_id.c49 int informat = FORMAT_PEM, outformat = FORMAT_PEM; in sess_id_main() local
66 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in sess_id_main()
98 x = load_sess_id(infile, informat); in sess_id_main()
H A Dsmime.c131 int informat = FORMAT_SMIME, outformat = FORMAT_SMIME, keyform = in smime_main() local
153 if (!opt_format(opt_arg(), OPT_FMT_PDS, &informat)) in smime_main()
384 informat = FORMAT_BINARY; in smime_main()
442 in = bio_open_default(infile, 'r', informat); in smime_main()
447 if (informat == FORMAT_SMIME) { in smime_main()
449 } else if (informat == FORMAT_PEM) { in smime_main()
451 } else if (informat == FORMAT_ASN1) { in smime_main()
H A Dcrl.c77 int informat = FORMAT_PEM, outformat = FORMAT_PEM, keyformat = FORMAT_PEM; in crl_main() local
98 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in crl_main()
183 x = load_crl(infile, informat); in crl_main()
227 newcrl = load_crl(crldiff, informat); in crl_main()
H A Decparam.c90 int informat = FORMAT_PEM, outformat = FORMAT_PEM, noout = 0, C = 0;
108 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat))
171 in = bio_open_default(infile, 'r', informat);
243 } else if (informat == FORMAT_ASN1) {
H A Denc.c108 int base64 = 0, informat = FORMAT_BINARY, outformat = FORMAT_BINARY; in enc_main() local
315 informat = FORMAT_BASE64; in enc_main()
322 in = dup_bio_in(informat); in enc_main()
324 in = bio_open_default(infile, 'r', informat); in enc_main()
H A Dcms.c211 int informat = FORMAT_SMIME, outformat = FORMAT_SMIME; in cms_main() local
237 if (!opt_format(opt_arg(), OPT_FMT_PDS, &informat)) in cms_main()
659 informat = FORMAT_BINARY; in cms_main()
729 in = bio_open_default(infile, 'r', informat); in cms_main()
734 if (informat == FORMAT_SMIME) { in cms_main()
736 } else if (informat == FORMAT_PEM) { in cms_main()
738 } else if (informat == FORMAT_ASN1) { in cms_main()
H A Dx509.c175 int informat = FORMAT_PEM, outformat = FORMAT_PEM, keyformat = FORMAT_PEM; in x509_main() local
209 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat)) in x509_main()
523 in = bio_open_default(infile, 'r', informat); in x509_main()
584 x = load_cert(infile, informat, "Certificate"); in x509_main()
H A Dreq.c237 int informat = FORMAT_PEM, outformat = FORMAT_PEM, keyform = FORMAT_PEM; in req_main() local
260 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in req_main()
684 in = bio_open_default(infile, 'r', informat); in req_main()
688 if (informat == FORMAT_ASN1) in req_main()