summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/dsa.c
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2015-09-11 14:30:24 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2015-09-11 14:30:24 +0000
commit37440fbe768a969be4c8b84be47e6cd5a34cace6 (patch)
tree6edd66eac1058582859a4387add37455d7155c75 /usr.bin/openssl/dsa.c
parent087bd0466492520e20b5013d2266267e903e46b4 (diff)
Remove engine command and parameters from openssl(1).
We do not have any builtin or dynamic engines, meaning openssl(1) has no way to use the engine command or parameters at all. ok jsing@
Diffstat (limited to 'usr.bin/openssl/dsa.c')
-rw-r--r--usr.bin/openssl/dsa.c25
1 files changed, 4 insertions, 21 deletions
diff --git a/usr.bin/openssl/dsa.c b/usr.bin/openssl/dsa.c
index 2b6bff29f3a..813e163662c 100644
--- a/usr.bin/openssl/dsa.c
+++ b/usr.bin/openssl/dsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa.c,v 1.4 2015/08/22 16:36:05 jsing Exp $ */
+/* $OpenBSD: dsa.c,v 1.5 2015/09/11 14:30:23 bcook Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -76,9 +76,6 @@
static struct {
const EVP_CIPHER *enc;
-#ifndef OPENSSL_NO_ENGINE
- char *engine;
-#endif
char *infile;
int informat;
int modulus;
@@ -110,15 +107,6 @@ dsa_opt_enc(int argc, char **argv, int *argsused)
}
static struct option dsa_options[] = {
-#ifndef OPENSSL_NO_ENGINE
- {
- .name = "engine",
- .argname = "id",
- .desc = "Use the engine specified by the given identifier",
- .type = OPTION_ARG,
- .opt.arg = &dsa_config.engine,
- },
-#endif
{
.name = "in",
.argname = "file",
@@ -231,7 +219,7 @@ static void
dsa_usage(void)
{
fprintf(stderr,
- "usage: dsa [-engine id] [-in file] [-inform format] [-noout]\n"
+ "usage: dsa [-in file] [-inform format] [-noout]\n"
" [-out file] [-outform format] [-passin src] [-passout src]\n"
" [-pubin] [-pubout] [-pvk-none | -pvk-strong | -pvk-weak]\n"
" [-text] [-ciphername]\n\n");
@@ -246,7 +234,6 @@ dsa_usage(void)
int
dsa_main(int argc, char **argv)
{
- ENGINE *e = NULL;
int ret = 1;
DSA *dsa = NULL;
int i;
@@ -264,10 +251,6 @@ dsa_main(int argc, char **argv)
goto end;
}
-#ifndef OPENSSL_NO_ENGINE
- e = setup_engine(bio_err, dsa_config.engine, 0);
-#endif
-
if (!app_passwd(bio_err, dsa_config.passargin, dsa_config.passargout,
&passin, &passout)) {
BIO_printf(bio_err, "Error getting passwords\n");
@@ -296,10 +279,10 @@ dsa_main(int argc, char **argv)
if (dsa_config.pubin)
pkey = load_pubkey(bio_err, dsa_config.infile,
- dsa_config.informat, 1, passin, e, "Public Key");
+ dsa_config.informat, 1, passin, "Public Key");
else
pkey = load_key(bio_err, dsa_config.infile,
- dsa_config.informat, 1, passin, e, "Private Key");
+ dsa_config.informat, 1, passin, "Private Key");
if (pkey) {
dsa = EVP_PKEY_get1_DSA(pkey);