/freebsd/crypto/openssl/apps/ |
H A D | rsa.c | 92 static int try_legacy_encoding(EVP_PKEY *pkey, int outformat, int pubout, in try_legacy_encoding() argument 102 if (outformat == FORMAT_ASN1) { in try_legacy_encoding() 107 } else if (outformat == FORMAT_PEM) { in try_legacy_encoding() 113 } else if (outformat == FORMAT_MSBLOB || outformat == FORMAT_PVK) { in try_legacy_encoding() 132 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, text = 0, check = 0; in rsa_main() local 162 if (!opt_format(opt_arg(), OPT_FMT_ANY, &outformat)) in rsa_main() 265 out = bio_open_owner(outfile, outformat, private); in rsa_main() 320 if (outformat == FORMAT_ASN1) { in rsa_main() 322 } else if (outformat == FORMAT_PEM) { in rsa_main() 324 } else if (outformat == FORMAT_MSBLOB) { in rsa_main() [all …]
|
H A D | dsa.c | 86 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, text = 0, noout = 0; in dsa_main() local 116 if (!opt_format(opt_arg(), OPT_FMT_ANY, &outformat)) in dsa_main() 197 out = bio_open_owner(outfile, outformat, private); in dsa_main() 229 if (outformat == FORMAT_ASN1) { in dsa_main() 231 } else if (outformat == FORMAT_PEM) { in dsa_main() 233 } else if (outformat == FORMAT_MSBLOB) { in dsa_main() 235 } else if (outformat == FORMAT_PVK) { in dsa_main() 246 if (outformat == FORMAT_ASN1 || outformat == FORMAT_PEM) { in dsa_main() 275 if (enc != NULL || outformat == FORMAT_PVK) { in dsa_main() 285 if (outformat == FORMAT_PVK) { in dsa_main()
|
H A D | sess_id.c | 54 int informat = FORMAT_PEM, outformat = FORMAT_PEM; in sess_id_main() local 76 &outformat)) in sess_id_main() 125 out = bio_open_default(outfile, 'w', outformat); in sess_id_main() 142 if (outformat == FORMAT_ASN1) { in sess_id_main() 144 } else if (outformat == FORMAT_PEM) { in sess_id_main() 146 } else if (outformat == FORMAT_NSS) { in sess_id_main() 157 if (outformat == FORMAT_ASN1) { in sess_id_main() 159 } else if (outformat == FORMAT_PEM) { in sess_id_main()
|
H A D | pkcs8.c | 86 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, topk8 = 0, pbe_nid = -1; in pkcs8_main() local 112 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in pkcs8_main() 221 out = bio_open_owner(outfile, outformat, private); in pkcs8_main() 236 if (outformat == FORMAT_PEM) { in pkcs8_main() 238 } else if (outformat == FORMAT_ASN1) { in pkcs8_main() 287 if (outformat == FORMAT_PEM) in pkcs8_main() 289 else if (outformat == FORMAT_ASN1) in pkcs8_main() 355 if (outformat == FORMAT_PEM) { in pkcs8_main() 361 } else if (outformat == FORMAT_ASN1) { in pkcs8_main()
|
H A D | dsaparam.c | 73 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, noout = 0; in dsaparam_main() local 98 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in dsaparam_main() 146 out = bio_open_owner(outfile, outformat, private); in dsaparam_main() 193 if (outformat == FORMAT_ASN1 && genkey) in dsaparam_main() 197 if (outformat == FORMAT_ASN1) in dsaparam_main() 224 if (outformat == FORMAT_ASN1) in dsaparam_main()
|
H A D | pkey.c | 78 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM; in pkey_main() local 103 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in pkey_main() 181 if (traditional && (noout || outformat != FORMAT_PEM)) in pkey_main() 202 if (noout || outformat != FORMAT_PEM) { in pkey_main() 213 out = bio_open_owner(outfile, outformat, private); in pkey_main() 272 if (outformat == FORMAT_PEM) { in pkey_main() 289 } else if (outformat == FORMAT_ASN1) { in pkey_main()
|
H A D | crl2pkcs7.c | 59 int i = 0, informat = FORMAT_PEM, outformat = FORMAT_PEM, ret = 1, nocrl = in crl2pkcs7_main() local 80 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in crl2pkcs7_main() 161 out = bio_open_default(outfile, 'w', outformat); in crl2pkcs7_main() 165 if (outformat == FORMAT_ASN1) in crl2pkcs7_main() 167 else if (outformat == FORMAT_PEM) in crl2pkcs7_main()
|
H A D | ecparam.c | 109 int informat = FORMAT_PEM, outformat = FORMAT_PEM, noout = 0; in ecparam_main() local 134 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in ecparam_main() 198 out = bio_open_owner(outfile, outformat, private); in ecparam_main() 297 if (outformat == FORMAT_ASN1 && genkey) in ecparam_main() 303 outformat == FORMAT_ASN1 ? "DER" : "PEM", NULL, NULL); in ecparam_main() 329 outformat == FORMAT_ASN1 ? "DER" : "PEM", NULL, NULL); in ecparam_main()
|
H A D | pkcs7.c | 59 int informat = FORMAT_PEM, outformat = FORMAT_PEM; in pkcs7_main() local 82 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in pkcs7_main() 139 out = bio_open_default(outfile, 'w', outformat); in pkcs7_main() 202 if (outformat == FORMAT_ASN1) in pkcs7_main()
|
H A D | genpkey.c | 72 int outformat = FORMAT_PEM, text = 0, ret = 1, rv, do_param = 0; in genpkey_main() local 93 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in genpkey_main() 177 out = bio_open_owner(outfile, outformat, private); in genpkey_main() 191 } else if (outformat == FORMAT_PEM) { in genpkey_main() 194 } else if (outformat == FORMAT_ASN1) { in genpkey_main()
|
H A D | ec.c | 76 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, text = 0, noout = 0; in ec_main() local 103 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in ec_main() 189 out = bio_open_owner(outfile, outformat, private); in ec_main() 244 const char *output_type = outformat == FORMAT_ASN1 ? "DER" : "PEM"; in ec_main()
|
H A D | smime.c | 153 int informat = FORMAT_SMIME, outformat = FORMAT_SMIME, keyform = in smime_main() local 183 if (!opt_format(opt_arg(), OPT_FMT_PDS, &outformat)) in smime_main() 431 outformat = FORMAT_BINARY; in smime_main() 530 out = bio_open_default(outfile, 'w', outformat); in smime_main() 557 if (outformat == FORMAT_SMIME) in smime_main() 634 if (outformat == FORMAT_SMIME) { in smime_main() 639 } else if (outformat == FORMAT_PEM) { in smime_main() 641 } else if (outformat == FORMAT_ASN1) { in smime_main()
|
H A D | dhparam.c | 88 int informat = FORMAT_PEM, outformat = FORMAT_PEM, check = 0, noout = 0; in dhparam_main() local 108 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in dhparam_main() 173 out = bio_open_default(outfile, 'w', outformat); in dhparam_main() 334 outformat == FORMAT_ASN1 in dhparam_main()
|
H A D | crl.c | 92 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, keyformat = FORMAT_UNDEF; in crl_main() local 121 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in crl_main() 365 out = bio_open_default(outfile, 'w', outformat); in crl_main() 377 if (outformat == FORMAT_ASN1) in crl_main()
|
H A D | cms.c | 303 int informat = FORMAT_SMIME, outformat = FORMAT_SMIME; in cms_main() local 334 if (!opt_format(opt_arg(), OPT_FMT_PDS, &outformat)) in cms_main() 806 outformat = FORMAT_BINARY; in cms_main() 931 binary_files ? FORMAT_BINARY : outformat); in cms_main() 1046 if (outformat == FORMAT_SMIME) in cms_main() 1213 } else if (outformat == FORMAT_SMIME) { in cms_main() 1224 } else if (outformat == FORMAT_PEM) { in cms_main() 1226 } else if (outformat == FORMAT_ASN1) { in cms_main()
|
H A D | x509.c | 284 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, keyformat = FORMAT_UNDEF; in x509_main() local 325 if (!opt_format(opt_arg(), OPT_FMT_ANY, &outformat)) in x509_main() 773 out = bio_open_default(outfile, 'w', outformat); in x509_main() 874 if (outformat == FORMAT_ASN1) { in x509_main() 1047 if (outformat == FORMAT_ASN1) { in x509_main() 1049 } else if (outformat == FORMAT_PEM) { in x509_main()
|
H A D | enc.c | 132 int base64 = 0, informat = FORMAT_BINARY, outformat = FORMAT_BINARY; in enc_main() local 333 outformat = FORMAT_BASE64; in enc_main() 388 out = bio_open_default(outfile, 'w', outformat); in enc_main()
|
H A D | req.c | 262 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, keyform = FORMAT_UNDEF; in req_main() local 289 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in req_main() 708 out = bio_open_owner(keyout, outformat, newreq); in req_main() 952 outformat); in req_main() 1013 if (outformat == FORMAT_ASN1) in req_main() 1025 if (outformat == FORMAT_ASN1) in req_main()
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | ks_file.c | 36 typedef enum { USE_PEM, USE_DER } outformat; typedef 41 outformat format; 376 const char *residue, hx509_lock lock, outformat format) in file_init_common() 528 outformat format;
|