From 00fd113a191482a708478684e8e78bc610a925db Mon Sep 17 00:00:00 2001 From: prozacx Date: Tue, 6 Sep 2005 22:41:11 +0000 Subject: [PATCH] Added some ifdef HAVE_LIBSSL constraints git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@460 726aef4b-f618-498e-8847-2d620e286838 --- modules/admin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/admin.cpp b/modules/admin.cpp index 5a064f5b..e6283502 100644 --- a/modules/admin.cpp +++ b/modules/admin.cpp @@ -92,8 +92,12 @@ public: CString sPort = sArgs.Token(0); if (sPort.Left(1) == "+") { +#ifdef HAVE_LIBSSL sPort.TrimLeft("+"); bSSL = true; +#else + return false; +#endif } m_uPort = sPort.ToUInt(); @@ -106,9 +110,11 @@ public: CAdminSock* pListenSock = new CAdminSock(this); +#ifdef HAVE_LIBSSL if (bSSL) { pListenSock->SetPemLocation(m_pZNC->GetPemLocation()); } +#endif return m_pManager->ListenAll(m_uPort, "Admin::Listener", bSSL, SOMAXCONN, pListenSock); }