diff options
author | Geoff Thorpe <geoff@openssl.org> | 2001-09-12 02:34:20 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2001-09-12 02:34:20 +0000 |
commit | 1a1422643baa22d6bf715c6afe1614c3c1ce1b12 (patch) | |
tree | 0e1cd06d035edd2376774e3bacf3a3cddf7b6a72 | |
parent | 409960491dd0f45d6cff4600ed9da994986768d2 (diff) |
ENGINE uses a very opaque design, so we can predeclare the structure type
in "types.h" so that very few headers will need to include engine.h,
generally only C files using API functions will need it (reducing
the header dependencies quite a lot).
-rw-r--r-- | crypto/engine/engine.h | 7 | ||||
-rw-r--r-- | crypto/types.h | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h index 644f00c778..99b378c9d4 100644 --- a/crypto/engine/engine.h +++ b/crypto/engine/engine.h @@ -259,13 +259,6 @@ typedef int (*BN_MOD_EXP_CRT)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx); -/* The list of "engine" types is a static array of (const ENGINE*) - * pointers (not dynamic because static is fine for now and we otherwise - * have to hook an appropriate load/unload function in to initialise and - * cleanup). */ -struct engine_st; -typedef struct engine_st ENGINE; - /* Generic function pointer */ typedef int (*ENGINE_GEN_FUNC_PTR)(); /* Generic function pointer taking no arguments */ diff --git a/crypto/types.h b/crypto/types.h index 310cf42f54..b3aa586b18 100644 --- a/crypto/types.h +++ b/crypto/types.h @@ -106,6 +106,8 @@ typedef struct X509_name_st X509_NAME; typedef struct x509_store_st X509_STORE; typedef struct x509_store_ctx_st X509_STORE_CTX; +typedef struct engine_st ENGINE; + /* If placed in pkcs12.h, we end up with a circular depency with pkcs7.h */ #define DECLARE_PKCS12_STACK_OF(type) /* Nothing */ #define IMPLEMENT_PKCS12_STACK_OF(type) /* Nothing */ |