PR: 2069
[openssl.git] / apps / pkeyparam.c
index 0b911af6364949fc03b44529267c2e0604ba4546..7f18010f9d142884e9b260aee91b19ddd610e313 100644 (file)
@@ -68,13 +68,13 @@ int MAIN(int, char **);
 
 int MAIN(int argc, char **argv)
        {
-       ENGINE *e = NULL;
        char **args, *infile = NULL, *outfile = NULL;
        BIO *in = NULL, *out = NULL;
        int text = 0, noout = 0;
        EVP_PKEY *pkey=NULL;
        int badarg = 0;
 #ifndef OPENSSL_NO_ENGINE
+       ENGINE *e = NULL;
        char *engine=NULL;
 #endif
        int ret = 1;
@@ -125,7 +125,9 @@ int MAIN(int argc, char **argv)
 
        if (badarg)
                {
+#ifndef OPENSSL_NO_ENGINE
                bad:
+#endif
                BIO_printf(bio_err, "Usage pkeyparam [options]\n");
                BIO_printf(bio_err, "where options are\n");
                BIO_printf(bio_err, "-in file        input file\n");
@@ -177,7 +179,7 @@ int MAIN(int argc, char **argv)
        pkey = PEM_read_bio_Parameters(in, NULL);
        if (!pkey)
                {
-               BIO_printf(bio_err, "Error reading paramters\n");
+               BIO_printf(bio_err, "Error reading parameters\n");
                ERR_print_errors(bio_err);
                goto end;
                }