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/f_string.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/f_string.c')
-rw-r--r-- | src/lib/libcrypto/asn1/f_string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/f_string.c b/src/lib/libcrypto/asn1/f_string.c index f7d36adac7..f4bee15335 100644 --- a/src/lib/libcrypto/asn1/f_string.c +++ b/src/lib/libcrypto/asn1/f_string.c | |||
@@ -149,15 +149,15 @@ int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size) | |||
149 | if (num+i > slen) | 149 | if (num+i > slen) |
150 | { | 150 | { |
151 | if (s == NULL) | 151 | if (s == NULL) |
152 | sp=(unsigned char *)OPENSSL_malloc( | 152 | sp=(unsigned char *)malloc( |
153 | (unsigned int)num+i*2); | 153 | (unsigned int)num+i*2); |
154 | else | 154 | else |
155 | sp=(unsigned char *)OPENSSL_realloc(s, | 155 | sp=(unsigned char *)realloc(s, |
156 | (unsigned int)num+i*2); | 156 | (unsigned int)num+i*2); |
157 | if (sp == NULL) | 157 | if (sp == NULL) |
158 | { | 158 | { |
159 | ASN1err(ASN1_F_A2I_ASN1_STRING,ERR_R_MALLOC_FAILURE); | 159 | ASN1err(ASN1_F_A2I_ASN1_STRING,ERR_R_MALLOC_FAILURE); |
160 | if (s != NULL) OPENSSL_free(s); | 160 | if (s != NULL) free(s); |
161 | goto err; | 161 | goto err; |
162 | } | 162 | } |
163 | s=sp; | 163 | s=sp; |