summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/store/str_meth.c
diff options
context:
space:
mode:
authorbeck <>2014-04-17 13:37:50 +0000
committerbeck <>2014-04-17 13:37:50 +0000
commitbddb7c686e3d1aeb156722adc64b6c35ae720f87 (patch)
tree7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/store/str_meth.c
parentecec66222d758996a4ff2671ca5026d9ede5ef76 (diff)
downloadopenbsd-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_meth.c')
-rw-r--r--src/lib/libcrypto/store/str_meth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/store/str_meth.c b/src/lib/libcrypto/store/str_meth.c
index a46de03a26..8944824618 100644
--- a/src/lib/libcrypto/store/str_meth.c
+++ b/src/lib/libcrypto/store/str_meth.c
@@ -62,7 +62,7 @@
62 62
63STORE_METHOD *STORE_create_method(char *name) 63STORE_METHOD *STORE_create_method(char *name)
64 { 64 {
65 STORE_METHOD *store_method = (STORE_METHOD *)OPENSSL_malloc(sizeof(STORE_METHOD)); 65 STORE_METHOD *store_method = (STORE_METHOD *)malloc(sizeof(STORE_METHOD));
66 66
67 if (store_method) 67 if (store_method)
68 { 68 {
@@ -78,9 +78,9 @@ STORE_METHOD *STORE_create_method(char *name)
78void STORE_destroy_method(STORE_METHOD *store_method) 78void STORE_destroy_method(STORE_METHOD *store_method)
79 { 79 {
80 if (!store_method) return; 80 if (!store_method) return;
81 OPENSSL_free(store_method->name); 81 free(store_method->name);
82 store_method->name = NULL; 82 store_method->name = NULL;
83 OPENSSL_free(store_method); 83 free(store_method);
84 } 84 }
85 85
86int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR init_f) 86int STORE_method_set_initialise_function(STORE_METHOD *sm, STORE_INITIALISE_FUNC_PTR init_f)