Blame SOURCES/wpa_supplicant-openssl-more-algs.patch

a6b4ce
diff -up wpa_supplicant-0.7.3/src/crypto/tls_openssl.c.more-openssl-algs wpa_supplicant-0.7.3/src/crypto/tls_openssl.c
a6b4ce
--- wpa_supplicant-0.7.3/src/crypto/tls_openssl.c.more-openssl-algs	2010-09-07 10:43:39.000000000 -0500
a6b4ce
+++ wpa_supplicant-0.7.3/src/crypto/tls_openssl.c	2010-12-08 10:01:02.967664004 -0600
a6b4ce
@@ -710,6 +710,11 @@ void * tls_init(const struct tls_config 
a6b4ce
 #endif /* OPENSSL_FIPS */
a6b4ce
 #endif /* CONFIG_FIPS */
a6b4ce
 		SSL_load_error_strings();
a6b4ce
+		/* Only add potentially weak hashes and encryption algorithms
a6b4ce
+		 * when FIPS mode is not enabled.
a6b4ce
+		 */
a6b4ce
+		if (!conf || !conf->fips_mode)
a6b4ce
+			OpenSSL_add_all_algorithms();
a6b4ce
 		SSL_library_init();
a6b4ce
 #if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_SHA256)
a6b4ce
 		EVP_add_digest(EVP_sha256());
a6b4ce