diff options
Diffstat (limited to 'src/lib/libcrypto/comp')
-rw-r--r-- | src/lib/libcrypto/comp/Makefile.ssl | 20 | ||||
-rw-r--r-- | src/lib/libcrypto/comp/comp.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/comp/comp_lib.c | 6 |
3 files changed, 16 insertions, 14 deletions
diff --git a/src/lib/libcrypto/comp/Makefile.ssl b/src/lib/libcrypto/comp/Makefile.ssl index 336864a995..39e7993416 100644 --- a/src/lib/libcrypto/comp/Makefile.ssl +++ b/src/lib/libcrypto/comp/Makefile.ssl | |||
@@ -83,17 +83,19 @@ clean: | |||
83 | 83 | ||
84 | c_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 84 | c_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
85 | c_rle.o: ../../include/openssl/bn.h ../../include/openssl/comp.h | 85 | c_rle.o: ../../include/openssl/bn.h ../../include/openssl/comp.h |
86 | c_rle.o: ../../include/openssl/crypto.h ../../include/openssl/objects.h | 86 | c_rle.o: ../../include/openssl/crypto.h ../../include/openssl/obj_mac.h |
87 | c_rle.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 87 | c_rle.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
88 | c_rle.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | 88 | c_rle.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h |
89 | c_rle.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
89 | c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 90 | c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
90 | c_zlib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h | 91 | c_zlib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h |
91 | c_zlib.o: ../../include/openssl/crypto.h ../../include/openssl/objects.h | 92 | c_zlib.o: ../../include/openssl/crypto.h ../../include/openssl/obj_mac.h |
92 | c_zlib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | 93 | c_zlib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
93 | c_zlib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | 94 | c_zlib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h |
95 | c_zlib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
94 | comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | 96 | comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h |
95 | comp_lib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h | 97 | comp_lib.o: ../../include/openssl/bn.h ../../include/openssl/comp.h |
96 | comp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/objects.h | 98 | comp_lib.o: ../../include/openssl/crypto.h ../../include/openssl/obj_mac.h |
97 | comp_lib.o: ../../include/openssl/opensslconf.h | 99 | comp_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h |
98 | comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | 100 | comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h |
99 | comp_lib.o: ../../include/openssl/stack.h | 101 | comp_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h |
diff --git a/src/lib/libcrypto/comp/comp.h b/src/lib/libcrypto/comp/comp.h index 811cb5833d..0922609542 100644 --- a/src/lib/libcrypto/comp/comp.h +++ b/src/lib/libcrypto/comp/comp.h | |||
@@ -2,12 +2,12 @@ | |||
2 | #ifndef HEADER_COMP_H | 2 | #ifndef HEADER_COMP_H |
3 | #define HEADER_COMP_H | 3 | #define HEADER_COMP_H |
4 | 4 | ||
5 | #include <openssl/crypto.h> | ||
6 | |||
5 | #ifdef __cplusplus | 7 | #ifdef __cplusplus |
6 | extern "C" { | 8 | extern "C" { |
7 | #endif | 9 | #endif |
8 | 10 | ||
9 | #include <openssl/crypto.h> | ||
10 | |||
11 | typedef struct comp_method_st | 11 | typedef struct comp_method_st |
12 | { | 12 | { |
13 | int type; /* NID for compression library */ | 13 | int type; /* NID for compression library */ |
diff --git a/src/lib/libcrypto/comp/comp_lib.c b/src/lib/libcrypto/comp/comp_lib.c index a67ef23bc0..beb98ce8cc 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 *)Malloc(sizeof(COMP_CTX))) == NULL) | 11 | if ((ret=(COMP_CTX *)OPENSSL_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 | Free(ret); | 20 | OPENSSL_free(ret); |
21 | ret=NULL; | 21 | ret=NULL; |
22 | } | 22 | } |
23 | #if 0 | 23 | #if 0 |
@@ -37,7 +37,7 @@ void COMP_CTX_free(COMP_CTX *ctx) | |||
37 | if (ctx->meth->finish != NULL) | 37 | if (ctx->meth->finish != NULL) |
38 | ctx->meth->finish(ctx); | 38 | ctx->meth->finish(ctx); |
39 | 39 | ||
40 | Free(ctx); | 40 | OPENSSL_free(ctx); |
41 | } | 41 | } |
42 | 42 | ||
43 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, | 43 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, |