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/asn1/tasn_new.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/asn1/tasn_new.c')
-rw-r--r-- | src/lib/libcrypto/asn1/tasn_new.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_new.c b/src/lib/libcrypto/asn1/tasn_new.c index 0d9e78cc7c..aab9ef08c4 100644 --- a/src/lib/libcrypto/asn1/tasn_new.c +++ b/src/lib/libcrypto/asn1/tasn_new.c | |||
@@ -160,7 +160,7 @@ static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, | |||
160 | } | 160 | } |
161 | if (!combine) | 161 | if (!combine) |
162 | { | 162 | { |
163 | *pval = OPENSSL_malloc(it->size); | 163 | *pval = malloc(it->size); |
164 | if (!*pval) | 164 | if (!*pval) |
165 | goto memerr; | 165 | goto memerr; |
166 | memset(*pval, 0, it->size); | 166 | memset(*pval, 0, it->size); |
@@ -188,7 +188,7 @@ static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, | |||
188 | } | 188 | } |
189 | if (!combine) | 189 | if (!combine) |
190 | { | 190 | { |
191 | *pval = OPENSSL_malloc(it->size); | 191 | *pval = malloc(it->size); |
192 | if (!*pval) | 192 | if (!*pval) |
193 | goto memerr; | 193 | goto memerr; |
194 | memset(*pval, 0, it->size); | 194 | memset(*pval, 0, it->size); |
@@ -354,7 +354,7 @@ int ASN1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it) | |||
354 | return 1; | 354 | return 1; |
355 | 355 | ||
356 | case V_ASN1_ANY: | 356 | case V_ASN1_ANY: |
357 | typ = OPENSSL_malloc(sizeof(ASN1_TYPE)); | 357 | typ = malloc(sizeof(ASN1_TYPE)); |
358 | if (!typ) | 358 | if (!typ) |
359 | return 0; | 359 | return 0; |
360 | typ->value.ptr = NULL; | 360 | typ->value.ptr = NULL; |