diff options
author | Ben Laurie <ben@openssl.org> | 2001-09-02 20:05:27 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2001-09-02 20:05:27 +0000 |
commit | 26188931147826e280c73ac2692081ce230885c6 (patch) | |
tree | cad4789b556b6ba313d41bd5c4a63f03b9a8a396 /crypto/ex_data.c | |
parent | 36026dfc0103b289b53b1ae9307cfd634b97afae (diff) |
Make MD functions take EVP_MD_CTX * instead of void *, add copy() function.
Diffstat (limited to 'crypto/ex_data.c')
-rw-r--r-- | crypto/ex_data.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/ex_data.c b/crypto/ex_data.c index af8ee704d7..56bd8cf0c2 100644 --- a/crypto/ex_data.c +++ b/crypto/ex_data.c @@ -226,9 +226,8 @@ static int ex_data_check(void) #define EX_DATA_CHECK(iffail) if(!ex_data && !ex_data_check()) {iffail} /* This "inner" callback is used by the callback function that follows it */ -static void def_cleanup_util_cb(void *a_void) +static void def_cleanup_util_cb(CRYPTO_EX_DATA_FUNCS *v) { - CRYPTO_EX_DATA_FUNCS *v = (CRYPTO_EX_DATA_FUNCS *)a_void; OPENSSL_free(v); } @@ -499,7 +498,7 @@ int CRYPTO_ex_data_new_class(void) void CRYPTO_cleanup_all_ex_data(void) { IMPL_CHECK - return EX_IMPL(cleanup)(); + EX_IMPL(cleanup)(); } /* Inside an existing class, get/register a new index. */ @@ -537,7 +536,7 @@ int CRYPTO_dup_ex_data(int class_index, CRYPTO_EX_DATA *to, void CRYPTO_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad) { IMPL_CHECK - return EX_IMPL(free_ex_data)(class_index, obj, ad); + EX_IMPL(free_ex_data)(class_index, obj, ad); } /* For a given CRYPTO_EX_DATA variable, set the value corresponding to a |