Various SASL changes

This commit is contained in:
Alexey Sokolov
2025-02-14 20:54:19 +00:00
parent 99a5a52fea
commit 6e9980d67f
10 changed files with 304 additions and 218 deletions

View File

@@ -1203,8 +1203,7 @@ void CModule::InternalServerDependentCapsOnClientCapRequest(CClient* pClient,
}
CModule::EModRet CModule::OnClientSASLAuthenticate(
const CString& sMechanism, const CString& sBuffer, CString& sUser,
CString& sMechanismResponse, bool& bAuthenticationSuccess) {
const CString& sMechanism, const CString& sBuffer) {
return CONTINUE;
}
@@ -1215,6 +1214,8 @@ CModule::EModRet CModule::OnClientSASLServerInitialChallenge(
void CModule::OnClientGetSASLMechanisms(SCString& ssMechanisms) {}
void CModule::OnClientSASLAborted() {}
CModule::EModRet CModule::OnModuleLoading(const CString& sModName,
const CString& sArgs,
CModInfo::EModuleType eType,
@@ -1761,12 +1762,8 @@ bool CModules::OnClientCapRequest(CClient* pClient, const CString& sCap,
}
bool CModules::OnClientSASLAuthenticate(const CString& sMechanism,
const CString& sBuffer,
CString& sUser,
CString& sResponse,
bool& bAuthenticationSuccess) {
MODHALTCHK(OnClientSASLAuthenticate(sMechanism, sBuffer, sUser,
sResponse, bAuthenticationSuccess));
const CString& sBuffer) {
MODHALTCHK(OnClientSASLAuthenticate(sMechanism, sBuffer));
}
bool CModules::OnClientSASLServerInitialChallenge(const CString& sMechanism,
@@ -1779,6 +1776,11 @@ bool CModules::OnClientGetSASLMechanisms(SCString& ssMechanisms) {
return false;
}
bool CModules::OnClientSASLAborted() {
MODUNLOADCHK(OnClientSASLAborted());
return false;
}
bool CModules::OnModuleLoading(const CString& sModName, const CString& sArgs,
CModInfo::EModuleType eType, bool& bSuccess,
CString& sRetMsg) {
@@ -2064,6 +2066,7 @@ void CModules::GetDefaultMods(set<CModInfo>& ssMods,
{"chansaver", CModInfo::UserModule},
{"controlpanel", CModInfo::UserModule},
{"corecaps", CModInfo::GlobalModule},
{"saslplain", CModInfo::GlobalModule},
{"simple_away", CModInfo::NetworkModule},
{"webadmin", CModInfo::GlobalModule}};