diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2009-04-06 06:30:01 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2009-04-06 06:30:01 +0000 |
commit | 8a325a0bb746ed2cf3d408b0ae9365d4033a2d99 (patch) | |
tree | 49bd8827f5fef076919853a0e629ae525db88692 | |
parent | 1f1d253e17fab246f2d6adbc12f91deff5784a36 (diff) |
import of OpenSSL 0.9.8k
-rw-r--r-- | lib/libssl/src/apps/pkeyparam.c | 5 | ||||
-rw-r--r-- | lib/libssl/src/apps/pkeyutl.c | 14 |
2 files changed, 10 insertions, 9 deletions
diff --git a/lib/libssl/src/apps/pkeyparam.c b/lib/libssl/src/apps/pkeyparam.c index 6f7a357a36c..4319eb4de51 100644 --- a/lib/libssl/src/apps/pkeyparam.c +++ b/lib/libssl/src/apps/pkeyparam.c @@ -74,6 +74,7 @@ int MAIN(int argc, char **argv) EVP_PKEY *pkey=NULL; int badarg = 0; #ifndef OPENSSL_NO_ENGINE + ENGINE *e = NULL; char *engine=NULL; #endif int ret = 1; @@ -140,7 +141,7 @@ int MAIN(int argc, char **argv) } #ifndef OPENSSL_NO_ENGINE - setup_engine(bio_err, engine, 0); + e = setup_engine(bio_err, engine, 0); #endif if (infile) @@ -178,7 +179,7 @@ int MAIN(int argc, char **argv) pkey = PEM_read_bio_Parameters(in, NULL); if (!pkey) { - BIO_printf(bio_err, "Error reading parameters\n"); + BIO_printf(bio_err, "Error reading paramters\n"); ERR_print_errors(bio_err); goto end; } diff --git a/lib/libssl/src/apps/pkeyutl.c b/lib/libssl/src/apps/pkeyutl.c index 7eb3f5c544d..b808e1ef499 100644 --- a/lib/libssl/src/apps/pkeyutl.c +++ b/lib/libssl/src/apps/pkeyutl.c @@ -119,17 +119,17 @@ int MAIN(int argc, char **argv) if (!strcmp(*argv,"-in")) { if (--argc < 1) badarg = 1; - else infile= *(++argv); + infile= *(++argv); } else if (!strcmp(*argv,"-out")) { if (--argc < 1) badarg = 1; - else outfile= *(++argv); + outfile= *(++argv); } else if (!strcmp(*argv,"-sigfile")) { if (--argc < 1) badarg = 1; - else sigfile= *(++argv); + sigfile= *(++argv); } else if(!strcmp(*argv, "-inkey")) { @@ -159,17 +159,17 @@ int MAIN(int argc, char **argv) else if (!strcmp(*argv,"-passin")) { if (--argc < 1) badarg = 1; - else passargin= *(++argv); + passargin= *(++argv); } else if (strcmp(*argv,"-peerform") == 0) { if (--argc < 1) badarg = 1; - else peerform=str2fmt(*(++argv)); + peerform=str2fmt(*(++argv)); } else if (strcmp(*argv,"-keyform") == 0) { if (--argc < 1) badarg = 1; - else keyform=str2fmt(*(++argv)); + keyform=str2fmt(*(++argv)); } #ifndef OPENSSL_NO_ENGINE else if(!strcmp(*argv, "-engine")) @@ -390,7 +390,7 @@ static void usage() BIO_printf(bio_err, "Usage: pkeyutl [options]\n"); BIO_printf(bio_err, "-in file input file\n"); BIO_printf(bio_err, "-out file output file\n"); - BIO_printf(bio_err, "-sigfile file signature file (verify operation only)\n"); + BIO_printf(bio_err, "-signature file signature file (verify operation only)\n"); BIO_printf(bio_err, "-inkey file input key\n"); BIO_printf(bio_err, "-keyform arg private key format - default PEM\n"); BIO_printf(bio_err, "-pubin input is a public key\n"); |