mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
fixed use of --encrypt-pem
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@730 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -218,7 +218,7 @@ bool CZNC::WritePidFile(int iPid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CZNC::WritePemFile() {
|
||||
bool CZNC::WritePemFile( bool bEncPem ) {
|
||||
#ifndef HAVE_LIBSSL
|
||||
CUtils::PrintError("ZNC was not compiled with ssl support.");
|
||||
return false;
|
||||
@@ -246,7 +246,7 @@ bool CZNC::WritePemFile() {
|
||||
return false;
|
||||
}
|
||||
|
||||
CUtils::GenerateCert(f, false, sHost);
|
||||
CUtils::GenerateCert(f, bEncPem, sHost);
|
||||
fclose(f);
|
||||
|
||||
CUtils::PrintStatus(true);
|
||||
|
||||
Reference in New Issue
Block a user