mirror of https://github.com/FreeRDP/FreeRDP
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:
parent
43554bf00b
commit
bb1b964963
|
@ -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:
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue