| /freebsd/crypto/openssl/apps/ |
| H A D | pkcs8.c | 126 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in pkcs8_main() 130 infile = opt_arg(); in pkcs8_main() 133 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in pkcs8_main() 137 outfile = opt_arg(); in pkcs8_main() 160 ciphername = opt_arg(); in pkcs8_main() 163 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main() 166 "%s: Unknown PBE algorithm %s\n", prog, opt_arg()); in pkcs8_main() 171 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main() 174 "%s: Unknown PRF algorithm %s\n", prog, opt_arg()); in pkcs8_main() 184 passinarg = opt_arg(); in pkcs8_main() [all …]
|
| H A D | spkac.c | 99 infile = opt_arg(); in spkac_main() 102 outfile = opt_arg(); in spkac_main() 114 passinarg = opt_arg(); in spkac_main() 117 keyfile = opt_arg(); in spkac_main() 120 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyformat)) in spkac_main() 124 challenge = opt_arg(); in spkac_main() 127 spkac = opt_arg(); in spkac_main() 130 spksect = opt_arg(); in spkac_main() 133 digest = opt_arg(); in spkac_main() 136 e = setup_engine(opt_arg(), 0); in spkac_main()
|
| H A D | ocsp.c | 318 outfile = opt_arg(); in ocsp_main() 322 req_timeout = atoi(opt_arg()); in ocsp_main() 330 if (!OSSL_HTTP_parse_url(opt_arg(), &use_ssl, NULL /* userinfo */, in ocsp_main() 341 host = opt_arg(); in ocsp_main() 344 port = opt_arg(); in ocsp_main() 347 path = opt_arg(); in ocsp_main() 351 opt_proxy = opt_arg(); in ocsp_main() 354 opt_no_proxy = opt_arg(); in ocsp_main() 412 reqin = opt_arg(); in ocsp_main() 415 respin = opt_arg(); in ocsp_main() [all …]
|
| H A D | x509.c | 385 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in x509_main() 389 infile = opt_arg(); in x509_main() 392 if (!opt_format(opt_arg(), OPT_FMT_ANY, &outformat)) in x509_main() 396 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyformat)) in x509_main() 400 if (!opt_format(opt_arg(), OPT_FMT_ANY, &CAformat)) in x509_main() 404 if (!opt_format(opt_arg(), OPT_FMT_ANY, &CAkeyformat)) in x509_main() 408 outfile = opt_arg(); in x509_main() 415 if (!set_dateopt(&dateopt, opt_arg())) { in x509_main() 417 "Invalid date format: %s\n", opt_arg()); in x509_main() 422 if (!set_ext_copy(&ext_copy, opt_arg())) { in x509_main() [all …]
|
| H A D | cms.c | 401 if (!opt_format(opt_arg(), OPT_FMT_PDS, &informat)) in cms_main() 405 if (!opt_format(opt_arg(), OPT_FMT_PDS, &outformat)) in cms_main() 409 outfile = opt_arg(); in cms_main() 432 rctfile = opt_arg(); in cms_main() 441 digesthex = opt_arg(); in cms_main() 539 if (!opt_format(opt_arg(), in cms_main() 544 certfile = opt_arg(); in cms_main() 547 CAfile = opt_arg(); in cms_main() 550 CApath = opt_arg(); in cms_main() 553 CAstore = opt_arg(); in cms_main() [all …]
|
| H A D | smime.c | 239 if (!opt_format(opt_arg(), OPT_FMT_PDS, &informat)) in smime_main() 243 infile = opt_arg(); in smime_main() 246 if (!opt_format(opt_arg(), OPT_FMT_PDS, &outformat)) in smime_main() 250 outfile = opt_arg(); in smime_main() 326 conf = app_load_config_modules(opt_arg()); in smime_main() 331 e = setup_engine(opt_arg(), 0); in smime_main() 334 passinarg = opt_arg(); in smime_main() 337 to = opt_arg(); in smime_main() 340 from = opt_arg(); in smime_main() 343 subject = opt_arg(); in smime_main() [all …]
|
| H A D | crl.c | 138 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in crl_main() 142 infile = opt_arg(); in crl_main() 145 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in crl_main() 149 outfile = opt_arg(); in crl_main() 152 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyformat)) in crl_main() 156 keyfile = opt_arg(); in crl_main() 159 crldiff = opt_arg(); in crl_main() 162 CApath = opt_arg(); in crl_main() 166 CAfile = opt_arg(); in crl_main() 170 CAstore = opt_arg(); in crl_main() [all …]
|
| H A D | asn1parse.c | 110 if (!opt_format(opt_arg(), OPT_FMT_ASN1, &informat)) in asn1parse_main() 114 infile = opt_arg(); in asn1parse_main() 117 derfile = opt_arg(); in asn1parse_main() 126 oidfile = opt_arg(); in asn1parse_main() 129 offset = strtol(opt_arg(), NULL, 0); in asn1parse_main() 132 length = strtol(opt_arg(), NULL, 0); in asn1parse_main() 138 dump = strtol(opt_arg(), NULL, 0); in asn1parse_main() 141 if (sk_OPENSSL_STRING_push(osk, opt_arg()) <= 0) in asn1parse_main() 145 genstr = opt_arg(); in asn1parse_main() 148 genconf = opt_arg(); in asn1parse_main() [all …]
|
| H A D | ec.c | 111 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat)) in ec_main() 115 infile = opt_arg(); in ec_main() 118 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in ec_main() 122 outfile = opt_arg(); in ec_main() 140 passinarg = opt_arg(); in ec_main() 143 passoutarg = opt_arg(); in ec_main() 146 e = setup_engine(opt_arg(), 0); in ec_main() 152 point_format = opt_arg(); in ec_main() 157 asn1_encoding = opt_arg(); in ec_main()
|
| H A D | pkey.c | 114 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat)) in pkey_main() 118 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in pkey_main() 122 passinarg = opt_arg(); in pkey_main() 125 passoutarg = opt_arg(); in pkey_main() 128 e = setup_engine(opt_arg(), 0); in pkey_main() 131 infile = opt_arg(); in pkey_main() 134 outfile = opt_arg(); in pkey_main() 167 point_format = opt_arg(); in pkey_main() 176 asn1_encoding = opt_arg(); in pkey_main()
|
| H A D | req.c | 333 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in req_main() 337 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in req_main() 341 e = setup_engine(opt_arg(), 0); in req_main() 345 gen_eng = setup_engine(opt_arg(), 0); in req_main() 353 keyfile = opt_arg(); in req_main() 362 template = opt_arg(); in req_main() 365 section = opt_arg(); in req_main() 368 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyform)) in req_main() 372 infile = opt_arg(); in req_main() 375 outfile = opt_arg(); in req_main() [all …]
|
| H A D | s_server.c | 1284 if (BIO_parse_hostserv(opt_arg(), NULL, &port, BIO_PARSE_PRIO_SERV) < 1) { in s_server_main() 1301 if (BIO_parse_hostserv(opt_arg(), &host, &port, BIO_PARSE_PRIO_SERV) < 1) { in s_server_main() 1312 host = OPENSSL_strdup(opt_arg()); in s_server_main() 1323 naccept = atol(opt_arg()); in s_server_main() 1327 verify_args.depth = atoi(opt_arg()); in s_server_main() 1333 verify_args.depth = atoi(opt_arg()); in s_server_main() 1340 context = (unsigned char *)opt_arg(); in s_server_main() 1343 s_cert_file = opt_arg(); in s_server_main() 1346 if (!set_nameopt(opt_arg())) in s_server_main() 1350 crl_file = opt_arg(); in s_server_main() [all …]
|
| H A D | s_time.c | 166 host = opt_arg(); in s_time_main() 180 certfile = opt_arg(); in s_time_main() 183 if (!set_nameopt(opt_arg())) in s_time_main() 187 keyfile = opt_arg(); in s_time_main() 190 CApath = opt_arg(); in s_time_main() 193 CAfile = opt_arg(); in s_time_main() 202 CAstore = opt_arg(); in s_time_main() 208 cipher = opt_arg(); in s_time_main() 211 ciphersuites = opt_arg(); in s_time_main() 220 www_path = opt_arg(); in s_time_main()
|
| H A D | s_client.c | 1132 freeandcopy(&host, opt_arg()); in s_client_main() 1136 freeandcopy(&port, opt_arg()); in s_client_main() 1140 freeandcopy(&connectstr, opt_arg()); in s_client_main() 1143 freeandcopy(&bindstr, opt_arg()); in s_client_main() 1146 proxystr = opt_arg(); in s_client_main() 1149 proxyuser = opt_arg(); in s_client_main() 1152 proxypassarg = opt_arg(); in s_client_main() 1158 freeandcopy(&host, opt_arg()); in s_client_main() 1164 protohost = opt_arg(); in s_client_main() 1168 verify_args.depth = atoi(opt_arg()); in s_client_main() [all …]
|
| H A D | ecparam.c | 136 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in ecparam_main() 140 infile = opt_arg(); in ecparam_main() 143 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in ecparam_main() 147 outfile = opt_arg(); in ecparam_main() 168 curve_name = opt_arg(); in ecparam_main() 171 point_format = opt_arg(); in ecparam_main() 176 asn1_encoding = opt_arg(); in ecparam_main() 192 e = setup_engine(opt_arg(), 0); in ecparam_main()
|
| H A D | verify.c | 140 CApath = opt_arg(); in verify_main() 143 CAfile = opt_arg(); in verify_main() 146 CAstore = opt_arg(); in verify_main() 159 if (!load_certs(opt_arg(), 0, &untrusted, NULL, in verify_main() 168 if (!load_certs(opt_arg(), 0, &trusted, NULL, "trusted certificates")) in verify_main() 173 if (!load_crls(opt_arg(), &crls, NULL, "other CRLs")) in verify_main() 180 if ((e = setup_engine(opt_arg(), 0)) == NULL) { in verify_main() 189 if (!set_nameopt(opt_arg())) in verify_main() 195 if (!vfyopts || !sk_OPENSSL_STRING_push(vfyopts, opt_arg())) in verify_main()
|
| H A D | enc.c | 231 infile = opt_arg(); in enc_main() 234 outfile = opt_arg(); in enc_main() 237 passarg = opt_arg(); in enc_main() 240 e = setup_engine(opt_arg(), 0); in enc_main() 278 p = opt_arg(); in enc_main() 283 if (!opt_long(opt_arg(), &n) in enc_main() 293 str = opt_arg(); in enc_main() 296 in = bio_open_default(opt_arg(), 'r', FORMAT_TEXT); in enc_main() 304 "%s Can't read key from %s\n", prog, opt_arg()); in enc_main() 316 hkey = opt_arg(); in enc_main() [all …]
|
| H A D | kdf.c | 104 dkm_len = (size_t)atoi(opt_arg()); in kdf_main() 107 outfile = opt_arg(); in kdf_main() 112 if (opts == NULL || !sk_OPENSSL_STRING_push(opts, opt_arg())) in kdf_main() 117 cipher = alloc_kdf_algorithm_name(&opts, "cipher", opt_arg()); in kdf_main() 123 digest = alloc_kdf_algorithm_name(&opts, "digest", opt_arg()); in kdf_main() 129 mac = alloc_kdf_algorithm_name(&opts, "mac", opt_arg()); in kdf_main()
|
| H A D | dsa.c | 122 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat)) in dsa_main() 126 infile = opt_arg(); in dsa_main() 129 if (!opt_format(opt_arg(), OPT_FMT_ANY, &outformat)) in dsa_main() 133 outfile = opt_arg(); in dsa_main() 136 e = setup_engine(opt_arg(), 0); in dsa_main() 139 passinarg = opt_arg(); in dsa_main() 142 passoutarg = opt_arg(); in dsa_main()
|
| H A D | genpkey.c | 159 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in genpkey_main() 163 outfile = opt_arg(); in genpkey_main() 166 outpubkeyfile = opt_arg(); in genpkey_main() 169 passarg = opt_arg(); in genpkey_main() 172 e = setup_engine(opt_arg(), 0); in genpkey_main() 177 paramfile = opt_arg(); in genpkey_main() 180 algname = opt_arg(); in genpkey_main() 183 if (!sk_OPENSSL_STRING_push(keyopt, opt_arg())) in genpkey_main() 202 conf = app_load_config_modules(opt_arg()); in genpkey_main()
|
| H A D | pkeyutl.c | 192 infile = opt_arg(); in pkeyutl_main() 195 outfile = opt_arg(); in pkeyutl_main() 198 secoutfile = opt_arg(); in pkeyutl_main() 201 sigfile = opt_arg(); in pkeyutl_main() 207 inkey = opt_arg(); in pkeyutl_main() 210 peerkey = opt_arg(); in pkeyutl_main() 213 passinarg = opt_arg(); in pkeyutl_main() 216 if (!opt_format(opt_arg(), OPT_FMT_ANY, &peerform)) in pkeyutl_main() 220 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyform)) in pkeyutl_main() 228 conf = app_load_config_modules(opt_arg()); in pkeyutl_main() [all …]
|
| H A D | sess_id.c | 77 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in sess_id_main() 81 if (!opt_format(opt_arg(), OPT_FMT_PEMDER | OPT_FMT_NSS, in sess_id_main() 86 infile = opt_arg(); in sess_id_main() 89 outfile = opt_arg(); in sess_id_main() 101 context = opt_arg(); in sess_id_main()
|
| H A D | pkcs12.c | 269 jdktrust = opt_arg(); in pkcs12_main() 326 macalg = opt_arg(); in pkcs12_main() 332 pbmac1_pbkdf2_md = opt_arg(); in pkcs12_main() 335 if (!set_pbe(&cert_pbe, opt_arg())) in pkcs12_main() 339 if (!set_pbe(&key_pbe, opt_arg())) in pkcs12_main() 347 keyname = opt_arg(); in pkcs12_main() 350 certfile = opt_arg(); in pkcs12_main() 353 untrusted = opt_arg(); in pkcs12_main() 356 passcertsarg = opt_arg(); in pkcs12_main() 359 name = opt_arg(); in pkcs12_main() [all …]
|
| /freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/ |
| H A D | bsnmptools.c | 482 parse_authentication(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_authentication() 492 assert(opt_arg != NULL); in parse_authentication() 494 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_authentication() 537 parse_privacy(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_privacy() 547 assert(opt_arg != NULL); in parse_privacy() 549 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_privacy() 590 parse_context(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_context() 600 assert(opt_arg != NULL); in parse_context() 602 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_context() 632 parse_user_security(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_user_security() 481 parse_authentication(struct snmp_toolinfo * snmptoolctx __unused,char * opt_arg) parse_authentication() argument 536 parse_privacy(struct snmp_toolinfo * snmptoolctx __unused,char * opt_arg) parse_privacy() argument 589 parse_context(struct snmp_toolinfo * snmptoolctx __unused,char * opt_arg) parse_context() argument 631 parse_user_security(struct snmp_toolinfo * snmptoolctx __unused,char * opt_arg) parse_user_security() argument 703 parse_file(struct snmp_toolinfo * snmptoolctx,char * opt_arg) parse_file() argument 714 parse_include(struct snmp_toolinfo * snmptoolctx,char * opt_arg) parse_include() argument 786 parse_server(char * opt_arg) parse_server() argument 797 parse_timeout(char * opt_arg) parse_timeout() argument 819 parse_retry(char * opt_arg) parse_retry() argument 842 parse_version(char * opt_arg) parse_version() argument 880 parse_local_path(char * opt_arg) parse_local_path() argument 893 parse_buflen(char * opt_arg) parse_buflen() argument 952 parse_output(struct snmp_toolinfo * snmptoolctx,char * opt_arg) parse_output() argument [all...] |
| /freebsd/crypto/openssl/apps/lib/ |
| H A D | opt.c | 738 otmp = OBJ_txt2obj(opt_arg(), 0); in opt_verify() 740 opt_printf_stderr("%s: Invalid Policy %s\n", prog, opt_arg()); in opt_verify() 746 prog, opt_arg()); in opt_verify() 752 i = X509_PURPOSE_get_by_sname(opt_arg()); in opt_verify() 754 opt_printf_stderr("%s: Invalid purpose %s\n", prog, opt_arg()); in opt_verify() 766 prog, opt_arg()); in opt_verify() 771 vtmp = X509_VERIFY_PARAM_lookup(opt_arg()); in opt_verify() 774 prog, opt_arg()); in opt_verify() 780 i = atoi(opt_arg()); in opt_verify() 785 i = atoi(opt_arg()); in opt_verify() [all …]
|