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/libssl/bio_ssl.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/libssl/bio_ssl.c')
-rw-r--r-- | src/lib/libssl/bio_ssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/bio_ssl.c b/src/lib/libssl/bio_ssl.c index 65077aaa00..35463c73d4 100644 --- a/src/lib/libssl/bio_ssl.c +++ b/src/lib/libssl/bio_ssl.c | |||
@@ -105,7 +105,7 @@ ssl_new(BIO *bi) | |||
105 | { | 105 | { |
106 | BIO_SSL *bs; | 106 | BIO_SSL *bs; |
107 | 107 | ||
108 | bs = (BIO_SSL *)OPENSSL_malloc(sizeof(BIO_SSL)); | 108 | bs = (BIO_SSL *)malloc(sizeof(BIO_SSL)); |
109 | if (bs == NULL) { | 109 | if (bs == NULL) { |
110 | BIOerr(BIO_F_SSL_NEW, ERR_R_MALLOC_FAILURE); | 110 | BIOerr(BIO_F_SSL_NEW, ERR_R_MALLOC_FAILURE); |
111 | return (0); | 111 | return (0); |
@@ -134,7 +134,7 @@ ssl_free(BIO *a) | |||
134 | a->flags = 0; | 134 | a->flags = 0; |
135 | } | 135 | } |
136 | if (a->ptr != NULL) | 136 | if (a->ptr != NULL) |
137 | OPENSSL_free(a->ptr); | 137 | free(a->ptr); |
138 | return (1); | 138 | return (1); |
139 | } | 139 | } |
140 | 140 | ||