libfreerdp-crypto: only use SSL_OP_NO_COMPRESSION if it's defined.

Mac OS X 10.7 as well as recent Ubuntu installs don't have this flag,
so using it breaks the build.
This commit is contained in:
Dorian Johnson 2012-07-03 11:45:09 -05:00
parent 43554bf00b
commit bb1b964963

View File

@ -76,8 +76,10 @@ boolean tls_connect(rdpTls* tls)
* and the FreeRDP client, and caused major performance issues,
* which is why we're disabling it.
*/
#ifdef SSL_OP_NO_COMPRESSION
options |= SSL_OP_NO_COMPRESSION;
#endif
/**
* SSL_OP_TLS_BLOCK_PADDING_BUG:
*
@ -179,8 +181,10 @@ boolean tls_accept(rdpTls* tls, const char* cert_file, const char* privatekey_fi
* and the FreeRDP client, and caused major performance issues,
* which is why we're disabling it.
*/
#ifdef SSL_OP_NO_COMPRESSION
options |= SSL_OP_NO_COMPRESSION;
#endif
/**
* SSL_OP_TLS_BLOCK_PADDING_BUG:
*