Home | History | Annotate | Download | only in apps

Lines Matching full:bio_err

134     if (bio_err == NULL ) bio_err = BIO_new_fp (stderr, BIO_NOCLOSE);
136 if (!load_config(bio_err, NULL))
190 if (!set_pbe(bio_err, &cert_pbe, *++args))
193 if (!set_pbe(bio_err, &key_pbe, *++args))
278 BIO_printf (bio_err, "Usage: pkcs12 [options]\n");
279 BIO_printf (bio_err, "where options are\n");
280 BIO_printf (bio_err, "-export output PKCS12 file\n");
281 BIO_printf (bio_err, "-chain add certificate chain\n");
282 BIO_printf (bio_err, "-inkey file private key if not infile\n");
283 BIO_printf (bio_err, "-certfile f add all certs in f\n");
284 BIO_printf (bio_err, "-CApath arg - PEM format directory of CA's\n");
285 BIO_printf (bio_err, "-CAfile arg - PEM format file of CA's\n");
286 BIO_printf (bio_err, "-name \"name\" use name as friendly name\n");
287 BIO_printf (bio_err, "-caname \"nm\" use nm as CA friendly name (can be used more than once).\n");
288 BIO_printf (bio_err, "-in infile input filename\n");
289 BIO_printf (bio_err, "-out outfile output filename\n");
290 BIO_printf (bio_err, "-noout don't output anything, just verify.\n");
291 BIO_printf (bio_err, "-nomacver don't verify MAC.\n");
292 BIO_printf (bio_err, "-nocerts don't output certificates.\n");
293 BIO_printf (bio_err, "-clcerts only output client certificates.\n");
294 BIO_printf (bio_err, "-cacerts only output CA certificates.\n");
295 BIO_printf (bio_err, "-nokeys don't output private keys.\n");
296 BIO_printf (bio_err, "-info give info about PKCS#12 structure.\n");
297 BIO_printf (bio_err, "-des encrypt private keys with DES\n");
298 BIO_printf (bio_err, "-des3 encrypt private keys with triple DES (default)\n");
300 BIO_printf (bio_err, "-idea encrypt private keys with idea\n");
303 BIO_printf (bio_err, "-seed encrypt private keys with seed\n");
306 BIO_printf (bio_err, "-aes128, -aes192, -aes256\n");
307 BIO_printf (bio_err, " encrypt PEM output with cbc aes\n");
310 BIO_printf (bio_err, "-camellia128, -camellia192, -camellia256\n");
311 BIO_printf (bio_err, " encrypt PEM output with cbc camellia\n");
313 BIO_printf (bio_err, "-nodes don't encrypt private keys\n");
314 BIO_printf (bio_err, "-noiter don't use encryption iteration\n");
315 BIO_printf (bio_err, "-nomaciter don't use MAC iteration\n");
316 BIO_printf (bio_err, "-maciter use MAC iteration\n");
317 BIO_printf (bio_err, "-nomac don't generate MAC\n");
318 BIO_printf (bio_err, "-twopass separate MAC, encryption passwords\n");
319 BIO_printf (bio_err, "-descert encrypt PKCS#12 certificates with triple DES (default RC2-40)\n");
320 BIO_printf (bio_err, "-certpbe alg specify certificate PBE algorithm (default RC2-40)\n");
321 BIO_printf (bio_err, "-keypbe alg specify private key PBE algorithm (default 3DES)\n");
322 BIO_printf (bio_err, "-macalg alg digest algorithm used in MAC (default SHA1)\n");
323 BIO_printf (bio_err, "-keyex set MS key exchange type\n");
324 BIO_printf (bio_err, "-keysig set MS key signature type\n");
325 BIO_printf (bio_err, "-password p set import/export password source\n");
326 BIO_printf (bio_err, "-passin p input file pass phrase source\n");
327 BIO_printf (bio_err, "-passout p output file pass phrase source\n");
329 BIO_printf (bio_err, "-engine e use engine e, possibly a hardware device.\n");
331 BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
332 BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
333 BIO_printf(bio_err, " the random number generator\n");
334 BIO_printf(bio_err, "-CSP name Microsoft CSP name\n");
335 BIO_printf(bio_err, "-LMK Add local machine keyset attribute to private key\n");
340 e = setup_engine(bio_err, engine, 0);
348 if(!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
349 BIO_printf(bio_err, "Error getting passwords\n");
367 app_RAND_load_file(NULL, bio_err, (inrand != NULL));
369 BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
381 BIO_printf(bio_err, "Error opening input file %s\n",
402 BIO_printf(bio_err, "Error opening output file %s\n",
413 BIO_printf (bio_err, "Can't read Password\n");
431 BIO_printf(bio_err, "Nothing to do!\n");
444 key = load_key(bio_err, keyname ? keyname : infile,
458 certs = load_certs(bio_err, infile, FORMAT_PEM, NULL, e,
482 BIO_printf(bio_err, "No certificate matches private key\n");
498 if(!(morecerts = load_certs(bio_err
524 BIO_printf (bio_err, "Memory allocation error\n");
542 BIO_printf (bio_err, "Error %s getting chain.\n",
545 ERR_print_errors(bio_err);
573 BIO_printf (bio_err, "Can't read Password\n");
588 ERR_print_errors (bio_err);
597 BIO_printf(bio_err, "Unknown digest algorithm %s\n",
633 ERR_print_errors(bio_err);
641 BIO_printf (bio_err, "Can't read Password\n");
650 if ((options & INFO) && p12->mac) BIO_printf (bio_err, "MAC Iteration %ld\n", p12->mac->iter ? ASN1_INTEGER_get (p12->mac->iter) : 1);
660 BIO_printf (bio_err, "Mac verify error: invalid password?\n");
661 ERR_print_errors (bio_err);
664 BIO_printf (bio_err, "MAC verified OK\n");
674 BIO_printf(bio_err, "Error outputting keys and certificates\n");
675 ERR_print_errors (bio_err);
684 if(export_cert || inrand) app_RAND_write_file(NULL, bio_err);
712 if (options & INFO) BIO_printf (bio_err, "PKCS7 Data\n");
715 BIO_printf(bio_err, "PKCS7 Encrypted data: ");
716 alg_print(bio_err,
763 if (options & INFO) BIO_printf (bio_err, "Key bag\n");
775 BIO_printf (bio_err, "Shrouded Keybag: ");
776 alg_print (bio_err, bag->value.shkeybag->algor);
793 if (options & INFO) BIO_printf (bio_err, "Certificate bag\n");
808 if (options & INFO) BIO_printf (bio_err, "Safe Contents bag\n");
814 BIO_printf (bio_err, "Warning unsupported bag type: ");
815 i2a_ASN1_OBJECT (bio_err, bag->type);
816 BIO_printf (bio_err, "\n");
862 BIO_printf (bio_err, "%s, Iteration %ld\n",
971 BIO_printf(bio_err, "Unknown PBE algorithm %s\n", str);