From: tb Date: Sat, 2 Mar 2024 10:22:07 +0000 (+0000) Subject: Simplify engine.h X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1e091ee9aec21ba88d79df6820558d531fa19405;p=openbsd Simplify engine.h Garbage collect some more of this former horror show. ok jsing --- diff --git a/lib/libcrypto/engine/engine.h b/lib/libcrypto/engine/engine.h index bb5112a02b0..20398f8d7fc 100644 --- a/lib/libcrypto/engine/engine.h +++ b/lib/libcrypto/engine/engine.h @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.h,v 1.43 2023/11/19 15:41:46 tb Exp $ */ +/* $OpenBSD: engine.h,v 1.44 2024/03/02 10:22:07 tb Exp $ */ /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL * project 2000. */ @@ -66,22 +66,8 @@ #include -#include -#ifndef OPENSSL_NO_DH -#include -#endif -#ifndef OPENSSL_NO_DSA -#include -#endif -#ifndef OPENSSL_NO_EC -#include -#endif #include -#ifndef OPENSSL_NO_RSA -#include -#endif #include -#include #include @@ -102,36 +88,6 @@ extern "C" { #define ENGINE_METHOD_ALL (unsigned int)0xFFFF #define ENGINE_METHOD_NONE (unsigned int)0x0000 -#define ENGINE_TABLE_FLAG_NOINIT (unsigned int)0x0001 - -#define ENGINE_FLAGS_MANUAL_CMD_CTRL (int)0x0002 -#define ENGINE_FLAGS_BY_ID_COPY (int)0x0004 -#define ENGINE_FLAGS_NO_REGISTER_ALL (int)0x0008 -#define ENGINE_CMD_FLAG_NUMERIC (unsigned int)0x0001 -#define ENGINE_CMD_FLAG_STRING (unsigned int)0x0002 -#define ENGINE_CMD_FLAG_NO_INPUT (unsigned int)0x0004 -#define ENGINE_CMD_FLAG_INTERNAL (unsigned int)0x0008 - -#define ENGINE_CTRL_SET_LOGSTREAM 1 -#define ENGINE_CTRL_SET_PASSWORD_CALLBACK 2 -#define ENGINE_CTRL_HUP 3 -#define ENGINE_CTRL_SET_USER_INTERFACE 4 -#define ENGINE_CTRL_SET_CALLBACK_DATA 5 -#define ENGINE_CTRL_LOAD_CONFIGURATION 6 -#define ENGINE_CTRL_LOAD_SECTION 7 - -#define ENGINE_CTRL_HAS_CTRL_FUNCTION 10 -#define ENGINE_CTRL_GET_FIRST_CMD_TYPE 11 -#define ENGINE_CTRL_GET_NEXT_CMD_TYPE 12 -#define ENGINE_CTRL_GET_CMD_FROM_NAME 13 -#define ENGINE_CTRL_GET_NAME_LEN_FROM_CMD 14 -#define ENGINE_CTRL_GET_NAME_FROM_CMD 15 -#define ENGINE_CTRL_GET_DESC_LEN_FROM_CMD 16 -#define ENGINE_CTRL_GET_DESC_FROM_CMD 17 -#define ENGINE_CTRL_GET_CMD_FLAGS 18 - -#define ENGINE_CMD_BASE 200 - /* * Prototypes for the stub functions in engine_stubs.c. They are provided to * build M2Crypto, Dovecot, apr-utils without patching.