Problems building libcurl 7.21.2 on Ubuntu 11.10 (Hiphop)

随声附和 提交于 2019-12-03 22:14:59

Ubuntu 11.10 uses OpenSSL v1.0. OpenSSL v1.0 has (finally!) disabled SSLv2 support entirely.

Curl can build against nosslv2 OpenSSL starting from 7.21.5.

You can port the changes in 7.21.5 that allow such builds back to your custom libcurl. Alternatively, you can build a private version of OpenSSL that includes SSLv2 support, and link your custom libcurl against it.

I had the same problem on 11.10. @n.m was exactly right on this problem.... I inserted the following lines of code:

#ifdef OPENSSL_NO_SSL2
   failf(data, "openSSL was compiled without SSLv2 support");
   return CURLE_SSL_CONNECT_ERROR;
#endif

after line 1462

Please find these lines of code here : github.com/bagder/curl/commit/26b487a5d6ed9da5bc8e4a134a88d3125884b852

in curl/lib/ssluse.c

recompiled and built... Seems to work now!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!