summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-03-02 10:22:07 +0000
committertb <>2024-03-02 10:22:07 +0000
commit5a00ce7e0fdf4ebc1ab7bd8381c2bada8bf1b5c7 (patch)
treee5d97c80fd96d893f9af878bedbae28a61746942
parentc1a3226b7cdc1e03728f3a1e4a2ce04c16131718 (diff)
downloadopenbsd-5a00ce7e0fdf4ebc1ab7bd8381c2bada8bf1b5c7.tar.gz
openbsd-5a00ce7e0fdf4ebc1ab7bd8381c2bada8bf1b5c7.tar.bz2
openbsd-5a00ce7e0fdf4ebc1ab7bd8381c2bada8bf1b5c7.zip
Simplify engine.h
Garbage collect some more of this former horror show. ok jsing
-rw-r--r--src/lib/libcrypto/engine/engine.h46
1 files changed, 1 insertions, 45 deletions
diff --git a/src/lib/libcrypto/engine/engine.h b/src/lib/libcrypto/engine/engine.h
index bb5112a02b..20398f8d7f 100644
--- a/src/lib/libcrypto/engine/engine.h
+++ b/src/lib/libcrypto/engine/engine.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: engine.h,v 1.43 2023/11/19 15:41:46 tb Exp $ */ 1/* $OpenBSD: engine.h,v 1.44 2024/03/02 10:22:07 tb Exp $ */
2/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL 2/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -66,22 +66,8 @@
66 66
67#include <openssl/opensslconf.h> 67#include <openssl/opensslconf.h>
68 68
69#include <openssl/bn.h>
70#ifndef OPENSSL_NO_DH
71#include <openssl/dh.h>
72#endif
73#ifndef OPENSSL_NO_DSA
74#include <openssl/dsa.h>
75#endif
76#ifndef OPENSSL_NO_EC
77#include <openssl/ec.h>
78#endif
79#include <openssl/err.h> 69#include <openssl/err.h>
80#ifndef OPENSSL_NO_RSA
81#include <openssl/rsa.h>
82#endif
83#include <openssl/ui.h> 70#include <openssl/ui.h>
84#include <openssl/x509.h>
85 71
86#include <openssl/ossl_typ.h> 72#include <openssl/ossl_typ.h>
87 73
@@ -102,36 +88,6 @@ extern "C" {
102#define ENGINE_METHOD_ALL (unsigned int)0xFFFF 88#define ENGINE_METHOD_ALL (unsigned int)0xFFFF
103#define ENGINE_METHOD_NONE (unsigned int)0x0000 89#define ENGINE_METHOD_NONE (unsigned int)0x0000
104 90
105#define ENGINE_TABLE_FLAG_NOINIT (unsigned int)0x0001
106
107#define ENGINE_FLAGS_MANUAL_CMD_CTRL (int)0x0002
108#define ENGINE_FLAGS_BY_ID_COPY (int)0x0004
109#define ENGINE_FLAGS_NO_REGISTER_ALL (int)0x0008
110#define ENGINE_CMD_FLAG_NUMERIC (unsigned int)0x0001
111#define ENGINE_CMD_FLAG_STRING (unsigned int)0x0002
112#define ENGINE_CMD_FLAG_NO_INPUT (unsigned int)0x0004
113#define ENGINE_CMD_FLAG_INTERNAL (unsigned int)0x0008
114
115#define ENGINE_CTRL_SET_LOGSTREAM 1
116#define ENGINE_CTRL_SET_PASSWORD_CALLBACK 2
117#define ENGINE_CTRL_HUP 3
118#define ENGINE_CTRL_SET_USER_INTERFACE 4
119#define ENGINE_CTRL_SET_CALLBACK_DATA 5
120#define ENGINE_CTRL_LOAD_CONFIGURATION 6
121#define ENGINE_CTRL_LOAD_SECTION 7
122
123#define ENGINE_CTRL_HAS_CTRL_FUNCTION 10
124#define ENGINE_CTRL_GET_FIRST_CMD_TYPE 11
125#define ENGINE_CTRL_GET_NEXT_CMD_TYPE 12
126#define ENGINE_CTRL_GET_CMD_FROM_NAME 13
127#define ENGINE_CTRL_GET_NAME_LEN_FROM_CMD 14
128#define ENGINE_CTRL_GET_NAME_FROM_CMD 15
129#define ENGINE_CTRL_GET_DESC_LEN_FROM_CMD 16
130#define ENGINE_CTRL_GET_DESC_FROM_CMD 17
131#define ENGINE_CTRL_GET_CMD_FLAGS 18
132
133#define ENGINE_CMD_BASE 200
134
135/* 91/*
136 * Prototypes for the stub functions in engine_stubs.c. They are provided to 92 * Prototypes for the stub functions in engine_stubs.c. They are provided to
137 * build M2Crypto, Dovecot, apr-utils without patching. 93 * build M2Crypto, Dovecot, apr-utils without patching.