diff options
Diffstat (limited to 'src/lib/libcrypto/ex_data.c')
-rw-r--r-- | src/lib/libcrypto/ex_data.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ex_data.c b/src/lib/libcrypto/ex_data.c index 3b11e7a556..5b2e345c27 100644 --- a/src/lib/libcrypto/ex_data.c +++ b/src/lib/libcrypto/ex_data.c | |||
@@ -138,8 +138,12 @@ | |||
138 | * | 138 | * |
139 | */ | 139 | */ |
140 | 140 | ||
141 | #include "cryptlib.h" | 141 | #include <stdio.h> |
142 | #include <stdlib.h> | ||
143 | #include <openssl/buffer.h> | ||
144 | #include <openssl/bio.h> | ||
142 | #include <openssl/lhash.h> | 145 | #include <openssl/lhash.h> |
146 | #include "cryptlib.h" | ||
143 | 147 | ||
144 | /* What an "implementation of ex_data functionality" looks like */ | 148 | /* What an "implementation of ex_data functionality" looks like */ |
145 | struct st_CRYPTO_EX_DATA_IMPL | 149 | struct st_CRYPTO_EX_DATA_IMPL |
@@ -283,7 +287,7 @@ static void def_cleanup_util_cb(CRYPTO_EX_DATA_FUNCS *funcs) | |||
283 | /* This callback is used in lh_doall to destroy all EX_CLASS_ITEM values from | 287 | /* This callback is used in lh_doall to destroy all EX_CLASS_ITEM values from |
284 | * "ex_data" prior to the ex_data hash table being itself destroyed. Doesn't do | 288 | * "ex_data" prior to the ex_data hash table being itself destroyed. Doesn't do |
285 | * any locking. */ | 289 | * any locking. */ |
286 | static void def_cleanup_cb(void *a_void) | 290 | static void def_cleanup_cb(const void *a_void) |
287 | { | 291 | { |
288 | EX_CLASS_ITEM *item = (EX_CLASS_ITEM *)a_void; | 292 | EX_CLASS_ITEM *item = (EX_CLASS_ITEM *)a_void; |
289 | sk_CRYPTO_EX_DATA_FUNCS_pop_free(item->meth, def_cleanup_util_cb); | 293 | sk_CRYPTO_EX_DATA_FUNCS_pop_free(item->meth, def_cleanup_util_cb); |
@@ -354,7 +358,7 @@ static int def_add_index(EX_CLASS_ITEM *item, long argl, void *argp, | |||
354 | } | 358 | } |
355 | } | 359 | } |
356 | toret = item->meth_num++; | 360 | toret = item->meth_num++; |
357 | (void)sk_CRYPTO_EX_DATA_FUNCS_set(item->meth, toret, a); | 361 | sk_CRYPTO_EX_DATA_FUNCS_set(item->meth, toret, a); |
358 | err: | 362 | err: |
359 | CRYPTO_w_unlock(CRYPTO_LOCK_EX_DATA); | 363 | CRYPTO_w_unlock(CRYPTO_LOCK_EX_DATA); |
360 | return toret; | 364 | return toret; |