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/comp/comp_lib.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/comp/comp_lib.c')
-rw-r--r-- | src/lib/libcrypto/comp/comp_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/comp/comp_lib.c b/src/lib/libcrypto/comp/comp_lib.c index b60ae371e8..feb07ea881 100644 --- a/src/lib/libcrypto/comp/comp_lib.c +++ b/src/lib/libcrypto/comp/comp_lib.c | |||
@@ -8,7 +8,7 @@ COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) | |||
8 | { | 8 | { |
9 | COMP_CTX *ret; | 9 | COMP_CTX *ret; |
10 | 10 | ||
11 | if ((ret=(COMP_CTX *)OPENSSL_malloc(sizeof(COMP_CTX))) == NULL) | 11 | if ((ret=(COMP_CTX *)malloc(sizeof(COMP_CTX))) == NULL) |
12 | { | 12 | { |
13 | /* ZZZZZZZZZZZZZZZZ */ | 13 | /* ZZZZZZZZZZZZZZZZ */ |
14 | return(NULL); | 14 | return(NULL); |
@@ -17,7 +17,7 @@ COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) | |||
17 | ret->meth=meth; | 17 | ret->meth=meth; |
18 | if ((ret->meth->init != NULL) && !ret->meth->init(ret)) | 18 | if ((ret->meth->init != NULL) && !ret->meth->init(ret)) |
19 | { | 19 | { |
20 | OPENSSL_free(ret); | 20 | free(ret); |
21 | ret=NULL; | 21 | ret=NULL; |
22 | } | 22 | } |
23 | return(ret); | 23 | return(ret); |
@@ -31,7 +31,7 @@ void COMP_CTX_free(COMP_CTX *ctx) | |||
31 | if (ctx->meth->finish != NULL) | 31 | if (ctx->meth->finish != NULL) |
32 | ctx->meth->finish(ctx); | 32 | ctx->meth->finish(ctx); |
33 | 33 | ||
34 | OPENSSL_free(ctx); | 34 | free(ctx); |
35 | } | 35 | } |
36 | 36 | ||
37 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, | 37 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, |