src/wolfSSL/src/internal.c
static int InitStreams(WOLFSSL* ssl)
    {
        ssl->c_stream.zalloc = (alloc_func)myAlloc;
        ssl->c_stream.zfree  = (free_func)myFree;
        ssl->c_stream.opaque = (voidpf)ssl->heap;

        if (deflateInit(&ssl->c_stream, Z_DEFAULT_COMPRESSION) != Z_OK)
            return ZLIB_INIT_ERROR;

        ssl->didStreamInit = 1;

        ssl->d_stream.zalloc = (alloc_func)myAlloc;
        ssl->d_stream.zfree  = (free_func)myFree;
        ssl->d_stream.opaque = (voidpf)ssl->heap;

        if (inflateInit(&ssl->d_stream) != Z_OK) return ZLIB_INIT_ERROR;

        return 0;
    }
/* init zlib comp/decomp streams, 0 on success */
init zlib comp/decomp streams, 0 on success
init zlib comp / decomp streams 0 on success
static int InitStreams(WOLFSSL* ssl)
    {
        ssl->c_stream.zalloc = (alloc_func)myAlloc;
        ssl->c_stream.zfree  = (free_func)myFree;
        ssl->c_stream.opaque = (voidpf)ssl->heap;
        if (deflateInit(&ssl->c_stream, Z_DEFAULT_COMPRESSION) != Z_OK)
            return ZLIB_INIT_ERROR;
        ssl->didStreamInit = 1;
        ssl->d_stream.zalloc = (alloc_func)myAlloc;
        ssl->d_stream.zfree  = (free_func)myFree;
        ssl->d_stream.opaque = (voidpf)ssl->heap;
        if (inflateInit(&ssl->d_stream) != Z_OK) return ZLIB_INIT_ERROR;
        return 0;
    }
static int InitStreams ( WOLFSSL * ssl ) { ssl -> c_stream . zalloc = ( alloc_func ) myAlloc ; ssl -> c_stream . zfree = ( free_func ) myFree ; ssl -> c_stream . opaque = ( voidpf ) ssl -> heap ; if ( deflateInit ( & ssl -> c_stream , Z_DEFAULT_COMPRESSION ) != Z_OK ) return ZLIB_INIT_ERROR ; ssl -> didStreamInit = 1 ; ssl -> d_stream . zalloc = ( alloc_func ) myAlloc ; ssl -> d_stream . zfree = ( free_func ) myFree ; ssl -> d_stream . opaque = ( voidpf ) ssl -> heap ; if ( inflateInit ( & ssl -> d_stream ) != Z_OK ) return ZLIB_INIT_ERROR ; return 0 ; }
init zlib comp/decomp streams, 0 on success
init zlib comp / decomp streams 0 on success