More SSL initialisation
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 7 May 2014 18:58:16 +0000 (19:58 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 7 May 2014 18:58:16 +0000 (19:58 +0100)
src/main/tls.c

index 03c8c3e..ff5c46d 100644 (file)
@@ -1943,9 +1943,8 @@ int tls_global_init(char const *acknowledged)
 
        SSL_load_error_strings();       /* readable error messages (examples show call before library_init) */
        SSL_library_init();             /* initialize library */
-#ifdef HAVE_OPENSSL_EVP_H
        OpenSSL_add_all_algorithms();   /* required for SHA2 in OpenSSL < 0.9.8o and 1.0.0.a */
-#endif
+       OPENSSL_config(NULL);
 
        if ((strcmp(acknowledged, libssl_defects[0].id) != 0) && (strcmp(acknowledged, "yes") != 0)) {
                bool bad = false;