Home | History | Annotate | Download | only in apps

Lines Matching refs:bio_err

151 	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))
313 BIO_printf(bio_err, "Invalid key %s\n", *args);
327 BIO_printf(bio_err, "Invalid id %s\n", *args);
347 BIO_printf(bio_err, "Invalid OID %s\n", *args);
430 BIO_printf(bio_err, "Unknown digest %s\n",
444 BIO_puts(bio_err, "Illegal -inkey without -signer\n");
517 else if (args_verify(&args, NULL, &badarg, bio_err, &vpm))
526 BIO_puts(bio_err, "No Signed Receipts Recipients\n");
532 BIO_puts(bio_err, "Signed receipts only allowed with -sign\n");
537 BIO_puts(bio_err, "Multiple signers or keys not allowed\n");
545 BIO_puts(bio_err, "Illegal -inkey without -signer\n");
562 BIO_printf(bio_err, "No signer certificate specified\n");
574 BIO_printf(bio_err, "No recipient certificate or key specified\n");
582 BIO_printf(bio_err, "No recipient(s) certificate(s) specified\n");
593 BIO_printf (bio_err, "Usage cms [options] cert.pem ...\n");
594 BIO_printf (bio_err, "where options are\n");
595 BIO_printf (bio_err, "-encrypt encrypt message\n");
596 BIO_printf (bio_err
597 BIO_printf (bio_err, "-sign sign message\n");
598 BIO_printf (bio_err, "-verify verify signed message\n");
599 BIO_printf (bio_err, "-cmsout output CMS structure\n");
601 BIO_printf (bio_err, "-des3 encrypt with triple DES\n");
602 BIO_printf (bio_err, "-des encrypt with DES\n");
605 BIO_printf (bio_err, "-seed encrypt with SEED\n");
608 BIO_printf (bio_err, "-rc2-40 encrypt with RC2-40 (default)\n");
609 BIO_printf (bio_err, "-rc2-64 encrypt with RC2-64\n");
610 BIO_printf (bio_err, "-rc2-128 encrypt with RC2-128\n");
613 BIO_printf (bio_err, "-aes128, -aes192, -aes256\n");
614 BIO_printf (bio_err, " encrypt PEM output with cbc aes\n");
617 BIO_printf (bio_err, "-camellia128, -camellia192, -camellia256\n");
618 BIO_printf (bio_err, " encrypt PEM output with cbc camellia\n");
620 BIO_printf (bio_err, "-nointern don't search certificates in message for signer\n");
621 BIO_printf (bio_err, "-nosigs don't verify message signature\n");
622 BIO_printf (bio_err, "-noverify don't verify signers certificate\n");
623 BIO_printf (bio_err, "-nocerts don't include signers certificate when signing\n");
624 BIO_printf (bio_err, "-nodetach use opaque signing\n");
625 BIO_printf (bio_err, "-noattr don't include any signed attributes\n");
626 BIO_printf (bio_err, "-binary don't translate message to text\n");
627 BIO_printf (bio_err, "-certfile file other certificates file\n");
628 BIO_printf (bio_err, "-certsout file certificate output file\n");
629 BIO_printf (bio_err, "-signer file signer certificate file\n");
630 BIO_printf (bio_err, "-recip file recipient certificate file for decryption\n");
631 BIO_printf (bio_err, "-keyid use subject key identifier\n");
632 BIO_printf (bio_err, "-in file input file\n");
633 BIO_printf (bio_err, "-inform arg input format SMIME (default), PEM or DER\n");
634 BIO_printf (bio_err, "-inkey file input private key (if not signer or recipient)\n");
635 BIO_printf (bio_err, "-keyform arg input private key format (PEM or ENGINE)\n");
636 BIO_printf (bio_err, "-out file output file\n");
637 BIO_printf (bio_err, "-outform arg output format SMIME (default), PEM or DER\n");
638 BIO_printf (bio_err, "-content file supply or override content for detached signature\n");
639 BIO_printf (bio_err, "-to addr to address\n");
640 BIO_printf (bio_err, "-from ad from address\n");
641 BIO_printf (bio_err, "-subject s subject\n");
642 BIO_printf (bio_err, "-text include or delete text MIME headers\n");
643 BIO_printf (bio_err, "-CApath dir trusted certificates directory\n");
644 BIO_printf (bio_err, "-CAfile file trusted certificates file\n");
645 BIO_printf (bio_err, "-crl_check check revocation status of signer's certificate using CRLs\n");
646 BIO_printf (bio_err, "-crl_check_all check revocation status of signer's certificate chain using CRLs\n");
648 BIO_printf (bio_err, "-engine e use engine e, possibly a hardware device.\n");
650 BIO_printf (bio_err, "-passin arg input file pass phrase source\n");
651 BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
652 BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
653 BIO_printf(bio_err, " the random number generator\n");
654 BIO_printf (bio_err, "cert.pem recipient certificate(s) for encryption\n");
659 e = setup_engine(bio_err, engine, 0);
662 if (!app_passwd(bio_err, passargin, NULL, &passin, NULL))
664 BIO_printf(bio_err, "Error getting password\n");
670 app_RAND_load_file(NULL, bio_err, (inrand != NULL));
672 BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
710 BIO_printf(bio_err, "No cipher selected\n");
717 BIO_printf(bio_err, "No secret key id\n");
725 if (!(cert = load_cert(bio_err,*args,FORMAT_PEM,
736 if (!(other = load_certs(bio_err,certfile,FORMAT_PEM, NULL,
739 ERR_print_errors(bio_err);
746 if (!(recip = load_cert(bio_err,recipfile,FORMAT_PEM,NULL,
749 ERR_print_errors(bio_err);
756 if (!(signer = load_cert(bio_err,signerfile,FORMAT_PEM,NULL,
759 ERR_print_errors(bio_err);
778 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
788 BIO_printf (bio_err,
806 BIO_printf(bio_err, "Bad input format for CMS file\n");
812 BIO_printf(bio_err, "Error reading S/MIME message\n");
820 BIO_printf(bio_err, "Can't read content file %s\n", contfile);
830 BIO_printf(bio_err,
845 BIO_printf (bio_err,
858 BIO_printf(bio_err, "Bad input format for receipt\n");
864 BIO_printf(bio_err, "Error reading receipt\n");
873 BIO_printf (bio_err,
891 if (!(store = setup_verify(bio_err, CAfile, CApath)))
996 BIO_puts(bio_err,
1009 signer = load_cert(bio_err, signerfile,FORMAT_PEM, NULL,
1013 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
1037 BIO_printf(bio_err, "Error creating CMS structure\n");
1053 BIO_puts(bio_err,
1063 BIO_puts(bio_err,
1073 BIO_puts(bio_err,
1081 BIO_printf(bio_err, "Error decrypting CMS structure\n");
1098 BIO_printf(bio_err, "Verification successful\n");
1101 BIO_printf(bio_err, "Verification failure\n");
1114 BIO_printf(bio_err, "Verification successful\n");
1117 BIO_printf(bio_err, "Verification failure\n");
1128 BIO_printf(bio_err,
1137 receipt_request_print(bio_err, cms);
1143 BIO_printf(bio_err, "Verification successful\n");
1146 BIO_printf(bio_err, "Verification failure\n");
1176 BIO_printf(bio_err, "Bad output format for CMS file\n");
1188 ERR_print_errors(bio_err);
1190 app_RAND_write_file(NULL, bio_err);
1296 BIO_printf(bio_err, "Signer %d:\n", i + 1);
1298 BIO_puts(bio_err, " No Receipt Request\n");
1301 BIO_puts(bio_err, " Receipt Request Parse Error\n");
1302 ERR_print_errors(bio_err);