|
50 | 50 | # define _GNU_SOURCE |
51 | 51 | #endif |
52 | 52 |
|
53 | | -#include <openssl/engine.h> |
54 | | - |
55 | 53 | #if defined(ENABLE_QAT_HW_ECDH) || defined(ENABLE_QAT_SW_ECDH) |
56 | 54 | #define COPY_INT_PARAM(params, key, val) \ |
57 | 55 | p = OSSL_PARAM_locate_const(params, key); \ |
@@ -182,58 +180,6 @@ struct bignum_st { |
182 | 180 | int flags; |
183 | 181 | }; |
184 | 182 |
|
185 | | -typedef void (*ENGINE_DYNAMIC_ID)(void); |
186 | | - |
187 | | -/* |
188 | | - * This is a structure for storing implementations of various crypto |
189 | | - * algorithms and functions. |
190 | | - */ |
191 | | -struct engine_st { |
192 | | - const char *id; |
193 | | - const char *name; |
194 | | - const RSA_METHOD *rsa_meth; |
195 | | - const DSA_METHOD *dsa_meth; |
196 | | - const DH_METHOD *dh_meth; |
197 | | - const EC_KEY_METHOD *ec_meth; |
198 | | - const RAND_METHOD *rand_meth; |
199 | | - /* Cipher handling is via this callback */ |
200 | | - ENGINE_CIPHERS_PTR ciphers; |
201 | | - /* Digest handling is via this callback */ |
202 | | - ENGINE_DIGESTS_PTR digests; |
203 | | - /* Public key handling via this callback */ |
204 | | - ENGINE_PKEY_METHS_PTR pkey_meths; |
205 | | - /* ASN1 public key handling via this callback */ |
206 | | - ENGINE_PKEY_ASN1_METHS_PTR pkey_asn1_meths; |
207 | | - ENGINE_GEN_INT_FUNC_PTR destroy; |
208 | | - ENGINE_GEN_INT_FUNC_PTR init; |
209 | | - ENGINE_GEN_INT_FUNC_PTR finish; |
210 | | - ENGINE_CTRL_FUNC_PTR ctrl; |
211 | | - ENGINE_LOAD_KEY_PTR load_privkey; |
212 | | - ENGINE_LOAD_KEY_PTR load_pubkey; |
213 | | - ENGINE_SSL_CLIENT_CERT_PTR load_ssl_client_cert; |
214 | | - const ENGINE_CMD_DEFN *cmd_defns; |
215 | | - int flags; |
216 | | - /* reference count on the structure itself */ |
217 | | - QAT_CRYPTO_REF_COUNT struct_ref; |
218 | | - /* |
219 | | - * reference count on usability of the engine type. NB: This controls the |
220 | | - * loading and initialisation of any functionality required by this |
221 | | - * engine, whereas the previous count is simply to cope with |
222 | | - * (de)allocation of this structure. Hence, running_ref <= struct_ref at |
223 | | - * all times. |
224 | | - */ |
225 | | - int funct_ref; |
226 | | - /* A place to store per-ENGINE data */ |
227 | | - CRYPTO_EX_DATA ex_data; |
228 | | - /* Used to maintain the linked-list of engines. */ |
229 | | - struct engine_st *prev; |
230 | | - struct engine_st *next; |
231 | | - /* Used to maintain the linked-list of dynamic engines. */ |
232 | | - struct engine_st *prev_dyn; |
233 | | - struct engine_st *next_dyn; |
234 | | - ENGINE_DYNAMIC_ID dynamic_id; |
235 | | -}; |
236 | | - |
237 | 183 | /* |
238 | 184 | * This prints the engine's pointer address, "struct" or "funct" to |
239 | 185 | * indicate the reference type, the before and after reference count, and |
|
0 commit comments