[OTR-dev] Is otrl_message_receiving returning 1 erroneously?

Ian Goldberg ian at cypherpunks.ca
Tue Jul 24 11:54:12 EDT 2012

On Mon, Jul 23, 2012 at 08:08:12PM -0700, Chris Ballinger wrote:
> I'm not sure if this is caused by my flawed implementation of libotr
> in ChatSecure, but it seems that otrl_message_receiving is returning 1
> when I'm expecting a 0. Users have mentioned that they are missing
> messages sometimes and I haven't been able to reproduce that behavior
> until I found this bug.
> When a conversation is encrypted between ChatSecure and Adium, then
> encryption is canceled in Adium, any further messages between the two
> clients will be ignored by both clients. Is there something I'm
> missing? I did notice that gone_insecure_cb is never called either.

In this case, the ChatSecure side should go into "FINISHED" state.

> Relevant code is here:
> https://github.com/chrisballinger/Off-the-Record-iOS/blob/master/Off%20the%20Record/OTRCodec.m

I'm not sure what this code is showing.  Can you say under what
circumstance otrl_message_receiving is returning 1 when you expect it to
return 0?


   - Ian

More information about the OTR-dev mailing list