curl 7.19.5 openssl algorithm problem [PATCH]
From curl's CVS log: http://cool.haxx.se/cvs.cgi/curl/lib/ssluse.c#rev1.229
you [curl] replaced the old SSLeay_add_ssl_algorithms() call with OpenSSL_add_all_algorithms(), however unlike the name suggests, the second function is not a superset of the first. When using SSL both these functions will need to be called in order to offer complete functionality.
This patch fixes the 7.19 breakage of secure (no -k or --insecure flags passed) https invocations of the curl binary when connecting to a server with certificates with a non-MD5 or SHA-1 signature algorithm, like SHA-2. The older curl recipes are unaffected by this.
Marc
commit 9644286f7de51577ba8e2348d4c1ab37f9a1657c
Author: Marc Olzheim <[email protected]> Date: Mon Aug 10 11:14:06 2009 +0200
Add curl-add_all_algorithms.patch to 7.19.5 recipe. Fixes curl artifact id 2825989
https://sourceforge.net/tracker/index.php?func=detail&aid=2825989&group_id=976&atid=100976
recipes/curl/curl_7.19.5.bb +2 -1
@@ -1,5 +1,6 @@ require curl-common.inc require curl-target.inc -SRC_URI += "file://off_t_abi_fix.patch;patch=1;pnum=0" +SRC_URI += "file://off_t_abi_fix.patch;patch=1;pnum=0 \ + file://curl-add_all_algorithms.patch;patch=1" PR = "r0"
recipes/curl/files/curl-add_all_algorithms.patch new file +22 -0
@@ -0,0 +1,22 @@ +--- curl-7.19.5/lib/ssluse.c 2009-01-26 15:36:22.000000000 +0100 ++++ curl-7.19.5/lib/ssluse.c 2009-07-23 15:44:12.000000000 +0200 +@@ -58,6 +58,7 @@ + #ifdef USE_SSLEAY + + #ifdef USE_OPENSSL ++#include <openssl/evp.h> + #include <openssl/rand.h> + #include <openssl/x509v3.h> + #else +@@ -627,6 +628,11 @@ + /* Lets get nice error messages */ + SSL_load_error_strings(); + ++#ifdef USE_OPENSSL ++ /* Load all algorithms (including SHA2) */ ++ OpenSSL_add_all_algorithms(); ++#endif /* USE_OPENSSL */ ++ + /* Setup all the global SSL stuff */ + if(!SSLeay_add_ssl_algorithms()) + return 0;
Quoted 8 lines · On Monday 10 August 2009 14:12:34 Marc Olzheim wrote:
From curl's CVS log: http://cool.haxx.se/cvs.cgi/curl/lib/ssluse.c#rev1.229
you [curl] replaced the old
SSLeay_add_ssl_algorithms()call withOpenSSL_add_all_algorithms(), however unlike the name suggests, the second function is not a superset of the first. When using SSL both these functions will need to be called in order to offer complete functionality.
Quoted 4 lines
This patch fixes the 7.19 breakage of secure (no -k or --insecure flags passed) https invocations of the curl binary when connecting to a server with certificates with a non-MD5 or SHA-1 signature algorithm, like SHA-2. The older curl recipes are unaffected by this.
Great. You should have bumped the PR of the recipe as well. If the content of the package change, the PR should be bumped so people could upgrade the resulting packages.