Could you tell me how to use this option ? in which function ?
I found something like below in the internet ( I did not find on OpenSSL
website )
SSL *s
...
#ifndef OPENSSL_NO_COMP
if (!(s->options & SSL_OP_NO_COMPRESSION))
len += SSL3_RT_MAX_COMPRESSED_OVERHEAD;
but I do not know how to write in my source code. My source code is very
simple :
cli_meth = TLSv1_method();
cli_ctx = SSL_CTX_new(cli_meth);
SSL *cli_ssl = SSL_new(cli_ctx);
SSL_set_fd(cli_ssl, s_cli)
SSL_connect(cli_ssl)
etc ...
Thanks.
2011/3/15 Dave Thompson <[email protected]>
> > From: [email protected] On Behalf Of ikuzar
> > Sent: Monday, 14 March, 2011 11:48
>
> > I 'd like to know how to desable data compression procedure.
> > The compression flag is set to "yes" in tcp stream.
>
> It isn't really "in" the "stream". SSL optional compression is
> negotiated during the handshake, along with the ciphersuite, and
> then applies to all subsequent data until/unless renegotiated.
>
> > In fact, I would like to observe difference between plain text
> > ( by setting NULL-SHA ) and cipher text ( by setting AES256-SHA )
> > using wireshark. I cannot make this observation if data is compressed.
>
> Option SSL_OP_NO_COMPRESSION is commented as
> /* Don't use compression even if supported */
> and is used in what looks like the right places.
>
> Alternatively, if either client or server is using an openssl
> built without zlib available, it won't agree to compression.
>
>
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [email protected]
> Automated List Manager [email protected]
>