diff --git a/CHANGES b/CHANGES index 591f132..2d81f95 100644 --- a/CHANGES +++ b/CHANGES @@ -18,6 +18,10 @@ porting: compilation on FreeBSD 10.1 with clang. Thanks to Emanuel Haupt for reporting this bug. + Socat failed to compile on platforms with OpenSSL without + DTLSv1_client_method or DTLSv1_server_method. + Thanks to Simon Matter for sending a patch. + testing: socks4echo.sh and socks4a-echo.sh hung with new bash with read -n diff --git a/sslcls.c b/sslcls.c index 3d5792a..db8f02f 100644 --- a/sslcls.c +++ b/sslcls.c @@ -143,6 +143,7 @@ const SSL_METHOD *sycTLSv1_2_server_method(void) { } #endif +#if HAVE_DTLSv1_client_method const SSL_METHOD *sycDTLSv1_client_method(void) { const SSL_METHOD *result; Debug("DTLSv1_client_method()"); @@ -150,7 +151,9 @@ const SSL_METHOD *sycDTLSv1_client_method(void) { Debug1("DTLSv1_client_method() -> %p", result); return result; } +#endif +#if HAVE_DTLSv1_server_method const SSL_METHOD *sycDTLSv1_server_method(void) { const SSL_METHOD *result; Debug("DTLSv1_server_method()"); @@ -158,6 +161,7 @@ const SSL_METHOD *sycDTLSv1_server_method(void) { Debug1("DTLSv1_server_method() -> %p", result); return result; } +#endif SSL_CTX *sycSSL_CTX_new(const SSL_METHOD *method) { SSL_CTX *result;