BB: freeradius2: fix disabling of OpenSSL version check
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 10 Jan 2016 12:53:45 +0000 (13:53 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 10 Jan 2016 12:58:05 +0000 (13:58 +0100)
The previously added patch for removing the check accidentally disabled
the library init as well.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
net/freeradius2/patches/010-disable-openssl-check.patch

index d0da5f403eea29e9ae6be2ff127236eed110f859..bb9932ead9b1583b8962500b5ad402354fc0aaad 100644 (file)
      LDFLAGS="$old_LDFLAGS"
 --- a/src/main/version.c
 +++ b/src/main/version.c
-@@ -43,6 +43,7 @@ static long ssl_built = OPENSSL_VERSION_
+@@ -43,8 +43,6 @@ static long ssl_built = OPENSSL_VERSION_
   */
  int ssl_check_version(int allow_vulnerable)
  {
+-      long ssl_linked;
+-
+       /*
+        *      Initialize the library before calling any library
+        *      functions.
+@@ -52,6 +50,9 @@ int ssl_check_version(int allow_vulnerab
+       SSL_library_init();
+       SSL_load_error_strings();
 +#if 0
-       long ssl_linked;
++      long ssl_linked;
++
+       ssl_linked = SSLeay();
  
-       /*
+       if (ssl_linked != ssl_built) {
 @@ -74,6 +75,7 @@ int ssl_check_version(int allow_vulnerab
                        return -1;
                }