diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2009-07-26 17:33:36 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2009-07-26 17:33:36 +0000 | 
| commit | b347a7a96e1518089264bf166e676f40cf525350 (patch) | |
| tree | 55d53cb337e1b6851feb210edfc8071c4d16b1d2 /lib | |
| parent | 240bfaa69e474da26e7f2ff4244f1e8d6a3a9234 (diff) | |
- 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. OpenSSL_add_all_algorithms was added in
  OpenSSL 0.9.5
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ssluse.c | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index ea1e62da1..5c6e73025 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -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  | 
