diff options
Diffstat (limited to '')
-rw-r--r-- | src/usr.bin/openssl/dsa.c | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/src/usr.bin/openssl/dsa.c b/src/usr.bin/openssl/dsa.c index 2b6bff29f3..813e163662 100644 --- a/src/usr.bin/openssl/dsa.c +++ b/src/usr.bin/openssl/dsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa.c,v 1.4 2015/08/22 16:36:05 jsing Exp $ */ | 1 | /* $OpenBSD: dsa.c,v 1.5 2015/09/11 14:30:23 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -76,9 +76,6 @@ | |||
76 | 76 | ||
77 | static struct { | 77 | static struct { |
78 | const EVP_CIPHER *enc; | 78 | const EVP_CIPHER *enc; |
79 | #ifndef OPENSSL_NO_ENGINE | ||
80 | char *engine; | ||
81 | #endif | ||
82 | char *infile; | 79 | char *infile; |
83 | int informat; | 80 | int informat; |
84 | int modulus; | 81 | int modulus; |
@@ -110,15 +107,6 @@ dsa_opt_enc(int argc, char **argv, int *argsused) | |||
110 | } | 107 | } |
111 | 108 | ||
112 | static struct option dsa_options[] = { | 109 | static struct option dsa_options[] = { |
113 | #ifndef OPENSSL_NO_ENGINE | ||
114 | { | ||
115 | .name = "engine", | ||
116 | .argname = "id", | ||
117 | .desc = "Use the engine specified by the given identifier", | ||
118 | .type = OPTION_ARG, | ||
119 | .opt.arg = &dsa_config.engine, | ||
120 | }, | ||
121 | #endif | ||
122 | { | 110 | { |
123 | .name = "in", | 111 | .name = "in", |
124 | .argname = "file", | 112 | .argname = "file", |
@@ -231,7 +219,7 @@ static void | |||
231 | dsa_usage(void) | 219 | dsa_usage(void) |
232 | { | 220 | { |
233 | fprintf(stderr, | 221 | fprintf(stderr, |
234 | "usage: dsa [-engine id] [-in file] [-inform format] [-noout]\n" | 222 | "usage: dsa [-in file] [-inform format] [-noout]\n" |
235 | " [-out file] [-outform format] [-passin src] [-passout src]\n" | 223 | " [-out file] [-outform format] [-passin src] [-passout src]\n" |
236 | " [-pubin] [-pubout] [-pvk-none | -pvk-strong | -pvk-weak]\n" | 224 | " [-pubin] [-pubout] [-pvk-none | -pvk-strong | -pvk-weak]\n" |
237 | " [-text] [-ciphername]\n\n"); | 225 | " [-text] [-ciphername]\n\n"); |
@@ -246,7 +234,6 @@ dsa_usage(void) | |||
246 | int | 234 | int |
247 | dsa_main(int argc, char **argv) | 235 | dsa_main(int argc, char **argv) |
248 | { | 236 | { |
249 | ENGINE *e = NULL; | ||
250 | int ret = 1; | 237 | int ret = 1; |
251 | DSA *dsa = NULL; | 238 | DSA *dsa = NULL; |
252 | int i; | 239 | int i; |
@@ -264,10 +251,6 @@ dsa_main(int argc, char **argv) | |||
264 | goto end; | 251 | goto end; |
265 | } | 252 | } |
266 | 253 | ||
267 | #ifndef OPENSSL_NO_ENGINE | ||
268 | e = setup_engine(bio_err, dsa_config.engine, 0); | ||
269 | #endif | ||
270 | |||
271 | if (!app_passwd(bio_err, dsa_config.passargin, dsa_config.passargout, | 254 | if (!app_passwd(bio_err, dsa_config.passargin, dsa_config.passargout, |
272 | &passin, &passout)) { | 255 | &passin, &passout)) { |
273 | BIO_printf(bio_err, "Error getting passwords\n"); | 256 | BIO_printf(bio_err, "Error getting passwords\n"); |
@@ -296,10 +279,10 @@ dsa_main(int argc, char **argv) | |||
296 | 279 | ||
297 | if (dsa_config.pubin) | 280 | if (dsa_config.pubin) |
298 | pkey = load_pubkey(bio_err, dsa_config.infile, | 281 | pkey = load_pubkey(bio_err, dsa_config.infile, |
299 | dsa_config.informat, 1, passin, e, "Public Key"); | 282 | dsa_config.informat, 1, passin, "Public Key"); |
300 | else | 283 | else |
301 | pkey = load_key(bio_err, dsa_config.infile, | 284 | pkey = load_key(bio_err, dsa_config.infile, |
302 | dsa_config.informat, 1, passin, e, "Private Key"); | 285 | dsa_config.informat, 1, passin, "Private Key"); |
303 | 286 | ||
304 | if (pkey) { | 287 | if (pkey) { |
305 | dsa = EVP_PKEY_get1_DSA(pkey); | 288 | dsa = EVP_PKEY_get1_DSA(pkey); |