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/bio/b_print.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/bio/b_print.c')
-rw-r--r-- | src/lib/libcrypto/bio/b_print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/b_print.c b/src/lib/libcrypto/bio/b_print.c index 55a5ca1a32..ff0089e82e 100644 --- a/src/lib/libcrypto/bio/b_print.c +++ b/src/lib/libcrypto/bio/b_print.c | |||
@@ -706,7 +706,7 @@ doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, | |||
706 | if (*buffer == NULL) { | 706 | if (*buffer == NULL) { |
707 | if (*maxlen == 0) | 707 | if (*maxlen == 0) |
708 | *maxlen = 1024; | 708 | *maxlen = 1024; |
709 | *buffer = OPENSSL_malloc(*maxlen); | 709 | *buffer = malloc(*maxlen); |
710 | if (*currlen > 0) { | 710 | if (*currlen > 0) { |
711 | assert(*sbuffer != NULL); | 711 | assert(*sbuffer != NULL); |
712 | memcpy(*buffer, *sbuffer, *currlen); | 712 | memcpy(*buffer, *sbuffer, *currlen); |
@@ -714,7 +714,7 @@ doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, | |||
714 | *sbuffer = NULL; | 714 | *sbuffer = NULL; |
715 | } else { | 715 | } else { |
716 | *maxlen += 1024; | 716 | *maxlen += 1024; |
717 | *buffer = OPENSSL_realloc(*buffer, *maxlen); | 717 | *buffer = realloc(*buffer, *maxlen); |
718 | } | 718 | } |
719 | } | 719 | } |
720 | /* What to do if *buffer is NULL? */ | 720 | /* What to do if *buffer is NULL? */ |
@@ -764,7 +764,7 @@ int BIO_vprintf (BIO *bio, const char *format, va_list args) | |||
764 | format, args); | 764 | format, args); |
765 | if (dynbuf) { | 765 | if (dynbuf) { |
766 | ret = BIO_write(bio, dynbuf, (int)retlen); | 766 | ret = BIO_write(bio, dynbuf, (int)retlen); |
767 | OPENSSL_free(dynbuf); | 767 | free(dynbuf); |
768 | } else { | 768 | } else { |
769 | ret = BIO_write(bio, hugebuf, (int)retlen); | 769 | ret = BIO_write(bio, hugebuf, (int)retlen); |
770 | } | 770 | } |