Lines Matching refs:bio_err

152     if (bio_err == NULL) {
153 if ((bio_err = BIO_new(BIO_s_file())) != NULL)
154 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT);
157 if (!load_config(bio_err, NULL))
302 BIO_printf(bio_err, "Invalid key %s\n", *args);
313 BIO_printf(bio_err, "Invalid id %s\n", *args);
328 BIO_printf(bio_err, "Invalid OID %s\n", *args);
391 BIO_printf(bio_err, "Unknown digest %s\n", *args);
400 BIO_puts(bio_err, "Illegal -inkey without -signer\n");
452 } else if (args_verify(&args, NULL, &badarg, bio_err, &vpm))
460 BIO_puts(bio_err, "No Signed Receipts Recipients\n");
465 BIO_puts(bio_err, "Signed receipts only allowed with -sign\n");
469 BIO_puts(bio_err, "Multiple signers or keys not allowed\n");
475 BIO_puts(bio_err, "Illegal -inkey without -signer\n");
490 BIO_printf(bio_err, "No signer certificate specified\n");
500 BIO_printf(bio_err,
506 BIO_printf(bio_err, "No recipient(s) certificate(s) specified\n");
515 BIO_printf(bio_err, "Usage cms [options] cert.pem ...\n");
516 BIO_printf(bio_err, "where options are\n");
517 BIO_printf(bio_err, "-encrypt encrypt message\n");
518 BIO_printf(bio_err, "-decrypt decrypt encrypted message\n");
519 BIO_printf(bio_err, "-sign sign message\n");
520 BIO_printf(bio_err, "-verify verify signed message\n");
521 BIO_printf(bio_err, "-cmsout output CMS structure\n");
523 BIO_printf(bio_err, "-des3 encrypt with triple DES\n");
524 BIO_printf(bio_err, "-des encrypt with DES\n");
527 BIO_printf(bio_err, "-seed encrypt with SEED\n");
530 BIO_printf(bio_err, "-rc2-40 encrypt with RC2-40 (default)\n");
531 BIO_printf(bio_err, "-rc2-64 encrypt with RC2-64\n");
532 BIO_printf(bio_err, "-rc2-128 encrypt with RC2-128\n");
535 BIO_printf(bio_err, "-aes128, -aes192, -aes256\n");
536 BIO_printf(bio_err,
540 BIO_printf(bio_err, "-camellia128, -camellia192, -camellia256\n");
541 BIO_printf(bio_err,
544 BIO_printf(bio_err,
546 BIO_printf(bio_err,
548 BIO_printf(bio_err,
550 BIO_printf(bio_err,
552 BIO_printf(bio_err, "-nodetach use opaque signing\n");
553 BIO_printf(bio_err,
555 BIO_printf(bio_err,
557 BIO_printf(bio_err, "-certfile file other certificates file\n");
558 BIO_printf(bio_err, "-certsout file certificate output file\n");
559 BIO_printf(bio_err, "-signer file signer certificate file\n");
560 BIO_printf(bio_err,
562 BIO_printf(bio_err, "-keyid use subject key identifier\n");
563 BIO_printf(bio_err, "-in file input file\n");
564 BIO_printf(bio_err,
566 BIO_printf(bio_err,
568 BIO_printf(bio_err,
570 BIO_printf(bio_err, "-out file output file\n");
571 BIO_printf(bio_err,
573 BIO_printf(bio_err,
575 BIO_printf(bio_err, "-to addr to address\n");
576 BIO_printf(bio_err, "-from ad from address\n");
577 BIO_printf(bio_err, "-subject s subject\n");
578 BIO_printf(bio_err,
580 BIO_printf(bio_err,
582 BIO_printf(bio_err, "-CAfile file trusted certificates file\n");
583 BIO_printf(bio_err,
585 BIO_printf(bio_err,
587 BIO_printf(bio_err,
590 BIO_printf(bio_err,
593 BIO_printf(bio_err, "-passin arg input file pass phrase source\n");
594 BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR,
596 BIO_printf(bio_err,
598 BIO_printf(bio_err, " the random number generator\n");
599 BIO_printf(bio_err,
604 e = setup_engine(bio_err, engine, 0);
607 if (!app_passwd(bio_err, passargin, NULL, &passin, NULL)) {
608 BIO_printf(bio_err, "Error getting password\n");
613 app_RAND_load_file(NULL, bio_err, (inrand != NULL));
615 BIO_printf(bio_err, "%ld semi-random bytes loaded\n",
645 BIO_printf(bio_err, "No cipher selected\n");
651 BIO_printf(bio_err, "No secret key id\n");
658 if (!(cert = load_cert(bio_err, *args, FORMAT_PEM,
668 if (!(other = load_certs(bio_err, certfile, FORMAT_PEM, NULL,
670 ERR_print_errors(bio_err);
676 if (!(recip = load_cert(bio_err, recipfile, FORMAT_PEM, NULL,
678 ERR_print_errors(bio_err);
684 if (!(signer = load_cert(bio_err, signerfile, FORMAT_PEM, NULL,
686 ERR_print_errors(bio_err);
701 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
709 BIO_printf(bio_err, "Can't open input file %s\n", infile);
723 BIO_printf(bio_err, "Bad input format for CMS file\n");
728 BIO_printf(bio_err, "Error reading S/MIME message\n");
734 BIO_printf(bio_err, "Can't read content file %s\n", contfile);
742 BIO_printf(bio_err,
754 BIO_printf(bio_err, "Can't open receipt file %s\n", rctfile);
765 BIO_printf(bio_err, "Bad input format for receipt\n");
770 BIO_printf(bio_err, "Error reading receipt\n");
777 BIO_printf(bio_err, "Can't open output file %s\n", outfile);
791 if (!(store = setup_verify(bio_err, CAfile, CApath)))
874 BIO_puts(bio_err,
885 signer = load_cert(bio_err, signerfile, FORMAT_PEM, NULL,
889 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
911 BIO_printf(bio_err, "Error creating CMS structure\n");
924 BIO_puts(bio_err, "Error decrypting CMS using secret key\n");
931 BIO_puts(bio_err, "Error decrypting CMS using private key\n");
938 BIO_puts(bio_err, "Error decrypting CMS using password\n");
944 BIO_printf(bio_err, "Error decrypting CMS structure\n");
955 BIO_printf(bio_err, "Verification successful\n");
957 BIO_printf(bio_err, "Verification failure\n");
966 BIO_printf(bio_err, "Verification successful\n");
968 BIO_printf(bio_err, "Verification failure\n");
977 BIO_printf(bio_err,
985 receipt_request_print(bio_err, cms);
989 BIO_printf(bio_err, "Verification successful\n");
991 BIO_printf(bio_err, "Verification failure\n");
1014 BIO_printf(bio_err, "Bad output format for CMS file\n");
1025 ERR_print_errors(bio_err);
1027 app_RAND_write_file(NULL, bio_err);
1131 BIO_printf(bio_err, "Signer %d:\n", i + 1);
1133 BIO_puts(bio_err, " No Receipt Request\n");
1135 BIO_puts(bio_err, " Receipt Request Parse Error\n");
1136 ERR_print_errors(bio_err);