Home | History | Annotate | Download | only in apps

Lines Matching full:bio_err

146 	if (bio_err == NULL)
148 if ((bio_err = BIO_new(BIO_s_file())) != NULL)
149 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE|BIO_FP_TEXT);
152 if (!load_config(bio_err, NULL))
303 BIO_printf(bio_err, "Invalid key %s\n", *args);
317 BIO_printf(bio_err, "Invalid id %s\n", *args);
330 BIO_printf(bio_err, "Invalid OID %s\n", *args);
413 BIO_printf(bio_err, "Unknown digest %s\n",
427 BIO_puts(bio_err, "Illegal -inkey without -signer\n");
500 else if (args_verify(&args, NULL, &badarg, bio_err, &vpm))
509 BIO_puts(bio_err, "No Signed Receipts Recipients\n");
515 BIO_puts(bio_err, "Signed receipts only allowed with -sign\n");
520 BIO_puts(bio_err, "Multiple signers or keys not allowed\n");
528 BIO_puts(bio_err, "Illegal -inkey without -signer\n");
545 BIO_printf(bio_err, "No signer certificate specified\n");
557 BIO_printf(bio_err, "No recipient certificate or key specified\n");
565 BIO_printf(bio_err, "No recipient(s) certificate(s) specified\n");
576 BIO_printf (bio_err, "Usage cms [options] cert.pem ...\n");
577 BIO_printf (bio_err, "where options are\n");
578 BIO_printf (bio_err, "-encrypt encrypt message\n");
579 BIO_printf (bio_err, "-decrypt decrypt encrypted message\n");
580 BIO_printf (bio_err, "-sign sign message\n");
581 BIO_printf (bio_err, "-verify verify signed message\n");
582 BIO_printf (bio_err, "-cmsout output CMS structure\n");
584 BIO_printf (bio_err, "-des3 encrypt with triple DES\n");
585 BIO_printf (bio_err, "-des encrypt with DES\n");
588 BIO_printf (bio_err, "-seed encrypt with SEED\n");
591 BIO_printf (bio_err, "-rc2-40 encrypt with RC2-40 (default)\n");
592 BIO_printf (bio_err, "-rc2-64 encrypt with RC2-64\n");
593 BIO_printf (bio_err, "-rc2-128 encrypt with RC2-128\n");
596 BIO_printf (bio_err, "-aes128, -aes192, -aes256\n");
597 BIO_printf (bio_err
600 BIO_printf (bio_err, "-camellia128, -camellia192, -camellia256\n");
601 BIO_printf (bio_err, " encrypt PEM output with cbc camellia\n");
603 BIO_printf (bio_err, "-nointern don't search certificates in message for signer\n");
604 BIO_printf (bio_err, "-nosigs don't verify message signature\n");
605 BIO_printf (bio_err, "-noverify don't verify signers certificate\n");
606 BIO_printf (bio_err, "-nocerts don't include signers certificate when signing\n");
607 BIO_printf (bio_err, "-nodetach use opaque signing\n");
608 BIO_printf (bio_err, "-noattr don't include any signed attributes\n");
609 BIO_printf (bio_err, "-binary don't translate message to text\n");
610 BIO_printf (bio_err, "-certfile file other certificates file\n");
611 BIO_printf (bio_err, "-certsout file certificate output file\n");
612 BIO_printf (bio_err, "-signer file signer certificate file\n");
613 BIO_printf (bio_err, "-recip file recipient certificate file for decryption\n");
614 BIO_printf (bio_err, "-skeyid use subject key identifier\n");
615 BIO_printf (bio_err, "-in file input file\n");
616 BIO_printf (bio_err, "-inform arg input format SMIME (default), PEM or DER\n");
617 BIO_printf (bio_err, "-inkey file input private key (if not signer or recipient)\n");
618 BIO_printf (bio_err, "-keyform arg input private key format (PEM or ENGINE)\n");
619 BIO_printf (bio_err, "-out file output file\n");
620 BIO_printf (bio_err, "-outform arg output format SMIME (default), PEM or DER\n");
621 BIO_printf (bio_err, "-content file supply or override content for detached signature\n");
622 BIO_printf (bio_err, "-to addr to address\n");
623 BIO_printf (bio_err, "-from ad from address\n");
624 BIO_printf (bio_err, "-subject s subject\n");
625 BIO_printf (bio_err, "-text include or delete text MIME headers\n");
626 BIO_printf (bio_err, "-CApath dir trusted certificates directory\n");
627 BIO_printf (bio_err, "-CAfile file trusted certificates file\n");
628 BIO_printf (bio_err, "-crl_check check revocation status of signer's certificate using CRLs\n");
629 BIO_printf (bio_err, "-crl_check_all check revocation status of signer's certificate chain using CRLs\n");
631 BIO_printf (bio_err, "-engine e use engine e, possibly a hardware device.\n");
633 BIO_printf (bio_err, "-passin arg input file pass phrase source\n");
634 BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
635 BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
636 BIO_printf(bio_err, " the random number generator\n");
637 BIO_printf (bio_err, "cert.pem recipient certificate(s) for encryption\n");
642 e = setup_engine(bio_err, engine, 0);
645 if (!app_passwd(bio_err, passargin, NULL, &passin, NULL))
647 BIO_printf(bio_err, "Error getting password\n");
653 app_RAND_load_file(NULL, bio_err, (inrand != NULL));
655 BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
693 BIO_printf(bio_err, "No cipher selected\n");
700 BIO_printf(bio_err, "No sectre key id\n");
708 if (!(cert = load_cert(bio_err,*args,FORMAT_PEM,
719 if (!(other = load_certs(bio_err,certfile,FORMAT_PEM, NULL,
722 ERR_print_errors(bio_err);
729 if (!(recip = load_cert(bio_err,recipfile,FORMAT_PEM,NULL,
732 ERR_print_errors(bio_err);
739 if (!(signer = load_cert(bio_err,signerfile,FORMAT_PEM,NULL,
742 ERR_print_errors(bio_err);
761 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
771 BIO_printf (bio_err,
789 BIO_printf(bio_err, "Bad input format for CMS file\n");
795 BIO_printf(bio_err, "Error reading S/MIME message\n");
803 BIO_printf(bio_err, "Can't read content file %s\n", contfile);
813 BIO_printf(bio_err,
828 BIO_printf (bio_err,
841 BIO_printf(bio_err, "Bad input format for receipt\n");
847 BIO_printf(bio_err, "Error reading receipt\n");
856 BIO_printf (bio_err,
874 if (!(store = setup_verify(bio_err, CAfile, CApath)))
968 BIO_puts(bio_err,
981 signer = load_cert(bio_err, signerfile,FORMAT_PEM, NULL,
985 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
1009 BIO_printf(bio_err, "Error creating CMS structure\n");
1023 BIO_puts(bio_err,
1033 BIO_puts(bio_err,
1041 BIO_printf(bio_err, "Error decrypting CMS structure\n");
1058 BIO_printf(bio_err, "Verification successful\n");
1061 BIO_printf(bio_err, "Verification failure\n");
1074 BIO_printf(bio_err, "Verification successful\n");
1077 BIO_printf(bio_err, "Verification failure\n");
1086 BIO_printf(bio_err,
1095 receipt_request_print(bio_err, cms);
1101 BIO_printf(bio_err, "Verification successful\n");
1104 BIO_printf(bio_err, "Verification failure\n");
1129 BIO_printf(bio_err, "Bad output format for CMS file\n");
1141 ERR_print_errors(bio_err);
1143 app_RAND_write_file(NULL, bio_err);
1245 BIO_printf(bio_err, "Signer %d:\n", i + 1);
1247 BIO_puts(bio_err, " No Receipt Request\n");
1250 BIO_puts(bio_err, " Receipt Request Parse Error\n");
1251 ERR_print_errors(bio_err);