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/bio/bio_lib.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/bio/bio_lib.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bio_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c index 90f1b1c1ef..c226d943af 100644 --- a/src/lib/libcrypto/bio/bio_lib.c +++ b/src/lib/libcrypto/bio/bio_lib.c | |||
| @@ -68,13 +68,13 @@ BIO | |||
| 68 | { | 68 | { |
| 69 | BIO *ret = NULL; | 69 | BIO *ret = NULL; |
| 70 | 70 | ||
| 71 | ret = (BIO *)OPENSSL_malloc(sizeof(BIO)); | 71 | ret = (BIO *)malloc(sizeof(BIO)); |
| 72 | if (ret == NULL) { | 72 | if (ret == NULL) { |
| 73 | BIOerr(BIO_F_BIO_NEW, ERR_R_MALLOC_FAILURE); | 73 | BIOerr(BIO_F_BIO_NEW, ERR_R_MALLOC_FAILURE); |
| 74 | return (NULL); | 74 | return (NULL); |
| 75 | } | 75 | } |
| 76 | if (!BIO_set(ret, method)) { | 76 | if (!BIO_set(ret, method)) { |
| 77 | OPENSSL_free(ret); | 77 | free(ret); |
| 78 | ret = NULL; | 78 | ret = NULL; |
| 79 | } | 79 | } |
| 80 | return (ret); | 80 | return (ret); |
| @@ -136,7 +136,7 @@ BIO_free(BIO *a) | |||
| 136 | if ((a->method == NULL) || (a->method->destroy == NULL)) | 136 | if ((a->method == NULL) || (a->method->destroy == NULL)) |
| 137 | return (1); | 137 | return (1); |
| 138 | a->method->destroy(a); | 138 | a->method->destroy(a); |
| 139 | OPENSSL_free(a); | 139 | free(a); |
| 140 | return (1); | 140 | return (1); |
| 141 | } | 141 | } |
| 142 | 142 | ||
