BB: freeradius2: fix disabling of OpenSSL version check

The previously added patch for removing the check accidentally disabled
the library init as well.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2016-01-10 13:53:45 +01:00
parent ee6369a645
commit 4e93e94379
1 changed files with 15 additions and 4 deletions

View File

@ -38,14 +38,25 @@
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)
{
+#if 0
long ssl_linked;
- 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;
+
ssl_linked = SSLeay();
if (ssl_linked != ssl_built) {
@@ -74,6 +75,7 @@ int ssl_check_version(int allow_vulnerab
return -1;
}