From e2fad4e6bdd4e404b3f4c186de52078738af2271 Mon Sep 17 00:00:00 2001 From: bcook <> Date: Fri, 11 Sep 2015 14:30:23 +0000 Subject: 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@ --- src/usr.bin/openssl/enc.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'src/usr.bin/openssl/enc.c') diff --git a/src/usr.bin/openssl/enc.c b/src/usr.bin/openssl/enc.c index 3ba774053d..6eb804fd49 100644 --- a/src/usr.bin/openssl/enc.c +++ b/src/usr.bin/openssl/enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: enc.c,v 1.6 2015/09/10 16:01:06 jsing Exp $ */ +/* $OpenBSD: enc.c,v 1.7 2015/09/11 14:30:23 bcook Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -85,9 +85,6 @@ static struct { int do_zlib; #endif int enc; -#ifndef OPENSSL_NO_ENGINE - char *engine; -#endif char *hiv; char *hkey; char *hsalt; @@ -171,15 +168,6 @@ static struct option enc_options[] = { .opt.value = &enc_config.enc, .value = 1, }, -#ifndef OPENSSL_NO_ENGINE - { - .name = "engine", - .argname = "id", - .desc = "Use the engine specified by the given identifier", - .type = OPTION_ARG, - .opt.arg = &enc_config.engine, - }, -#endif { .name = "in", .argname = "file", @@ -317,7 +305,7 @@ enc_usage(void) { fprintf(stderr, "usage: enc -ciphername [-AadePp] [-base64] " "[-bufsize number] [-debug]\n" - " [-engine id] [-in file] [-iv IV] [-K key] [-k password]\n" + " [-in file] [-iv IV] [-K key] [-k password]\n" " [-kfile file] [-md digest] [-none] [-nopad] [-nosalt]\n" " [-out file] [-pass arg] [-S salt] [-salt]\n\n"); options_usage(enc_options); @@ -413,10 +401,6 @@ enc_main(int argc, char **argv) enc_config.keystr = buf; } -#ifndef OPENSSL_NO_ENGINE - setup_engine(bio_err, enc_config.engine, 0); -#endif - if (enc_config.md != NULL && (dgst = EVP_get_digestbyname(enc_config.md)) == NULL) { BIO_printf(bio_err, -- cgit v1.2.3-55-g6feb