diff options
author | beck <> | 2014-04-17 13:37:50 +0000 |
---|---|---|
committer | beck <> | 2014-04-17 13:37:50 +0000 |
commit | bddb7c686e3d1aeb156722adc64b6c35ae720f87 (patch) | |
tree | 7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/store/str_mem.c | |
parent | ecec66222d758996a4ff2671ca5026d9ede5ef76 (diff) | |
download | openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.gz openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.bz2 openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.zip |
Change library to use intrinsic memory allocation functions instead of
OPENSSL_foo wrappers. This changes:
OPENSSL_malloc->malloc
OPENSSL_free->free
OPENSSL_relloc->realloc
OPENSSL_freeFunc->free
Diffstat (limited to 'src/lib/libcrypto/store/str_mem.c')
-rw-r--r-- | src/lib/libcrypto/store/str_mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/store/str_mem.c b/src/lib/libcrypto/store/str_mem.c index 8ac4f7e55c..997e60fe93 100644 --- a/src/lib/libcrypto/store/str_mem.c +++ b/src/lib/libcrypto/store/str_mem.c | |||
@@ -222,7 +222,7 @@ static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type, | |||
222 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]) | 222 | OPENSSL_ITEM attributes[], OPENSSL_ITEM parameters[]) |
223 | { | 223 | { |
224 | struct mem_ctx_st *context = | 224 | struct mem_ctx_st *context = |
225 | (struct mem_ctx_st *)OPENSSL_malloc(sizeof(struct mem_ctx_st)); | 225 | (struct mem_ctx_st *)malloc(sizeof(struct mem_ctx_st)); |
226 | void *attribute_context = NULL; | 226 | void *attribute_context = NULL; |
227 | STORE_ATTR_INFO *attrs = NULL; | 227 | STORE_ATTR_INFO *attrs = NULL; |
228 | 228 | ||
@@ -336,7 +336,7 @@ static int mem_list_end(STORE *s, void *handle) | |||
336 | } | 336 | } |
337 | if (context && context->search_attributes) | 337 | if (context && context->search_attributes) |
338 | sk_STORE_ATTR_INFO_free(context->search_attributes); | 338 | sk_STORE_ATTR_INFO_free(context->search_attributes); |
339 | if (context) OPENSSL_free(context); | 339 | if (context) free(context); |
340 | return 1; | 340 | return 1; |
341 | } | 341 | } |
342 | static int mem_list_endp(STORE *s, void *handle) | 342 | static int mem_list_endp(STORE *s, void *handle) |