| /NextBSD/crypto/openssl/apps/ |
| HD | pkcs8.c | 94 if (bio_err == NULL) in MAIN() 95 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN() 97 if (!load_config(bio_err, NULL)) in MAIN() 112 BIO_printf(bio_err, "Unknown cipher %s\n", *args); in MAIN() 122 BIO_printf(bio_err, "Unknown PBE algorithm %s\n", *args); in MAIN() 132 BIO_printf(bio_err, "Unknown PRF algorithm %s\n", *args); in MAIN() 196 BIO_printf(bio_err, "Usage pkcs8 [options]\n"); in MAIN() 197 BIO_printf(bio_err, "where options are\n"); in MAIN() 198 BIO_printf(bio_err, "-in file input file\n"); in MAIN() 199 BIO_printf(bio_err, "-inform X input format (DER or PEM)\n"); in MAIN() [all …]
|
| HD | smime.c | 128 if (bio_err == NULL) { in MAIN() 129 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 130 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 133 if (!load_config(bio_err, NULL)) in MAIN() 269 BIO_printf(bio_err, "Unknown digest %s\n", *args); in MAIN() 278 BIO_puts(bio_err, "Illegal -inkey without -signer\n"); in MAIN() 326 } else if (args_verify(&args, NULL, &badarg, bio_err, &vpm)) in MAIN() 334 BIO_puts(bio_err, "Multiple signers or keys not allowed\n"); in MAIN() 341 BIO_puts(bio_err, "Illegal -inkey without -signer\n"); in MAIN() 355 BIO_printf(bio_err, "No signer certificate specified\n"); in MAIN() [all …]
|
| HD | dgst.c | 137 BIO_printf(bio_err, "out of memory\n"); in MAIN() 140 if (bio_err == NULL) in MAIN() 141 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 142 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 144 if (!load_config(bio_err, NULL)) in MAIN() 202 e = setup_engine(bio_err, engine, 0); in MAIN() 247 BIO_printf(bio_err, in MAIN() 253 BIO_printf(bio_err, "unknown option '%s'\n", *argv); in MAIN() 254 BIO_printf(bio_err, "options are\n"); in MAIN() 255 BIO_printf(bio_err, in MAIN() [all …]
|
| HD | dhparam.c | 169 if (bio_err == NULL) in MAIN() 170 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 171 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 173 if (!load_config(bio_err, NULL)) in MAIN() 237 BIO_printf(bio_err, "%s [options] [numbits]\n", prog); in MAIN() 238 BIO_printf(bio_err, "where options are\n"); in MAIN() 239 BIO_printf(bio_err, " -inform arg input format - one of DER PEM\n"); in MAIN() 240 BIO_printf(bio_err, in MAIN() 242 BIO_printf(bio_err, " -in arg input file\n"); in MAIN() 243 BIO_printf(bio_err, " -out arg output file\n"); in MAIN() [all …]
|
| HD | rsautl.c | 112 if (!bio_err) in MAIN() 113 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN() 115 if (!load_config(bio_err, NULL)) in MAIN() 195 BIO_printf(bio_err, "A private key is needed for this operation\n"); in MAIN() 199 e = setup_engine(bio_err, engine, 0); in MAIN() 201 if (!app_passwd(bio_err, passargin, NULL, &passin, NULL)) { in MAIN() 202 BIO_printf(bio_err, "Error getting password\n"); in MAIN() 207 app_RAND_load_file(NULL, bio_err, 0); in MAIN() 211 pkey = load_key(bio_err, keyfile, keyform, 0, in MAIN() 216 pkey = load_pubkey(bio_err, keyfile, keyform, 0, in MAIN() [all …]
|
| HD | ec.c | 107 if (bio_err == NULL) in MAIN() 108 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 109 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 111 if (!load_config(bio_err, NULL)) in MAIN() 187 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN() 197 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN() 198 BIO_printf(bio_err, "where options are\n"); in MAIN() 199 BIO_printf(bio_err, " -inform arg input format - " in MAIN() 201 BIO_printf(bio_err, " -outform arg output format - " in MAIN() 203 BIO_printf(bio_err, " -in arg input file\n"); in MAIN() [all …]
|
| HD | dsa.c | 120 if (bio_err == NULL) in MAIN() 121 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 122 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 124 if (!load_config(bio_err, NULL)) in MAIN() 188 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN() 198 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN() 199 BIO_printf(bio_err, "where options are\n"); in MAIN() 200 BIO_printf(bio_err, " -inform arg input format - DER or PEM\n"); in MAIN() 201 BIO_printf(bio_err, " -outform arg output format - DER or PEM\n"); in MAIN() 202 BIO_printf(bio_err, " -in arg input file\n"); in MAIN() [all …]
|
| HD | gendsa.c | 94 if (bio_err == NULL) in MAIN() 95 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 96 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 98 if (!load_config(bio_err, NULL)) in MAIN() 168 BIO_printf(bio_err, "usage: gendsa [args] dsaparam-file\n"); in MAIN() 169 BIO_printf(bio_err, " -out file - output the key to 'file'\n"); in MAIN() 171 BIO_printf(bio_err, in MAIN() 173 BIO_printf(bio_err, in MAIN() 177 BIO_printf(bio_err, in MAIN() 181 BIO_printf(bio_err, " -seed\n"); in MAIN() [all …]
|
| HD | pkcs12.c | 138 if (bio_err == NULL) in MAIN() 139 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN() 141 if (!load_config(bio_err, NULL)) in MAIN() 226 if (!set_pbe(bio_err, &cert_pbe, *++args)) in MAIN() 229 if (!set_pbe(bio_err, &key_pbe, *++args)) in MAIN() 331 BIO_printf(bio_err, "Usage: pkcs12 [options]\n"); in MAIN() 332 BIO_printf(bio_err, "where options are\n"); in MAIN() 333 BIO_printf(bio_err, "-export output PKCS12 file\n"); in MAIN() 334 BIO_printf(bio_err, "-chain add certificate chain\n"); in MAIN() 335 BIO_printf(bio_err, "-inkey file private key if not infile\n"); in MAIN() [all …]
|
| HD | rsa.c | 123 if (bio_err == NULL) in MAIN() 124 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 125 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 127 if (!load_config(bio_err, NULL)) in MAIN() 196 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN() 206 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN() 207 BIO_printf(bio_err, "where options are\n"); in MAIN() 208 BIO_printf(bio_err, in MAIN() 210 BIO_printf(bio_err, in MAIN() 212 BIO_printf(bio_err, " -in arg input file\n"); in MAIN() [all …]
|
| HD | spkac.c | 103 if (!bio_err) in MAIN() 104 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN() 106 if (!load_config(bio_err, NULL)) in MAIN() 163 BIO_printf(bio_err, "%s [options]\n", prog); in MAIN() 164 BIO_printf(bio_err, "where options are\n"); in MAIN() 165 BIO_printf(bio_err, " -in arg input file\n"); in MAIN() 166 BIO_printf(bio_err, " -out arg output file\n"); in MAIN() 167 BIO_printf(bio_err, in MAIN() 169 BIO_printf(bio_err, in MAIN() 171 BIO_printf(bio_err, " -challenge arg challenge string\n"); in MAIN() [all …]
|
| HD | genpkey.c | 94 if (bio_err == NULL) in MAIN() 95 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN() 97 if (!load_config(bio_err, NULL)) in MAIN() 121 e = setup_engine(bio_err, *(++args), 0); in MAIN() 130 if (!init_keygen_file(bio_err, &ctx, *args, e)) in MAIN() 141 if (!init_gen_str(bio_err, &ctx, *(++args), e, do_param)) in MAIN() 147 BIO_puts(bio_err, "No keytype specified\n"); in MAIN() 150 BIO_puts(bio_err, "parameter setting error\n"); in MAIN() 151 ERR_print_errors(bio_err); in MAIN() 163 BIO_printf(bio_err, "Unknown cipher %s\n", *args + 1); in MAIN() [all …]
|
| HD | enc.c | 137 if (bio_err == NULL) in MAIN() 138 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 139 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 141 if (!load_config(bio_err, NULL)) in MAIN() 161 BIO_printf(bio_err, "%s is an unknown cipher\n", pname); in MAIN() 234 BIO_printf(bio_err, "unable to read key from '%s'\n", file); in MAIN() 239 BIO_printf(bio_err, "unable to read key from '%s'\n", file); in MAIN() 249 BIO_printf(bio_err, "zero length password\n"); in MAIN() 277 BIO_printf(bio_err, "unknown option '%s'\n", *argv); in MAIN() 279 BIO_printf(bio_err, "options are\n"); in MAIN() [all …]
|
| HD | pkeyutl.c | 110 if (!bio_err) in MAIN() 111 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN() 113 if (!load_config(bio_err, NULL)) in MAIN() 142 BIO_puts(bio_err, "Error initializing context\n"); in MAIN() 143 ERR_print_errors(bio_err); in MAIN() 150 else if (!setup_peer(bio_err, ctx, peerform, *(++argv))) in MAIN() 173 e = setup_engine(bio_err, *(++argv), 0); in MAIN() 202 BIO_puts(bio_err, "-pkeyopt command before -inkey\n"); in MAIN() 205 BIO_puts(bio_err, "parameter setting error\n"); in MAIN() 206 ERR_print_errors(bio_err); in MAIN() [all …]
|
| HD | cms.c | 164 if (bio_err == NULL) { in MAIN() 165 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 166 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 169 if (!load_config(bio_err, NULL)) in MAIN() 322 BIO_printf(bio_err, "Invalid key %s\n", *args); in MAIN() 333 BIO_printf(bio_err, "Invalid id %s\n", *args); in MAIN() 348 BIO_printf(bio_err, "Invalid OID %s\n", *args); in MAIN() 404 cert = load_cert(bio_err, *++args, FORMAT_PEM, in MAIN() 421 BIO_printf(bio_err, "Unknown digest %s\n", *args); in MAIN() 430 BIO_puts(bio_err, "Illegal -inkey without -signer\n"); in MAIN() [all …]
|
| HD | genrsa.c | 116 BN_GENCB_set(&cb, genrsa_cb, bio_err); in MAIN() 118 if (bio_err == NULL) in MAIN() 119 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 120 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 122 if (!load_config(bio_err, NULL)) in MAIN() 125 BIO_printf(bio_err, "unable to create BIO for output\n"); in MAIN() 195 BIO_printf(bio_err, "usage: genrsa [args] [numbits]\n"); in MAIN() 196 BIO_printf(bio_err, in MAIN() 198 BIO_printf(bio_err, in MAIN() 201 BIO_printf(bio_err, in MAIN() [all …]
|
| HD | dsaparam.c | 133 if (bio_err == NULL) in MAIN() 134 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 135 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 137 if (!load_config(bio_err, NULL)) in MAIN() 199 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN() 209 BIO_printf(bio_err, "%s [options] [bits] <infile >outfile\n", prog); in MAIN() 210 BIO_printf(bio_err, "where options are\n"); in MAIN() 211 BIO_printf(bio_err, " -inform arg input format - DER or PEM\n"); in MAIN() 212 BIO_printf(bio_err, " -outform arg output format - DER or PEM\n"); in MAIN() 213 BIO_printf(bio_err, " -in arg input file\n"); in MAIN() [all …]
|
| HD | req.c | 209 if (bio_err == NULL) in MAIN() 210 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 211 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 241 BIO_printf(bio_err, "Can't find keygen engine %s\n", *argv); in MAIN() 371 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN() 381 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN() 382 BIO_printf(bio_err, "where options are\n"); in MAIN() 383 BIO_printf(bio_err, " -inform arg input format - DER or PEM\n"); in MAIN() 384 BIO_printf(bio_err, " -outform arg output format - DER or PEM\n"); in MAIN() 385 BIO_printf(bio_err, " -in arg input file\n"); in MAIN() [all …]
|
| HD | asn1pars.c | 108 if (bio_err == NULL) in MAIN() 109 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 110 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 112 if (!load_config(bio_err, NULL)) in MAIN() 119 BIO_printf(bio_err, "Memory allocation failure\n"); in MAIN() 174 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN() 184 BIO_printf(bio_err, "%s [options] <infile\n", prog); in MAIN() 185 BIO_printf(bio_err, "where options are\n"); in MAIN() 186 BIO_printf(bio_err, " -inform arg input format - one of DER PEM\n"); in MAIN() 187 BIO_printf(bio_err, " -in arg input file\n"); in MAIN() [all …]
|
| HD | ocsp.c | 178 if (bio_err == NULL) in MAIN() 179 bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); in MAIN() 181 if (!load_config(bio_err, NULL)) in MAIN() 200 BIO_printf(bio_err, "Illegal timeout value %s\n", *args); in MAIN() 216 BIO_printf(bio_err, "Error parsing URL\n"); in MAIN() 329 } else if (args_verify(&args, NULL, &badarg, bio_err, &vpm)) { in MAIN() 338 BIO_printf(bio_err, in MAIN() 349 BIO_printf(bio_err, "Illegal validity age %s\n", *args); in MAIN() 382 issuer = load_cert(bio_err, *args, FORMAT_PEM, in MAIN() 392 cert = load_cert(bio_err, *args, FORMAT_PEM, in MAIN() [all …]
|
| HD | s_client.c | 270 BIO_printf(bio_err, "Could not convert PSK key '%s' to BIGNUM\n", in psk_client_cb() 278 BIO_printf(bio_err, in psk_client_cb() 296 BIO_printf(bio_err, "Error in PSK client callback\n"); in psk_client_cb() 303 BIO_printf(bio_err, "usage: s_client args\n"); in sc_usage() 304 BIO_printf(bio_err, "\n"); in sc_usage() 305 BIO_printf(bio_err, " -host host - use -connect instead\n"); in sc_usage() 306 BIO_printf(bio_err, " -port port - use -connect instead\n"); in sc_usage() 307 BIO_printf(bio_err, in sc_usage() 310 BIO_printf(bio_err, in sc_usage() 312 BIO_printf(bio_err, in sc_usage() [all …]
|
| HD | srp.c | 151 BIO_printf(bio_err, " %d = \"%s\"\n", j, pp[j]); in print_entry() 182 BIO_printf(bio_err, "Memory allocation failure\n"); in update_index() 203 BIO_printf(bio_err, "variable lookup failed for %s::%s\n", name, tag); in lookup_fail() 313 if (bio_err == NULL) in MAIN() 314 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 315 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 369 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN() 380 BIO_printf(bio_err, in MAIN() 385 BIO_printf(bio_err, in MAIN() 390 BIO_printf(bio_err, in MAIN() [all …]
|
| HD | ecparam.c | 141 if (bio_err == NULL) in MAIN() 142 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 143 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 145 if (!load_config(bio_err, NULL)) in MAIN() 224 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN() 234 BIO_printf(bio_err, "%s [options] <infile >outfile\n", prog); in MAIN() 235 BIO_printf(bio_err, "where options are\n"); in MAIN() 236 BIO_printf(bio_err, " -inform arg input format - " in MAIN() 238 BIO_printf(bio_err, " -outform arg output format - " in MAIN() 240 BIO_printf(bio_err, " -in arg input file - " in MAIN() [all …]
|
| HD | ca.c | 342 if (bio_err == NULL) in MAIN() 343 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 344 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 529 BIO_printf(bio_err, "unknown option %s\n", *argv); in MAIN() 541 BIO_printf(bio_err, "%s", *pp2); in MAIN() 561 BIO_printf(bio_err, "Out of memory\n"); in MAIN() 569 BIO_printf(bio_err, "Out of memory\n"); in MAIN() 579 BIO_printf(bio_err, "Using configuration from %s\n", configfile); in MAIN() 583 BIO_printf(bio_err, "error loading the config file '%s'\n", in MAIN() 586 BIO_printf(bio_err, "error on line %ld of config file '%s'\n", in MAIN() [all …]
|
| HD | gendh.c | 106 BN_GENCB_set(&cb, dh_cb, bio_err); in MAIN() 107 if (bio_err == NULL) in MAIN() 108 if ((bio_err = BIO_new(BIO_s_file())) != NULL) in MAIN() 109 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); in MAIN() 111 if (!load_config(bio_err, NULL)) in MAIN() 147 BIO_printf(bio_err, "usage: gendh [args] [numbits]\n"); in MAIN() 148 BIO_printf(bio_err, " -out file - output the key to 'file\n"); in MAIN() 149 BIO_printf(bio_err, " -2 - use 2 as the generator value\n"); in MAIN() 153 BIO_printf(bio_err, " -5 - use 5 as the generator value\n"); in MAIN() 155 BIO_printf(bio_err, in MAIN() [all …]
|