summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/enc.c
diff options
context:
space:
mode:
authorbcook <>2015-09-11 14:30:23 +0000
committerbcook <>2015-09-11 14:30:23 +0000
commite2fad4e6bdd4e404b3f4c186de52078738af2271 (patch)
treecc1109842924cab95a77b6863b32de51b6d4f960 /src/usr.bin/openssl/enc.c
parent7cea1ef22b79637be449efa70b99c6deaf74ef10 (diff)
downloadopenbsd-e2fad4e6bdd4e404b3f4c186de52078738af2271.tar.gz
openbsd-e2fad4e6bdd4e404b3f4c186de52078738af2271.tar.bz2
openbsd-e2fad4e6bdd4e404b3f4c186de52078738af2271.zip
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 '')
-rw-r--r--src/usr.bin/openssl/enc.c20
1 files changed, 2 insertions, 18 deletions
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 @@
1/* $OpenBSD: enc.c,v 1.6 2015/09/10 16:01:06 jsing Exp $ */ 1/* $OpenBSD: enc.c,v 1.7 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 *
@@ -85,9 +85,6 @@ static struct {
85 int do_zlib; 85 int do_zlib;
86#endif 86#endif
87 int enc; 87 int enc;
88#ifndef OPENSSL_NO_ENGINE
89 char *engine;
90#endif
91 char *hiv; 88 char *hiv;
92 char *hkey; 89 char *hkey;
93 char *hsalt; 90 char *hsalt;
@@ -171,15 +168,6 @@ static struct option enc_options[] = {
171 .opt.value = &enc_config.enc, 168 .opt.value = &enc_config.enc,
172 .value = 1, 169 .value = 1,
173 }, 170 },
174#ifndef OPENSSL_NO_ENGINE
175 {
176 .name = "engine",
177 .argname = "id",
178 .desc = "Use the engine specified by the given identifier",
179 .type = OPTION_ARG,
180 .opt.arg = &enc_config.engine,
181 },
182#endif
183 { 171 {
184 .name = "in", 172 .name = "in",
185 .argname = "file", 173 .argname = "file",
@@ -317,7 +305,7 @@ enc_usage(void)
317{ 305{
318 fprintf(stderr, "usage: enc -ciphername [-AadePp] [-base64] " 306 fprintf(stderr, "usage: enc -ciphername [-AadePp] [-base64] "
319 "[-bufsize number] [-debug]\n" 307 "[-bufsize number] [-debug]\n"
320 " [-engine id] [-in file] [-iv IV] [-K key] [-k password]\n" 308 " [-in file] [-iv IV] [-K key] [-k password]\n"
321 " [-kfile file] [-md digest] [-none] [-nopad] [-nosalt]\n" 309 " [-kfile file] [-md digest] [-none] [-nopad] [-nosalt]\n"
322 " [-out file] [-pass arg] [-S salt] [-salt]\n\n"); 310 " [-out file] [-pass arg] [-S salt] [-salt]\n\n");
323 options_usage(enc_options); 311 options_usage(enc_options);
@@ -413,10 +401,6 @@ enc_main(int argc, char **argv)
413 enc_config.keystr = buf; 401 enc_config.keystr = buf;
414 } 402 }
415 403
416#ifndef OPENSSL_NO_ENGINE
417 setup_engine(bio_err, enc_config.engine, 0);
418#endif
419
420 if (enc_config.md != NULL && 404 if (enc_config.md != NULL &&
421 (dgst = EVP_get_digestbyname(enc_config.md)) == NULL) { 405 (dgst = EVP_get_digestbyname(enc_config.md)) == NULL) {
422 BIO_printf(bio_err, 406 BIO_printf(bio_err,