Home | History | Annotate | Download | only in apps

Lines Matching refs:bio_err

127 	if (bio_err == NULL)
129 if ((bio_err = BIO_new(BIO_s_file())) != NULL)
130 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE|BIO_FP_TEXT);
133 if (!load_config(bio_err, NULL))
287 BIO_printf(bio_err, "Unknown digest %s\n",
301 BIO_puts(bio_err, "Illegal -inkey without -signer\n");
368 else if (args_verify(&args, NULL, &badarg, bio_err, &vpm))
377 BIO_puts(bio_err, "Multiple signers or keys not allowed\n");
386 BIO_puts(bio_err, "Illegal -inkey without -signer\n");
402 BIO_printf(bio_err, "No signer certificate specified\n");
413 BIO_printf(bio_err, "No recipient certificate or key specified\n");
421 BIO_printf(bio_err, "No recipient(s) certificate(s) specified\n");
432 BIO_printf (bio_err, "Usage smime [options] cert.pem ...\n");
433 BIO_printf (bio_err, "where options are\n");
434 BIO_printf (bio_err, "-encrypt encrypt message\n");
435 BIO_printf (bio_err, "-decrypt decrypt encrypted message\n");
436 BIO_printf (bio_err, "-sign sign message\n");
437 BIO_printf (bio_err, "-verify verify signed message\n");
438 BIO_printf (bio_err, "-pk7out output PKCS#7 structure\n");
440 BIO_printf (bio_err, "-des3 encrypt with triple DES\n");
441 BIO_printf (bio_err, "-des encrypt with DES\n");
444 BIO_printf (bio_err, "-seed encrypt with SEED\n");
447 BIO_printf (bio_err, "-rc2-40 encrypt with RC2-40 (default)\n");
448 BIO_printf (bio_err, "-rc2-64 encrypt with RC2-64\n");
449 BIO_printf (bio_err, "-rc2-128 encrypt with RC2-128\n");
452 BIO_printf (bio_err, "-aes128, -aes192, -aes256\n");
453 BIO_printf (bio_err, " encrypt PEM output with cbc aes\n");
456 BIO_printf (bio_err, "-camellia128, -camellia192, -camellia256\n");
457 BIO_printf (bio_err, " encrypt PEM output with cbc camellia\n");
459 BIO_printf (bio_err, "-nointern don't search certificates in message for signer\n");
460 BIO_printf (bio_err, "-nosigs don't verify message signature\n");
461 BIO_printf (bio_err, "-noverify don't verify signers certificate\n");
462 BIO_printf (bio_err, "-nocerts don't include signers certificate when signing\n");
463 BIO_printf (bio_err, "-nodetach use opaque signing\n");
464 BIO_printf (bio_err, "-noattr don't include any signed attributes\n");
465 BIO_printf (bio_err, "-binary don't translate message to text\n");
466 BIO_printf (bio_err, "-certfile file other certificates file\n");
467 BIO_printf (bio_err, "-signer file signer certificate file\n");
468 BIO_printf (bio_err, "-recip file recipient certificate file for decryption\n");
469 BIO_printf (bio_err, "-in file input file\n");
470 BIO_printf (bio_err, "-inform arg input format SMIME (default), PEM or DER\n");
471 BIO_printf (bio_err, "-inkey file input private key (if not signer or recipient)\n");
472 BIO_printf (bio_err, "-keyform arg input private key format (PEM or ENGINE)\n");
473 BIO_printf (bio_err, "-out file output file\n");
474 BIO_printf (bio_err, "-outform arg output format SMIME (default), PEM or DER\n");
475 BIO_printf (bio_err, "-content file supply or override content for detached signature\n");
476 BIO_printf (bio_err, "-to addr to address\n");
477 BIO_printf (bio_err, "-from ad from address\n");
478 BIO_printf (bio_err, "-subject s subject\n");
479 BIO_printf (bio_err, "-text include or delete text MIME headers\n");
480 BIO_printf (bio_err, "-CApath dir trusted certificates directory\n");
481 BIO_printf (bio_err, "-CAfile file trusted certificates file\n");
482 BIO_printf (bio_err, "-crl_check check revocation status of signer's certificate using CRLs\n");
483 BIO_printf (bio_err, "-crl_check_all check revocation status of signer's certificate chain using CRLs\n");
485 BIO_printf (bio_err, "-engine e use engine e, possibly a hardware device.\n");
487 BIO_printf (bio_err, "-passin arg input file pass phrase source\n");
488 BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
489 BIO_printf(bio_err, " load the file (or the files in the directory) into\n");
490 BIO_printf(bio_err, " the random number generator\n");
491 BIO_printf (bio_err, "cert.pem recipient certificate(s) for encryption\n");
496 e = setup_engine(bio_err, engine, 0);
499 if (!app_passwd(bio_err, passargin, NULL, &passin, NULL))
501 BIO_printf(bio_err, "Error getting password\n");
507 app_RAND_load_file(NULL, bio_err, (inrand != NULL));
509 BIO_printf(bio_err,"%ld semi-random bytes loaded\n",
547 BIO_printf(bio_err, "No cipher selected\n");
554 bio_err,*args,FORMAT_PEM,
558 BIO_printf(bio_err, "Can't read recipient certificate file %s\n", *args);
570 if (!(other = load_certs(bio_err,certfile,FORMAT_PEM, NULL,
573 ERR_print_errors(bio_err);
580 if (!(recip = load_cert(bio_err,recipfile,FORMAT_PEM,NULL,
583 ERR_print_errors(bio_err);
602 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
612 BIO_printf (bio_err,
630 BIO_printf(bio_err, "Bad input format for PKCS#7 file\n");
636 BIO_printf(bio_err, "Error reading S/MIME message\n");
644 BIO_printf(bio_err, "Can't read content file %s\n", contfile);
654 BIO_printf (bio_err,
672 if (!(store = setup_verify(bio_err, CAfile, CApath)))
714 signer = load_cert(bio_err, signerfile,FORMAT_PEM, NULL,
718 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
740 BIO_printf(bio_err, "Error creating PKCS#7 structure\n");
749 BIO_printf(bio_err, "Error decrypting PKCS#7 structure\n");
757 BIO_printf(bio_err, "Verification successful\n");
760 BIO_printf(bio_err, "Verification failure\n");
766 BIO_printf(bio_err, "Error writing signers to %s\n",
796 BIO_printf(bio_err, "Bad output format for PKCS#7 file\n");
803 app_RAND_write_file(NULL, bio_err);
804 if (ret) ERR_print_errors(bio_err);