From 0fa627b2e173ee95fe5c422545d26db02e4e327a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Mar 2020 14:28:01 +0300 Subject: Jabber: fix for receiving auth requests --- protocols/JabberG/src/jabber_proto.cpp | 8 ++++++++ protocols/JabberG/src/jabber_proto.h | 1 + 2 files changed, 9 insertions(+) diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index d71378c81f..a026b9f113 100755 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -472,6 +472,14 @@ int CJabberProto::AuthDeny(MEVENT hDbEvent, const wchar_t*) return 0; } +//////////////////////////////////////////////////////////////////////////////////////// +// JabberAuthRecv - receives a auth + +int CJabberProto::AuthRecv(MCONTACT, PROTORECVEVENT *pre) +{ + return Proto_AuthRecv(m_szModuleName, pre); +} + //////////////////////////////////////////////////////////////////////////////////////// // JabberFileAllow - starts a file transfer diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h index 5306832189..961329212c 100755 --- a/protocols/JabberG/src/jabber_proto.h +++ b/protocols/JabberG/src/jabber_proto.h @@ -110,6 +110,7 @@ struct CJabberProto : public PROTO, public IJabberInterface int Authorize(MEVENT hDbEvent) override; int AuthDeny(MEVENT hDbEvent, const wchar_t *szReason) override; + int AuthRecv(MCONTACT, PROTORECVEVENT *pre) override; HANDLE FileAllow(MCONTACT hContact, HANDLE hTransfer, const wchar_t *szPath) override; int FileCancel(MCONTACT hContact, HANDLE hTransfer) override; -- cgit v1.2.3