diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2014-04-17 13:37:51 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2014-04-17 13:37:51 +0000 |
commit | 798a6f0972ce4f8ea25aa987dc43e626dc6d4087 (patch) | |
tree | 557371c7b1514332c466ec6233d3e6af96c88520 /lib/libcrypto/bio/bss_bio.c | |
parent | eea79ffdb77e3dd4cdbd3f98ed1b44d9522496fa (diff) |
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 'lib/libcrypto/bio/bss_bio.c')
-rw-r--r-- | lib/libcrypto/bio/bss_bio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libcrypto/bio/bss_bio.c b/lib/libcrypto/bio/bss_bio.c index a74fcfdabc5..4d93aba0a4b 100644 --- a/lib/libcrypto/bio/bss_bio.c +++ b/lib/libcrypto/bio/bss_bio.c @@ -146,7 +146,7 @@ bio_new(BIO *bio) { struct bio_bio_st *b; - b = OPENSSL_malloc(sizeof *b); + b = malloc(sizeof *b); if (b == NULL) return 0; @@ -173,10 +173,10 @@ bio_free(BIO *bio) bio_destroy_pair(bio); if (b->buf != NULL) { - OPENSSL_free(b->buf); + free(b->buf); } - OPENSSL_free(b); + free(b); return 1; } @@ -516,7 +516,7 @@ bio_ctrl(BIO *bio, int cmd, long num, void *ptr) if (b->size != new_size) { if (b->buf) { - OPENSSL_free(b->buf); + free(b->buf); b->buf = NULL; } b->size = new_size; @@ -701,7 +701,7 @@ bio_make_pair(BIO *bio1, BIO *bio2) } if (b1->buf == NULL) { - b1->buf = OPENSSL_malloc(b1->size); + b1->buf = malloc(b1->size); if (b1->buf == NULL) { BIOerr(BIO_F_BIO_MAKE_PAIR, ERR_R_MALLOC_FAILURE); return 0; @@ -711,7 +711,7 @@ bio_make_pair(BIO *bio1, BIO *bio2) } if (b2->buf == NULL) { - b2->buf = OPENSSL_malloc(b2->size); + b2->buf = malloc(b2->size); if (b2->buf == NULL) { BIOerr(BIO_F_BIO_MAKE_PAIR, ERR_R_MALLOC_FAILURE); return 0; |