Hello,

There are two types of compression possible .
1. Stateful
2. Stateless

Where it is decided in Openssl source code that compression will be
stateful or stateless?
The openssl source code is very confusing. I could find all the function.
Most of them are in c_zlib.c

But I could not find the way what function is selected.
For example,  for expansion which of the following function is called?

1. (Stateful)
static int zlib_stateful_expand_block(COMP_CTX *ctx, unsigned char *out,
    unsigned int olen, unsigned char *in, unsigned int ilen)
or

2. (Stateless)
static int zlib_expand_block(COMP_CTX *ctx, unsigned char *out,
    unsigned int olen, unsigned char *in, unsigned int ilen)


Thank You!

-- 
Regards,
*Sebastian*

Reply via email to