Fixed API for old openssl versions < 1.0.0

This commit is contained in:
Armin Novak 2016-02-05 11:52:07 +01:00
parent b6b0f57a88
commit f4568295e9

View File

@ -589,7 +589,11 @@ out_free:
return NULL; return NULL;
} }
#if OPENSSL_VERSION_NUMBER >= 0x010000000L
static BOOL tls_prepare(rdpTls* tls, BIO* underlying, const SSL_METHOD* method, int options, BOOL clientMode) static BOOL tls_prepare(rdpTls* tls, BIO* underlying, const SSL_METHOD* method, int options, BOOL clientMode)
#else
static BOOL tls_prepare(rdpTls* tls, BIO* underlying, SSL_METHOD* method, int options, BOOL clientMode)
#endif
{ {
rdpSettings* settings = tls->settings; rdpSettings* settings = tls->settings;