diff options
author | megamage <none@none> | 2009-08-12 23:10:16 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-12 23:10:16 -0500 |
commit | 24f906cfc096befc3c6cc95d01f1d91d565f3971 (patch) | |
tree | 15c128f0f3cd809195aebc9c2342bc94af73d78d /src | |
parent | 0606446ccca5c5e146023db0683ea95c720b8b70 (diff) |
*Do not allow to run the server if openssl lib is outdated.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/trinitycore/Main.cpp | 8 | ||||
-rw-r--r-- | src/trinityrealm/Main.cpp | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/trinitycore/Main.cpp b/src/trinitycore/Main.cpp index faa88c994d5..4946117670c 100644 --- a/src/trinitycore/Main.cpp +++ b/src/trinitycore/Main.cpp @@ -153,15 +153,17 @@ extern int main(int argc, char **argv) sLog.outError(" strange behavior."); sLog.outError("*****************************************************************************"); clock_t pause = 3000 + clock(); - while (pause > clock()) {} } 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; } ///- and run the 'Master' 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 |