--- sslstate.cpp.ssl 2010-04-21 02:44:52.000000000 +0000 +++ sslstate.cpp 2010-04-21 02:47:01.000000000 +0000 @@ -28,7 +28,11 @@ SSL_library_init(); SSL_load_error_strings(); +#if OPENSSL_VERSION_NUMBER >= 0x1000000fL + method = (SSL_METHOD*) SSLv23_method(); +#else method = SSLv23_method(); +#endif if (!method) {