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/openssl.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/usr.bin/openssl/openssl.c') diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c index 97321f0cac..c85a807d29 100644 --- a/src/usr.bin/openssl/openssl.c +++ b/src/usr.bin/openssl/openssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openssl.c,v 1.6 2015/09/10 16:43:06 jsing Exp $ */ +/* $OpenBSD: openssl.c,v 1.7 2015/09/11 14:30:23 bcook Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -126,10 +126,6 @@ #include #include -#ifndef OPENSSL_NO_ENGINE -#include -#endif - #include "progs.h" #include "s_apps.h" @@ -162,9 +158,6 @@ FUNCTION functions[] = { { FUNC_TYPE_GENERAL, "crl", crl_main }, { FUNC_TYPE_GENERAL, "dgst", dgst_main }, { FUNC_TYPE_GENERAL, "enc", enc_main }, -#ifndef OPENSSL_NO_ENGINE - { FUNC_TYPE_GENERAL, "engine", engine_main }, -#endif { FUNC_TYPE_GENERAL, "errstr", errstr_main }, { FUNC_TYPE_GENERAL, "genpkey", genpkey_main }, { FUNC_TYPE_GENERAL, "nseq", nseq_main }, @@ -419,10 +412,6 @@ openssl_startup(void) SSL_library_init(); SSL_load_error_strings(); -#ifndef OPENSSL_NO_ENGINE - ENGINE_load_builtin_engines(); -#endif - setup_ui_method(); } @@ -433,11 +422,6 @@ openssl_shutdown(void) destroy_ui_method(); OBJ_cleanup(); EVP_cleanup(); - -#ifndef OPENSSL_NO_ENGINE - ENGINE_cleanup(); -#endif - CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); ERR_free_strings(); -- cgit v1.2.3-55-g6feb