aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/Main.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-12 23:10:16 -0500
committermegamage <none@none>2009-08-12 23:10:16 -0500
commit24f906cfc096befc3c6cc95d01f1d91d565f3971 (patch)
tree15c128f0f3cd809195aebc9c2342bc94af73d78d /src/trinityrealm/Main.cpp
parent0606446ccca5c5e146023db0683ea95c720b8b70 (diff)
*Do not allow to run the server if openssl lib is outdated.
--HG-- branch : trunk
Diffstat (limited to 'src/trinityrealm/Main.cpp')
-rw-r--r--src/trinityrealm/Main.cpp7
1 files changed, 5 insertions, 2 deletions
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