summaryrefslogtreecommitdiffstats
path: root/crypto/ossl_typ.h
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2004-05-17 18:39:00 +0000
committerGeoff Thorpe <geoff@openssl.org>2004-05-17 18:39:00 +0000
commit210a21bc8dd3f91ffd12b3ac48ffaf490b4a1beb (patch)
tree62800d124cb65cfb477b68820954d86c152069b7 /crypto/ossl_typ.h
parent678c1e025bcfb70b32c50dc1c9aba7e522a1fd70 (diff)
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.h9
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 */