Hi,
I tried the OTR-patch by Martin Garbe, and it worked for me with a Gaim
counterpart. But it didn't work with Miranda (Licq showed the
OTR-System-Messages just as normal messages, which was really annoying).
I found out it was because of a different message-format (?) called mFormat in
icqd-srv.cpp.
So I just copy-pasted the relevant OTR-Code. Now it works with Miranda, but it
has only been tested for a few minutes..
I included the patch here, but the original OTR patch still has to be
applied!!
regards,
Hagen
--- icqd-srv.cpp.orig 2006-08-19 08:04:38.000000000 +0200
+++ icqd-srv.cpp 2006-10-17 14:53:09.000000000 +0200
@@ -3251,6 +3282,34 @@
char *szMsg = parseRTF(szTmpMsg);
delete [] szTmpMsg;
+ unsigned long nflags = 0;
+
+#ifdef HAVE_LIBOTR
+ char *szNewMsg = NULL;
+ int ret = gOTRHelper.Decrypt(szId, LICQ_PPID, szMsg, &szNewMsg);
+ if (ret == 1)
+ {
+ //internal message. don't show to user.
+ break;
+ }
+ if (szNewMsg != NULL)
+ {
+ if (gOTRHelper.IsOtrTaggedMsg(szMsg))
+ {
+ gLog.Info("%sUntag OTR tagged message.\n", L_SRVxSTR);
+ }
+ else
+ {
+ gLog.Info("%sReplace original message with decrypted.\n", L_SRVxSTR);
+ nflags |= E_ENCRYPTED;
+ }
+ delete [] szMsg;
+ szMsg = new char[strlen(szNewMsg)+1];
+ strcpy(szMsg, szNewMsg);
+ gOTRHelper.FreeNewMessage(&szNewMsg);
+ }
+#endif
+
// Seems to be misplaced, don't do it here
//gTranslator.ServerToClient(szMsg);
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel