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/x509v3/v3_lib.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/x509v3/v3_lib.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_lib.c b/src/lib/libcrypto/x509v3/v3_lib.c index 0f1e1d4422..0613ea7f22 100644 --- a/src/lib/libcrypto/x509v3/v3_lib.c +++ b/src/lib/libcrypto/x509v3/v3_lib.c | |||
@@ -133,7 +133,7 @@ int X509V3_EXT_add_alias(int nid_to, int nid_from) | |||
133 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,X509V3_R_EXTENSION_NOT_FOUND); | 133 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,X509V3_R_EXTENSION_NOT_FOUND); |
134 | return 0; | 134 | return 0; |
135 | } | 135 | } |
136 | if(!(tmpext = (X509V3_EXT_METHOD *)OPENSSL_malloc(sizeof(X509V3_EXT_METHOD)))) { | 136 | if(!(tmpext = (X509V3_EXT_METHOD *)malloc(sizeof(X509V3_EXT_METHOD)))) { |
137 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,ERR_R_MALLOC_FAILURE); | 137 | X509V3err(X509V3_F_X509V3_EXT_ADD_ALIAS,ERR_R_MALLOC_FAILURE); |
138 | return 0; | 138 | return 0; |
139 | } | 139 | } |
@@ -151,7 +151,7 @@ void X509V3_EXT_cleanup(void) | |||
151 | 151 | ||
152 | static void ext_list_free(X509V3_EXT_METHOD *ext) | 152 | static void ext_list_free(X509V3_EXT_METHOD *ext) |
153 | { | 153 | { |
154 | if(ext->ext_flags & X509V3_EXT_DYNAMIC) OPENSSL_free(ext); | 154 | if(ext->ext_flags & X509V3_EXT_DYNAMIC) free(ext); |
155 | } | 155 | } |
156 | 156 | ||
157 | /* Legacy function: we don't need to add standard extensions | 157 | /* Legacy function: we don't need to add standard extensions |