mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Merge pull request #717 from jpnurmi/ssl-ciphers
Resolve #621: Config option for allowed SSL ciphers
This commit is contained in:
@@ -475,6 +475,10 @@ bool CZNC::WriteConfig() {
|
||||
config.AddKeyValuePair("StatusPrefix", m_sStatusPrefix.FirstLine());
|
||||
}
|
||||
|
||||
if (!m_sSSLCiphers.empty()) {
|
||||
config.AddKeyValuePair("SSLCiphers", CString(m_sSSLCiphers));
|
||||
}
|
||||
|
||||
for (unsigned int m = 0; m < m_vsMotd.size(); m++) {
|
||||
config.AddKeyValuePair("Motd", m_vsMotd[m].FirstLine());
|
||||
}
|
||||
@@ -1075,6 +1079,8 @@ bool CZNC::DoRehash(CString& sError)
|
||||
m_sStatusPrefix = sVal;
|
||||
if (config.FindStringEntry("sslcertfile", sVal))
|
||||
m_sSSLCertFile = sVal;
|
||||
if (config.FindStringEntry("sslciphers", sVal))
|
||||
m_sSSLCiphers = sVal;
|
||||
if (config.FindStringEntry("skin", sVal))
|
||||
SetSkinName(sVal);
|
||||
if (config.FindStringEntry("connectdelay", sVal))
|
||||
|
||||
Reference in New Issue
Block a user