Call OpenSSL_add_all_algorithms for better SHA2 support
When SHA2 was originally added to OpenSSL it only loaded if
OpenSSL_add_all_algorithms() was called, not by SSL_library_init().
This call ensures any OpenSSL version with SHA2 available will be able
to check newfanged server certificates.
Removed OpenSSL_add_all_algorithms because it's redundant to
SSL_library_init().
diff --git a/lib/https.c b/lib/https.c
index 9be12bb..57767a3 100644
--- a/lib/https.c
+++ b/lib/https.c
@@ -206,7 +206,7 @@
/* Initialize SSL context */
SSL_library_init();
SSL_load_error_strings();
- OpenSSL_add_ssl_algorithms();
+ OpenSSL_add_all_algorithms();
/* XXX - ape openssl s_client -rand for testing on ancient systems */
if (!RAND_status()) {