From e8b9651075317981902bbee8325179a7f1902e29 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 19 Mar 2013 16:44:50 -0700 Subject: [PATCH] hid the internal compress functions from the cryptlib versions --- src/internal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/internal.c b/src/internal.c index bb3825acd..305695a67 100644 --- a/src/internal.c +++ b/src/internal.c @@ -282,7 +282,7 @@ static INLINE void ato32(const byte* c, word32* u32) /* compress in to out, return out size or error */ - static int Compress(CYASSL* ssl, byte* in, int inSz, byte* out, int outSz) + static int myCompress(CYASSL* ssl, byte* in, int inSz, byte* out, int outSz) { int err; int currTotal = (int)ssl->c_stream.total_out; @@ -300,7 +300,7 @@ static INLINE void ato32(const byte* c, word32* u32) /* decompress in to out, returnn out size or error */ - static int DeCompress(CYASSL* ssl, byte* in, int inSz, byte* out, int outSz) + static int myDeCompress(CYASSL* ssl, byte* in,int inSz, byte* out,int outSz) { int err; int currTotal = (int)ssl->d_stream.total_out; @@ -4081,7 +4081,7 @@ int DoApplicationData(CYASSL* ssl, byte* input, word32* inOutIdx) #ifdef HAVE_LIBZ if (ssl->options.usingCompression) { - dataSz = DeCompress(ssl, rawData, dataSz, decomp, sizeof(decomp)); + dataSz = myDeCompress(ssl, rawData, dataSz, decomp, sizeof(decomp)); if (dataSz < 0) return dataSz; } #endif @@ -5095,7 +5095,7 @@ int SendData(CYASSL* ssl, const void* data, int sz) #ifdef HAVE_LIBZ if (ssl->options.usingCompression) { - buffSz = Compress(ssl, sendBuffer, buffSz, comp, sizeof(comp)); + buffSz = myCompress(ssl, sendBuffer, buffSz, comp, sizeof(comp)); if (buffSz < 0) { return buffSz; }