/freebsd/crypto/openssl/apps/ |
H A D | pkcs8.c | 105 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in pkcs8_main() 109 infile = opt_arg(); in pkcs8_main() 112 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in pkcs8_main() 116 outfile = opt_arg(); in pkcs8_main() 139 ciphername = opt_arg(); in pkcs8_main() 142 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main() 145 "%s: Unknown PBE algorithm %s\n", prog, opt_arg()); in pkcs8_main() 150 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main() 153 "%s: Unknown PRF algorithm %s\n", prog, opt_arg()); in pkcs8_main() 163 passinarg = opt_arg(); in pkcs8_main() [all …]
|
H A D | spkac.c | 89 infile = opt_arg(); in spkac_main() 92 outfile = opt_arg(); in spkac_main() 104 passinarg = opt_arg(); in spkac_main() 107 keyfile = opt_arg(); in spkac_main() 110 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyformat)) in spkac_main() 114 challenge = opt_arg(); in spkac_main() 117 spkac = opt_arg(); in spkac_main() 120 spksect = opt_arg(); in spkac_main() 123 digest = opt_arg(); in spkac_main() 126 e = setup_engine(opt_arg(), 0); in spkac_main()
|
H A D | ocsp.c | 277 outfile = opt_arg(); in ocsp_main() 281 req_timeout = atoi(opt_arg()); in ocsp_main() 289 if (!OSSL_HTTP_parse_url(opt_arg(), &use_ssl, NULL /* userinfo */, in ocsp_main() 300 host = opt_arg(); in ocsp_main() 303 port = opt_arg(); in ocsp_main() 306 path = opt_arg(); in ocsp_main() 310 opt_proxy = opt_arg(); in ocsp_main() 313 opt_no_proxy = opt_arg(); in ocsp_main() 371 reqin = opt_arg(); in ocsp_main() 374 respin = opt_arg(); in ocsp_main() [all...] |
H A D | x509.c | 318 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in x509_main() 322 infile = opt_arg(); in x509_main() 325 if (!opt_format(opt_arg(), OPT_FMT_ANY, &outformat)) in x509_main() 329 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyformat)) in x509_main() 333 if (!opt_format(opt_arg(), OPT_FMT_ANY, &CAformat)) in x509_main() 337 if (!opt_format(opt_arg(), OPT_FMT_ANY, &CAkeyformat)) in x509_main() 341 outfile = opt_arg(); in x509_main() 348 if (!set_dateopt(&dateopt, opt_arg())) { in x509_main() 350 "Invalid date format: %s\n", opt_arg()); in x509_main() 355 if (!set_ext_copy(&ext_copy, opt_arg())) { in x509_main() [all …]
|
H A D | cms.c | 330 if (!opt_format(opt_arg(), OPT_FMT_PDS, &informat)) in cms_main() 334 if (!opt_format(opt_arg(), OPT_FMT_PDS, &outformat)) in cms_main() 338 outfile = opt_arg(); in cms_main() 361 rctfile = opt_arg(); in cms_main() 462 if (!opt_format(opt_arg(), in cms_main() 467 certfile = opt_arg(); in cms_main() 470 CAfile = opt_arg(); in cms_main() 473 CApath = opt_arg(); in cms_main() 476 CAstore = opt_arg(); in cms_main() 488 infile = opt_arg(); in cms_main() [all …]
|
H A D | smime.c | 176 if (!opt_format(opt_arg(), OPT_FMT_PDS, &informat)) in smime_main() 180 infile = opt_arg(); in smime_main() 183 if (!opt_format(opt_arg(), OPT_FMT_PDS, &outformat)) in smime_main() 187 outfile = opt_arg(); in smime_main() 257 conf = app_load_config_modules(opt_arg()); in smime_main() 262 e = setup_engine(opt_arg(), 0); in smime_main() 265 passinarg = opt_arg(); in smime_main() 268 to = opt_arg(); in smime_main() 271 from = opt_arg(); in smime_main() 274 subject = opt_arg(); in smime_main() [all …]
|
H A D | crl.c | 114 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in crl_main() 118 infile = opt_arg(); in crl_main() 121 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in crl_main() 125 outfile = opt_arg(); in crl_main() 128 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyformat)) in crl_main() 132 keyfile = opt_arg(); in crl_main() 135 crldiff = opt_arg(); in crl_main() 138 CApath = opt_arg(); in crl_main() 142 CAfile = opt_arg(); in crl_main() 146 CAstore = opt_arg(); in crl_main() [all …]
|
H A D | asn1parse.c | 99 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in asn1parse_main() 103 infile = opt_arg(); in asn1parse_main() 106 derfile = opt_arg(); in asn1parse_main() 115 oidfile = opt_arg(); in asn1parse_main() 118 offset = strtol(opt_arg(), NULL, 0); in asn1parse_main() 121 length = strtol(opt_arg(), NULL, 0); in asn1parse_main() 127 dump = strtol(opt_arg(), NULL, 0); in asn1parse_main() 130 if (sk_OPENSSL_STRING_push(osk, opt_arg()) <= 0) in asn1parse_main() 134 genstr = opt_arg(); in asn1parse_main() 137 genconf = opt_arg(); in asn1parse_main() [all …]
|
H A D | s_client.c | 973 freeandcopy(&host, opt_arg()); in s_client_main() 977 freeandcopy(&port, opt_arg()); in s_client_main() 981 freeandcopy(&connectstr, opt_arg()); in s_client_main() 984 freeandcopy(&bindstr, opt_arg()); in s_client_main() 987 proxystr = opt_arg(); in s_client_main() 990 proxyuser = opt_arg(); in s_client_main() 993 proxypassarg = opt_arg(); in s_client_main() 999 freeandcopy(&host, opt_arg()); in s_client_main() 1005 protohost = opt_arg(); in s_client_main() 1009 verify_args.depth = atoi(opt_arg()); in s_client_main() [all …]
|
H A D | ec.c | 96 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat)) in ec_main() 100 infile = opt_arg(); in ec_main() 103 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in ec_main() 107 outfile = opt_arg(); in ec_main() 125 passinarg = opt_arg(); in ec_main() 128 passoutarg = opt_arg(); in ec_main() 131 e = setup_engine(opt_arg(), 0); in ec_main() 137 point_format = opt_arg(); in ec_main() 142 asn1_encoding = opt_arg(); in ec_main()
|
H A D | pkey.c | 99 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat)) in pkey_main() 103 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in pkey_main() 107 passinarg = opt_arg(); in pkey_main() 110 passoutarg = opt_arg(); in pkey_main() 113 e = setup_engine(opt_arg(), 0); in pkey_main() 116 infile = opt_arg(); in pkey_main() 119 outfile = opt_arg(); in pkey_main() 152 point_format = opt_arg(); in pkey_main() 161 asn1_encoding = opt_arg(); in pkey_main()
|
H A D | s_server.c | 1138 if (BIO_parse_hostserv(opt_arg(), NULL, &port, BIO_PARSE_PRIO_SERV) < 1) { in s_server_main() 1153 if (BIO_parse_hostserv(opt_arg(), &host, &port, BIO_PARSE_PRIO_SERV) < 1) { in s_server_main() 1163 OPENSSL_free(host); host = OPENSSL_strdup(opt_arg()); in s_server_main() 1173 naccept = atol(opt_arg()); in s_server_main() 1177 verify_args.depth = atoi(opt_arg()); in s_server_main() 1185 verify_args.depth = atoi(opt_arg()); in s_server_main() 1192 context = (unsigned char *)opt_arg(); in s_server_main() 1195 s_cert_file = opt_arg(); in s_server_main() 1198 if (!set_nameopt(opt_arg())) in s_server_main() 1202 crl_file = opt_arg(); in s_server_main() [all …]
|
H A D | s_time.c | 148 host = opt_arg(); in s_time_main() 162 certfile = opt_arg(); in s_time_main() 165 if (!set_nameopt(opt_arg())) in s_time_main() 169 keyfile = opt_arg(); in s_time_main() 172 CApath = opt_arg(); in s_time_main() 175 CAfile = opt_arg(); in s_time_main() 184 CAstore = opt_arg(); in s_time_main() 190 cipher = opt_arg(); in s_time_main() 193 ciphersuites = opt_arg(); in s_time_main() 202 www_path = opt_arg(); in s_time_main()
|
H A D | ecparam.c | 127 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in ecparam_main() 131 infile = opt_arg(); in ecparam_main() 134 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in ecparam_main() 138 outfile = opt_arg(); in ecparam_main() 159 curve_name = opt_arg(); in ecparam_main() 162 point_format = opt_arg(); in ecparam_main() 167 asn1_encoding = opt_arg(); in ecparam_main() 183 e = setup_engine(opt_arg(), 0); in ecparam_main()
|
H A D | verify.c | 129 CApath = opt_arg(); in verify_main() 132 CAfile = opt_arg(); in verify_main() 135 CAstore = opt_arg(); in verify_main() 148 if (!load_certs(opt_arg(), 0, &untrusted, NULL, in verify_main() 157 if (!load_certs(opt_arg(), 0, &trusted, NULL, "trusted certificates")) in verify_main() 162 if (!load_crls(opt_arg(), &crls, NULL, "other CRLs")) in verify_main() 169 if ((e = setup_engine(opt_arg(), 0)) == NULL) { in verify_main() 178 if (!set_nameopt(opt_arg())) in verify_main() 184 if (!vfyopts || !sk_OPENSSL_STRING_push(vfyopts, opt_arg())) in verify_main()
|
H A D | req.c | 285 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &informat)) in req_main() 289 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in req_main() 293 e = setup_engine(opt_arg(), 0); in req_main() 297 gen_eng = setup_engine(opt_arg(), 0); in req_main() 305 keyfile = opt_arg(); in req_main() 314 template = opt_arg(); in req_main() 317 section = opt_arg(); in req_main() 320 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyform)) in req_main() 324 infile = opt_arg(); in req_main() 327 outfile = opt_arg(); in req_main() [all...] |
H A D | kdf.c | 99 dkm_len = (size_t)atoi(opt_arg()); in kdf_main() 102 outfile = opt_arg(); in kdf_main() 107 if (opts == NULL || !sk_OPENSSL_STRING_push(opts, opt_arg())) in kdf_main() 112 cipher = alloc_kdf_algorithm_name(&opts, "cipher", opt_arg()); in kdf_main() 118 digest = alloc_kdf_algorithm_name(&opts, "digest", opt_arg()); in kdf_main() 124 mac = alloc_kdf_algorithm_name(&opts, "mac", opt_arg()); in kdf_main()
|
H A D | enc.c | 180 infile = opt_arg(); in enc_main() 183 outfile = opt_arg(); in enc_main() 186 passarg = opt_arg(); in enc_main() 189 e = setup_engine(opt_arg(), 0); in enc_main() 227 p = opt_arg(); in enc_main() 232 if (!opt_long(opt_arg(), &n) in enc_main() 240 str = opt_arg(); in enc_main() 243 in = bio_open_default(opt_arg(), 'r', FORMAT_TEXT); in enc_main() 251 "%s Can't read key from %s\n", prog, opt_arg()); in enc_main() 263 hkey = opt_arg(); in enc_main() [all …]
|
H A D | dsa.c | 109 if (!opt_format(opt_arg(), OPT_FMT_ANY, &informat)) in dsa_main() 113 infile = opt_arg(); in dsa_main() 116 if (!opt_format(opt_arg(), OPT_FMT_ANY, &outformat)) in dsa_main() 120 outfile = opt_arg(); in dsa_main() 123 e = setup_engine(opt_arg(), 0); in dsa_main() 126 passinarg = opt_arg(); in dsa_main() 129 passoutarg = opt_arg(); in dsa_main()
|
H A D | genpkey.c | 93 if (!opt_format(opt_arg(), OPT_FMT_PEMDER, &outformat)) in genpkey_main() 97 outfile = opt_arg(); in genpkey_main() 100 passarg = opt_arg(); in genpkey_main() 103 e = setup_engine(opt_arg(), 0); in genpkey_main() 108 paramfile = opt_arg(); in genpkey_main() 111 algname = opt_arg(); in genpkey_main() 114 if (!sk_OPENSSL_STRING_push(keyopt, opt_arg())) in genpkey_main() 130 conf = app_load_config_modules(opt_arg()); in genpkey_main()
|
H A D | fipsinstall.c | 330 in_fname = opt_arg(); in fipsinstall_main() 333 out_fname = opt_arg(); in fipsinstall_main() 348 self_test_corrupt_desc = opt_arg(); in fipsinstall_main() 351 self_test_corrupt_type = opt_arg(); in fipsinstall_main() 354 prov_name = opt_arg(); in fipsinstall_main() 357 module_fname = opt_arg(); in fipsinstall_main() 360 section_name = opt_arg(); in fipsinstall_main() 363 mac_name = opt_arg(); in fipsinstall_main() 366 parent_config = opt_arg(); in fipsinstall_main() 369 if (!sk_OPENSSL_STRING_push(opts, opt_arg())) in fipsinstall_main() [all …]
|
H A D | pkeyutl.c | 146 infile = opt_arg(); in pkeyutl_main() 149 outfile = opt_arg(); in pkeyutl_main() 152 sigfile = opt_arg(); in pkeyutl_main() 158 inkey = opt_arg(); in pkeyutl_main() 161 peerkey = opt_arg(); in pkeyutl_main() 164 passinarg = opt_arg(); in pkeyutl_main() 167 if (!opt_format(opt_arg(), OPT_FMT_ANY, &peerform)) in pkeyutl_main() 171 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyform)) in pkeyutl_main() 179 conf = app_load_config_modules(opt_arg()); in pkeyutl_main() 188 e = setup_engine(opt_arg(), 0); in pkeyutl_main() [all …]
|
H A D | dgst.c | 152 outfile = opt_arg(); in dgst_main() 155 keyfile = opt_arg(); in dgst_main() 158 passinarg = opt_arg(); in dgst_main() 161 keyfile = opt_arg(); in dgst_main() 165 keyfile = opt_arg(); in dgst_main() 169 sigfile = opt_arg(); in dgst_main() 172 if (!opt_format(opt_arg(), OPT_FMT_ANY, &keyform)) in dgst_main() 176 e = setup_engine(opt_arg(), 0); in dgst_main() 188 xoflen = atoi(opt_arg()); in dgst_main() 197 hmac_key = opt_arg(); in dgst_main() [all …]
|
/freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/ |
H A D | bsnmptools.c | 481 parse_authentication(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_authentication() argument 491 assert(opt_arg != NULL); in parse_authentication() 493 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_authentication() 536 parse_privacy(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_privacy() argument 546 assert(opt_arg != NULL); in parse_privacy() 548 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_privacy() 589 parse_context(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_context() argument 599 assert(opt_arg != NULL); in parse_context() 601 while ((subopt = getsubopt1(&opt_arg, subopts, &val, &option)) != EOF) { in parse_context() 631 parse_user_security(struct snmp_toolinfo *snmptoolctx __unused, char *opt_arg) in parse_user_security() argument [all …]
|
/freebsd/crypto/openssl/apps/lib/ |
H A D | opt.c | 694 otmp = OBJ_txt2obj(opt_arg(), 0); in opt_verify() 696 opt_printf_stderr("%s: Invalid Policy %s\n", prog, opt_arg()); in opt_verify() 702 prog, opt_arg()); in opt_verify() 708 i = X509_PURPOSE_get_by_sname(opt_arg()); in opt_verify() 710 opt_printf_stderr("%s: Invalid purpose %s\n", prog, opt_arg()); in opt_verify() 722 prog, opt_arg()); in opt_verify() 727 vtmp = X509_VERIFY_PARAM_lookup(opt_arg()); in opt_verify() 730 prog, opt_arg()); in opt_verify() 736 i = atoi(opt_arg()); in opt_verify() 741 i = atoi(opt_arg()); in opt_verify() [all …]
|