SASL Authentication for Clients

This commit is contained in:
MrLenin
2018-06-26 22:38:27 -04:00
committed by delthas
parent 41032f8955
commit d27e2cce5c
7 changed files with 320 additions and 3 deletions

View File

@@ -1075,6 +1075,22 @@ bool CModule::IsClientCapSupported(CClient* pClient, const CString& sCap,
}
void CModule::OnClientCapRequest(CClient* pClient, const CString& sCap,
bool bState) {}
CModule::EModRet CModule::OnClientSaslAuthenticate(const CString& sMechanism,
const CString& sBuffer,
CString& sUser,
CString& sMechanismResponse,
bool& bAuthenticationSuccess) {
return CONTINUE;
}
CModule::EModRet CModule::OnSaslServerChallenge(const CString& sMechanism,
CString& sResponse) {
return CONTINUE;
}
void CModule::OnGetSaslMechanisms(SCString& ssMechanisms) {}
CModule::EModRet CModule::OnModuleLoading(const CString& sModName,
const CString& sArgs,
CModInfo::EModuleType eType,
@@ -1592,6 +1608,25 @@ bool CModules::OnClientCapRequest(CClient* pClient, const CString& sCap,
return false;
}
bool CModules::OnClientSaslAuthenticate(const CString& sMechanism,
const CString& sBuffer,
CString& sUser,
CString& sResponse,
bool& bAuthenticationSuccess) {
MODHALTCHK(OnClientSaslAuthenticate(sMechanism, sBuffer, sUser,
sResponse, bAuthenticationSuccess));
}
bool CModules::OnSaslServerChallenge(const CString& sMechanism,
CString& sResponse) {
MODHALTCHK(OnSaslServerChallenge(sMechanism, sResponse));
}
bool CModules::OnGetSaslMechanisms(SCString& ssMechanisms) {
MODUNLOADCHK(OnGetSaslMechanisms(ssMechanisms));
return false;
}
bool CModules::OnModuleLoading(const CString& sModName, const CString& sArgs,
CModInfo::EModuleType eType, bool& bSuccess,
CString& sRetMsg) {