]> granicus.if.org Git - curl/commitdiff
- Bug report #2825989 (http://curl.haxx.se/bug/view.cgi?id=2825989) pointed
authorDaniel Stenberg <daniel@haxx.se>
Sun, 26 Jul 2009 17:33:36 +0000 (17:33 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 26 Jul 2009 17:33:36 +0000 (17:33 +0000)
  out that OpenSSL-powered libcurl didn't support the SHA-2 digest algorithm,
  and provided the solution too: to use OpenSSL_add_all_algorithms() instead
  of the older SSLeay_* alternative. OpenSSL_add_all_algorithms was added in
  OpenSSL 0.9.5

CHANGES
RELEASE-NOTES
lib/ssluse.c

diff --git a/CHANGES b/CHANGES
index 9cabff0595442bd1006da824fbac648e8d010c15..0b5ec2536cb2f6841d5e4e39a203b8f00543a013 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,12 @@
 
                                   Changelog
 
+Daniel Stenberg (26 Jul 2009)
+- Bug report #2825989 (http://curl.haxx.se/bug/view.cgi?id=2825989) pointed
+  out that OpenSSL-powered libcurl didn't support the SHA-2 digest algorithm,
+  and provided the solution too: to use OpenSSL_add_all_algorithms() instead
+  of the older SSLeay_* alternative.
+
 Daniel Stenberg (23 Jul 2009)
 - Added CURLOPT_SSH_KNOWNHOSTS, CURLOPT_SSH_KEYFUNCTION, CURLOPT_SSH_KEYDATA.
   They introduce known_host support for SSH keys to libcurl. See docs for
index 0261cf8827df13971b18760c7f253a9723dff521..5f68c1bc501705e7cf9f04f688d408c14c2a33e7 100644 (file)
@@ -35,6 +35,7 @@ This release includes the following bugfixes:
  o auth problem over several hosts with re-used connection
  o improved the support for client certificates in libcurl+NSS
  o fix leak in gtls code
+ o missing algorithms in libcurl+OpenSSL
 
 This release includes the following known bugs:
 
index ea1e62da14f3ef3b0b6d2c5ac0fe7496bc207a6e..5c6e7302521c35e17936faf875d0c12eafad5cec 100644 (file)
@@ -636,9 +636,8 @@ int Curl_ossl_init(void)
   /* Lets get nice error messages */
   SSL_load_error_strings();
 
-  /* Setup all the global SSL stuff */
-  if(!SSLeay_add_ssl_algorithms())
-    return 0;
+  /* Init the global ciphers and digests */
+  OpenSSL_add_all_algorithms();
 
   return 1;
 }
@@ -653,8 +652,7 @@ void Curl_ossl_cleanup(void)
   /* Free the SSL error strings */
   ERR_free_strings();
 
-  /* EVP_cleanup() removes all ciphers and digests from the
-     table. */
+  /* EVP_cleanup() removes all ciphers and digests from the table. */
   EVP_cleanup();
 
 #ifdef HAVE_ENGINE_cleanup