Added GetPemLocation()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@82 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-03 07:56:33 +00:00
parent 6bd03a84fa
commit 2f03306340
2 changed files with 5 additions and 4 deletions
+4 -4
View File
@@ -94,7 +94,7 @@ int CZNC::Loop() {
#ifdef HAVE_LIBSSL
if (pServer->IsSSL()) {
bSSL = true;
pIRCSock->SetPemLocation(GetCurPath() + "/znc.pem");
pIRCSock->SetPemLocation(GetPemLocation());
}
#endif
if (!m_Manager.Connect(pServer->GetName(), pServer->GetPort(), sSockName, 20, bSSL, pUser->GetVHost(), pIRCSock)) {
@@ -170,7 +170,7 @@ bool CZNC::Listen() {
#ifdef HAVE_LIBSSL
if (IsSSL()) {
bSSL = true;
pUserSock->SetPemLocation(GetCurPath() + "/znc.pem");
pUserSock->SetPemLocation(GetPemLocation());
}
#endif
return m_Manager.ListenAll(m_uListenPort, "_LISTENER", bSSL, SOMAXCONN, pUserSock);
@@ -450,8 +450,8 @@ bool CZNC::ParseConfig(const string& sConfigFile) {
}
#endif
if ((m_bSSL) && (!CFile::Exists(GetCurPath() + "/znc.pem"))) {
cerr << "Unable to locate pem file: [" << GetCurPath() << "/znc.pem]" << endl;
if ((m_bSSL) && (!CFile::Exists(GetPemLocation()))) {
cerr << "Unable to locate pem file: [" << GetPemLocation() << "]" << endl;
return false;
}