Set variable's type based on OpenSSL version.

This commit is contained in:
Lefteris Chatzimparmpas 2012-04-25 00:09:12 +03:00
parent 4e03494df6
commit 0d77e9d9a8
1 changed files with 4 additions and 0 deletions

View File

@ -85,7 +85,11 @@ open_secure_connection(session *ssn)
{
int r, e;
SSL_CTX *ctx;
#if OPENSSL_VERSION_NUMBER >= 0x1000000fL
const SSL_METHOD *method;
#else
SSL_METHOD *method;
#endif
method = NULL;