[OTR-dev] Sending encrypted messages
Ian Goldberg
ian at cypherpunks.ca
Sun Jun 28 13:14:50 EDT 2015
On Sun, Jun 28, 2015 at 04:28:39PM +0200, Pierre Lebreton wrote:
> Hello,
>
> I have been working on integrating OTR to my XMPP client for BlackBerry 10.
Great!
> I managed to get many things work, but I still have some trouble to send
> encrypted messages. So I was wondering if someone could help me to locate
> what I am missing.
>
> What I am able to do is to:
> - initiate the OTR protocol, and got up to the point where "gone_secure" is
> called, and I have the fingerprint of the recipient.
> - If the other client (Adium) is sending me encrypted messages, I am able
> to decrypt them.
>
> But when I try to send messages, "otrl_message_sending" replace my message
> by a new OTR request:
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> "?OTRv2?
>
> <b>amonchakai2 at jabber.de</b> has requested an <a href="
> https://otr.cypherpunks.ca/">Off-the-Record private conversation</a>.
> However, you do not have a plugin to support that.
>
> See <a href="https://otr.cypherpunks.ca/">https://otr.cypherpunks.ca/</a>
> for more information."
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hmm, interesting. I think there are three times otrl_message_sending
would output the default query message:
- If you pass the string "?OTR?" or similar *into* otrl_message_sending.
- If your policy has OTRL_POLICY_REQUIRE_ENCRYPTION set, but the context
msgstate is still at OTRL_MESSAGE_PLAINTEXT.
- If you receive an OTR Error messaage, and your policy has
OTRL_POLICY_ERROR_START_AKE set.
Could you possibly step through otrl_message_sending and see which it
thinks is happening?
Thanks,
- Ian
More information about the OTR-dev
mailing list