Lines Matching refs:bio_err

122     if (bio_err == NULL) {
123 if ((bio_err = BIO_new(BIO_s_file())) != NULL)
124 BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT);
127 if (!load_config(bio_err, NULL))
312 } else if (args_verify(&args, NULL, &badarg, bio_err, &vpm))
321 BIO_printf(bio_err, "No signer certificate specified\n");
327 BIO_printf(bio_err,
333 BIO_printf(bio_err, "No recipient(s) certificate(s) specified\n");
341 BIO_printf(bio_err, "Usage smime [options] cert.pem ...\n");
342 BIO_printf(bio_err, "where options are\n");
343 BIO_printf(bio_err, "-encrypt encrypt message\n");
344 BIO_printf(bio_err, "-decrypt decrypt encrypted message\n");
345 BIO_printf(bio_err, "-sign sign message\n");
346 BIO_printf(bio_err, "-verify verify signed message\n");
347 BIO_printf(bio_err, "-pk7out output PKCS#7 structure\n");
349 BIO_printf(bio_err, "-des3 encrypt with triple DES\n");
350 BIO_printf(bio_err, "-des encrypt with DES\n");
353 BIO_printf(bio_err, "-seed encrypt with SEED\n");
356 BIO_printf(bio_err, "-rc2-40 encrypt with RC2-40 (default)\n");
357 BIO_printf(bio_err, "-rc2-64 encrypt with RC2-64\n");
358 BIO_printf(bio_err, "-rc2-128 encrypt with RC2-128\n");
361 BIO_printf(bio_err, "-aes128, -aes192, -aes256\n");
362 BIO_printf(bio_err,
366 BIO_printf(bio_err, "-camellia128, -camellia192, -camellia256\n");
367 BIO_printf(bio_err,
370 BIO_printf(bio_err,
372 BIO_printf(bio_err,
374 BIO_printf(bio_err,
376 BIO_printf(bio_err,
378 BIO_printf(bio_err, "-nodetach use opaque signing\n");
379 BIO_printf(bio_err,
381 BIO_printf(bio_err,
383 BIO_printf(bio_err, "-certfile file other certificates file\n");
384 BIO_printf(bio_err, "-signer file signer certificate file\n");
385 BIO_printf(bio_err,
387 BIO_printf(bio_err, "-in file input file\n");
388 BIO_printf(bio_err,
390 BIO_printf(bio_err,
392 BIO_printf(bio_err,
394 BIO_printf(bio_err, "-out file output file\n");
395 BIO_printf(bio_err,
397 BIO_printf(bio_err,
399 BIO_printf(bio_err, "-to addr to address\n");
400 BIO_printf(bio_err, "-from ad from address\n");
401 BIO_printf(bio_err, "-subject s subject\n");
402 BIO_printf(bio_err,
404 BIO_printf(bio_err,
406 BIO_printf(bio_err, "-CAfile file trusted certificates file\n");
407 BIO_printf(bio_err,
409 BIO_printf(bio_err,
412 BIO_printf(bio_err,
415 BIO_printf(bio_err, "-passin arg input file pass phrase source\n");
416 BIO_printf(bio_err, "-rand file%cfile%c...\n", LIST_SEPARATOR_CHAR,
418 BIO_printf(bio_err,
420 BIO_printf(bio_err, " the random number generator\n");
421 BIO_printf(bio_err,
426 e = setup_engine(bio_err, engine, 0);
429 if (!app_passwd(bio_err, passargin, NULL, &passin, NULL)) {
430 BIO_printf(bio_err, "Error getting password\n");
435 app_RAND_load_file(NULL, bio_err, (inrand != NULL));
437 BIO_printf(bio_err, "%ld semi-random bytes loaded\n",
463 BIO_printf(bio_err, "No cipher selected\n");
469 if (!(cert = load_cert(bio_err, *args, FORMAT_PEM,
472 BIO_printf(bio_err,
485 if (!(signer = load_cert(bio_err, signerfile, FORMAT_PEM, NULL,
489 BIO_printf(bio_err, "Can't read signer certificate file %s\n",
497 if (!(other = load_certs(bio_err, certfile, FORMAT_PEM, NULL,
501 BIO_printf(bio_err, "Can't read certificate file %s\n", certfile);
503 ERR_print_errors(bio_err);
509 if (!(recip = load_cert(bio_err, recipfile, FORMAT_PEM, NULL,
513 BIO_printf(bio_err, "Can't read recipient certificate file %s\n",
516 ERR_print_errors(bio_err);
531 key = load_key(bio_err, keyfile, keyform, 0, passin, e,
539 BIO_printf(bio_err, "Can't open input file %s\n", infile);
547 BIO_printf(bio_err, "Can't open output file %s\n", outfile);
561 if (!(store = setup_verify(bio_err, CAfile, CApath)))
587 BIO_printf(bio_err, "Bad input format for PKCS#7 file\n");
592 BIO_printf(bio_err, "Error reading S/MIME message\n");
598 BIO_printf(bio_err, "Can't read content file %s\n", contfile);
605 BIO_printf(bio_err, "Error creating PKCS#7 structure\n");
612 BIO_printf(bio_err, "Error decrypting PKCS#7 structure\n");
618 BIO_printf(bio_err, "Verification successful\n");
620 BIO_printf(bio_err, "Verification failure\n");
625 BIO_printf(bio_err, "Error writing signers to %s\n", signerfile);
646 BIO_printf(bio_err, "Bad output format for PKCS#7 file\n");
653 app_RAND_write_file(NULL, bio_err);
655 ERR_print_errors(bio_err);