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