From 8f0fc2fa0709dc4607b87beb64874b20c8a53627 Mon Sep 17 00:00:00 2001 From: prozacx Date: Mon, 10 Oct 2005 05:16:38 +0000 Subject: [PATCH] Fixed build for non ssl git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@558 726aef4b-f618-498e-8847-2d620e286838 --- znc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/znc.cpp b/znc.cpp index 3d22d089..fe3e8f6c 100644 --- a/znc.cpp +++ b/znc.cpp @@ -199,6 +199,10 @@ bool CZNC::WritePidFile(int iPid) { } bool CZNC::WritePemFile() { +#ifndef HAVE_LIBSSL + CUtils::PrintError("ZNC was not compiled with ssl support."); + return false; +#else CString sPemFile = GetPemLocation(); const char* pHostName = getenv("HOSTNAME"); CString sHost; @@ -227,6 +231,7 @@ bool CZNC::WritePemFile() { CUtils::PrintStatus(true); return true; +#endif } void CZNC::DeleteUsers() {