Add test for modperl SCString functions.
Pass CClient to the OnClientGetSASLMechanisms callback. See #1970
This commit is contained in:
1 parent
2daae4358a
commit
8c983564e8
2 files changed
+41
-2
No files matched your search
+3
-2
@@ -1361,8 +1361,9 @@ void CClient::AcceptSASLLogin(CUser& User) {
|
||||
|
||||
SCString CClient::EnumerateSASLMechanisms() const {
|
||||
SCString ssMechanisms;
|
||||
// FIXME Currently GetClient()==nullptr due to const
|
||||
GLOBALMODULECALL(OnClientGetSASLMechanisms(ssMechanisms), NOTHING);
|
||||
// FIXME Fix this const_cast
|
||||
_GLOBALMODULECALL(OnClientGetSASLMechanisms(ssMechanisms), nullptr, nullptr,
|
||||
const_cast<CClient*>(this), NOTHING);
|
||||
return ssMechanisms;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user