diff options
author | Geoff Thorpe <geoff@openssl.org> | 2004-05-17 20:39:00 +0200 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2004-05-17 20:39:00 +0200 |
commit | 210a21bc8dd3f91ffd12b3ac48ffaf490b4a1beb (patch) | |
tree | 62800d124cb65cfb477b68820954d86c152069b7 /crypto/ossl_typ.h | |
parent | Moving opaque definitions to ossl_typ.h lets us reduce header dependencies. (diff) | |
download | openssl-210a21bc8dd3f91ffd12b3ac48ffaf490b4a1beb.tar.xz openssl-210a21bc8dd3f91ffd12b3ac48ffaf490b4a1beb.zip |
Reduce dependencies on crypto.h by moving the opaque definition of
CRYPTO_EX_DATA and the new/free/dup callback prototypes to ossl_typ.h.
Diffstat (limited to 'crypto/ossl_typ.h')
-rw-r--r-- | crypto/ossl_typ.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/ossl_typ.h b/crypto/ossl_typ.h index 86399c4ec0..9c335a1819 100644 --- a/crypto/ossl_typ.h +++ b/crypto/ossl_typ.h @@ -162,4 +162,13 @@ typedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE; #define DECLARE_PKCS12_STACK_OF(type) /* Nothing */ #define IMPLEMENT_PKCS12_STACK_OF(type) /* Nothing */ +typedef struct crypto_ex_data_st CRYPTO_EX_DATA; +/* Callback types for crypto.h */ +typedef int CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad, + int idx, long argl, void *argp); +typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, + int idx, long argl, void *argp); +typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d, + int idx, long argl, void *argp); + #endif /* def HEADER_OPENSSL_TYPES_H */ |