[OTR-dev] Requirements for libotr4
Jonathan Schleifer
js-otrim@webkeks.org
Wed, 18 Jun 2008 14:06:06 +0200
--Sig_/f5BhxE7h_VPcCTA_xxVCcBz
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
There's one thing we'd absolutely need for libotr4 to support OTR in
Gajim again (this is the main reason why we removed the OTR code from it
completely):
When calling otrl_message_fragment_and_send, it returns the fragments
and calls our inject_message method. Our inject_message method calls
send_message, which returns an ID. This is the ID used by the XMPP
library for the sent XMPP message stanza. We need this ID for some XEPs
like for example XEP-0184 (so we can verify our message was received -
note: XEP-0184 is just chosen as an example here, there are even more
that require knowing the ID of our sent XMPP message stanza). With the
way this is handled in libotr3, we just loose that ID and thus can't
implement some XEPs (thus we removed OTR form Gajim).
As you already said you're going to remove
otrl_message_fragment_and_send, I'd suggest that the new API
includes a way to get the return value of the inject_message
function (our inject_message function could just return the
ID from send_message then) so we can get the XMPP message stanza ID.
--=20
Jonathan
--Sig_/f5BhxE7h_VPcCTA_xxVCcBz
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc
-----BEGIN PGP SIGNATURE-----
iQIcBAEBAwAGBQJIWPoyAAoJEMtRg9d5cXHkT0UP/0tCRCkk23Q0RqwpIpy3iI6s
eEmt1UPuM1NLYq2pl93V4hQKZ3nHufOmY6125PiIkrW0cyUW2jAPnAENKJkMRSNv
TDWL5Y2zsDr69Ghq+SZm/U9vcJAv0YhLM02ahiLkl0QqJuIyR+yUQa1VC2a1bgXY
YQDnymUSdlspd+8VhLo6m7NV74YKqGwiRrncHPsyXWy0lsziSek5sYs9i15H07t/
qURbLcHEVZ6QuWTvkxmBqHt4u4gKuBQ2rcmnouQ0Yhc9EEDnEMs/3xrPUMGo7if5
lYupk0lk8k4pVO+RqF7m8mES3V6/s4xHZquRHtivhnGkY8113SDgvqAZ6oT8g9bF
/Y+AbUyUZzosRD2emEfuE6fZ/kqqiCzvH8W26GICIZSAHWvW2ZPDXgUe4D2wl2ss
mDoKB1frHKN3Hprjp0VOeYhWycLPdIgryFMh6/BCzQ/kJh7YtZDHfDjmq/GRPkah
vFebi8m5gXp0DSY9cN75e2w93vV9VJZzEKAhJ/kiLv4gc8E0uw6+mlKVyfMsjVUT
ayfO/gj1DIySwGZF40Uz2SH6EcjCwqmKAhqdNAiHIksYSoMpLvc+7/9e700NS+YY
M3NeAhO39wK5QrdN1OA+2X5jCWl3YPvhoCrktKWZHEx+E/89+l1OuqgYabhMfdlz
pJuCsYfVsZuuCCT73VK1
=vtR9
-----END PGP SIGNATURE-----
--Sig_/f5BhxE7h_VPcCTA_xxVCcBz--