From 24f906cfc096befc3c6cc95d01f1d91d565f3971 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 12 Aug 2009 23:10:16 -0500 Subject: *Do not allow to run the server if openssl lib is outdated. --HG-- branch : trunk --- src/trinityrealm/Main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/trinityrealm/Main.cpp') diff --git a/src/trinityrealm/Main.cpp b/src/trinityrealm/Main.cpp index 1985009ea93..b400e9184cb 100644 --- a/src/trinityrealm/Main.cpp +++ b/src/trinityrealm/Main.cpp @@ -170,8 +170,11 @@ extern int main(int argc, char **argv) sLog.outDetail("%s (Library: %s)", OPENSSL_VERSION_TEXT, SSLeay_version(SSLEAY_VERSION)); if (SSLeay() < 0x009080bfL ) { - sLog.outDetail("WARNING: Outdated version of OpenSSL lib. Logins to server impossible!"); - sLog.outDetail("WARNING: Minimal required version [OpenSSL 0.9.8k]"); + sLog.outError("Outdated version of OpenSSL lib. Logins to server impossible!"); + sLog.outError("Minimal required version [OpenSSL 0.9.8k]"); + clock_t pause = 5000 + clock(); + while (pause > clock()) {} + return 1; } /// realmd PID file creation -- cgit v1.2.3