diff options
| author | beck <> | 2014-04-17 13:37:50 +0000 |
|---|---|---|
| committer | beck <> | 2014-04-17 13:37:50 +0000 |
| commit | 6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd (patch) | |
| tree | 7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/asn1/tasn_dec.c | |
| parent | 4d13fb9c7b5ac7311d7031173c21ab0121388413 (diff) | |
| download | openbsd-6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd.tar.gz openbsd-6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd.tar.bz2 openbsd-6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd.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_dec.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/tasn_dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_dec.c b/src/lib/libcrypto/asn1/tasn_dec.c index 87d7dfdf5c..c594db9140 100644 --- a/src/lib/libcrypto/asn1/tasn_dec.c +++ b/src/lib/libcrypto/asn1/tasn_dec.c | |||
| @@ -910,7 +910,7 @@ static int asn1_d2i_ex_primitive(ASN1_VALUE **pval, | |||
| 910 | *in = p; | 910 | *in = p; |
| 911 | ret = 1; | 911 | ret = 1; |
| 912 | err: | 912 | err: |
| 913 | if (free_cont && buf.data) OPENSSL_free(buf.data); | 913 | if (free_cont && buf.data) free(buf.data); |
| 914 | return ret; | 914 | return ret; |
| 915 | } | 915 | } |
| 916 | 916 | ||
| @@ -1046,7 +1046,7 @@ int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, | |||
| 1046 | if (*free_cont) | 1046 | if (*free_cont) |
| 1047 | { | 1047 | { |
| 1048 | if (stmp->data) | 1048 | if (stmp->data) |
| 1049 | OPENSSL_free(stmp->data); | 1049 | free(stmp->data); |
| 1050 | stmp->data = (unsigned char *)cont; /* UGLY CAST! RL */ | 1050 | stmp->data = (unsigned char *)cont; /* UGLY CAST! RL */ |
| 1051 | stmp->length = len; | 1051 | stmp->length = len; |
| 1052 | *free_cont = 0; | 1052 | *free_cont = 0; |
