summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/gendh.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/gendh.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/gendh.c')
-rw-r--r--usr.bin/openssl/gendh.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/usr.bin/openssl/gendh.c b/usr.bin/openssl/gendh.c
index 38186f03075..208906e24c2 100644
--- a/usr.bin/openssl/gendh.c
+++ b/usr.bin/openssl/gendh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gendh.c,v 1.4 2015/08/22 16:36:05 jsing Exp $ */
+/* $OpenBSD: gendh.c,v 1.5 2015/09/11 14:30:23 bcook Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -87,9 +87,6 @@
static int dh_cb(int p, int n, BN_GENCB * cb);
static struct {
-#ifndef OPENSSL_NO_ENGINE
- char *engine;
-#endif
int g;
char *outfile;
} gendh_config;
@@ -110,15 +107,6 @@ static struct option gendh_options[] = {
.value = 5,
.opt.value = &gendh_config.g,
},
-#ifndef OPENSSL_NO_ENGINE
- {
- .name = "engine",
- .argname = "id",
- .desc = "Use the engine specified by the given identifier",
- .type = OPTION_ARG,
- .opt.arg = &gendh_config.engine,
- },
-#endif
{
.name = "out",
.argname = "file",
@@ -133,7 +121,7 @@ static void
gendh_usage(void)
{
fprintf(stderr,
- "usage: gendh [-2 | -5] [-engine id] [-out file] [numbits]\n\n");
+ "usage: gendh [-2 | -5] [-out file] [numbits]\n\n");
options_usage(gendh_options);
}
@@ -166,10 +154,6 @@ gendh_main(int argc, char **argv)
}
}
-#ifndef OPENSSL_NO_ENGINE
- setup_engine(bio_err, gendh_config.engine, 0);
-#endif
-
out = BIO_new(BIO_s_file());
if (out == NULL) {
ERR_print_errors(bio_err);