diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-01-01 16:42:49 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-01-01 16:42:49 +0000 |
commit | 20432eae41e35ea28a4d43c0dfc7acfdd9672812 (patch) | |
tree | ab6b92cdf2f38923e3e106968aa0dca236e0b4f9 /apps/dsa.c | |
parent | 47134b7864fd5e31dbdbc789d9e073742ad4c3ee (diff) |
Fix some of the command line password stuff. New function
that can automatically determine the type of a DER encoded
"traditional" format private key and change some of the
d2i functions to use it instead of requiring the application
to work out the key type.
Diffstat (limited to 'apps/dsa.c')
-rw-r--r-- | apps/dsa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/dsa.c b/apps/dsa.c index 94f71b5be8..c9b9d71c71 100644 --- a/apps/dsa.c +++ b/apps/dsa.c @@ -140,7 +140,7 @@ int MAIN(int argc, char **argv) else if (strcmp(*argv,"-envpassin") == 0) { if (--argc < 1) goto bad; - if(!(passin= getenv(*(++argv)))) + if(!(passin= getenv(*(++argv)))) { BIO_printf(bio_err, "Can't read environment variable %s\n", @@ -151,14 +151,13 @@ int MAIN(int argc, char **argv) else if (strcmp(*argv,"-envpassout") == 0) { if (--argc < 1) goto bad; - if(!(passout= getenv(*(++argv)))) + if(!(passout= getenv(*(++argv)))) { BIO_printf(bio_err, "Can't read environment variable %s\n", *argv); badops = 1; } - argv++; } else if (strcmp(*argv,"-passout") == 0) { |