--- elinks-0.12pre6-orig/configure.in +++ elinks-0.12pre6/configure.in @@ -1026,6 +1026,9 @@ if test "$cf_result" != yes; then AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[SSLeay_add_ssl_algorithms()]])],[cf_result=yes],[cf_result=no]) fi + if test "$cf_result" != yes; then + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[OpenSSL_version_num()]])],[cf_result=yes],[cf_result=no]) + fi fi done --- elinks-0.12pre6-orig/src/network/ssl/ssl.c +++ elinks-0.12pre6/src/network/ssl/ssl.c @@ -7,6 +7,7 @@ #ifdef CONFIG_OPENSSL #include #include +#include #elif defined(CONFIG_GNUTLS) #include #include @@ -61,7 +62,9 @@ } #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERION_NUMBER SSLeay_add_ssl_algorithms(); +#endif context = SSL_CTX_new(SSLv23_client_method()); SSL_CTX_set_options(context, SSL_OP_ALL); SSL_CTX_set_default_verify_paths(context);