aboutsummaryrefslogtreecommitdiff
path: root/src/trinityrealm/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trinityrealm/Main.cpp')
-rw-r--r--src/trinityrealm/Main.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/trinityrealm/Main.cpp b/src/trinityrealm/Main.cpp
index cbadd4d1e4c..68449ed3d71 100644
--- a/src/trinityrealm/Main.cpp
+++ b/src/trinityrealm/Main.cpp
@@ -22,14 +22,17 @@
/// @{
/// \file
-#include "Common.h"
-#include "Database/DatabaseEnv.h"
-#include "RealmList.h"
+#include <openssl/opensslv.h>
+#include <openssl/crypto.h>
+#include "Common.h"
#include "Config/ConfigEnv.h"
-#include "Log.h"
+#include "Database/DatabaseEnv.h"
#include "sockets/ListenSocket.h"
+
#include "AuthSocket.h"
+#include "Log.h"
+#include "RealmList.h"
#include "SystemConfig.h"
#include "Util.h"
@@ -162,6 +165,13 @@ extern int main(int argc, char **argv)
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.outString( "%s (realm-daemon)", _FULLVERSION );
sLog.outString( "<Ctrl-C> to stop.\n" );