4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-02 14:19:34 +00:00

Fix build with libressl

libressl removed the SSL Compression functionality (which might
be considered insecure) and thus also compress_meth.
SSL_SESSION_get_compress_id is just a stub in libressl which always
returns 0 and in openssl it returns compress_meth.

REVIEW: 121107
This commit is contained in:
Heiko Becker 2014-10-20 14:46:34 +02:00 committed by Ivan Romanov
parent f8fe237c3c
commit 593de6855a

@ -5805,7 +5805,7 @@ public:
{
SessionInfo sessInfo;
sessInfo.isCompressed = (0 != ssl->session->compress_meth);
sessInfo.isCompressed = (0 != SSL_SESSION_get_compress_id(ssl->session));
if (ssl->version == TLS1_VERSION)
sessInfo.version = TLS::TLS_v1;