mirror of
https://github.com/znc/znc.git
synced 2026-05-03 03:52:33 +02:00
SASL Authentication for Clients
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user