<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This just happened, thought it was clearly illustrate both the problem under discussion and a related issue:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><I'm in an OTR session with OtherUser, both of us are on Manual></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:45:31 PM</FONT> OtherUser<FONT class="Apple-style-span" color="#000080">: </FONT>brb</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">OtherUser <FONT class="Apple-style-span" color="#808080">disconnected (2:45:32 PM)</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">OtherUser<FONT class="Apple-style-span" color="#808080"> connected (2:49:00 PM)</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:49:45 PM</FONT> OtherUser<FONT class="Apple-style-span" color="#000080">: </FONT><B>The following message received from OtherUser was </B><B><I>not</I></B><B> encrypted: [</B>and we're back</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:49:52 PM</FONT> <FONT class="Apple-style-span" color="#008000">tekjew: </FONT>and this.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:49:52 PM</FONT> OtherUser<FONT class="Apple-style-span" color="#000080">: </FONT>?OTR Error: You sent encrypted data to OtherUser, who wasn't expecting it.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:49:53 PM</FONT> <FONT class="Apple-style-span" color="#008000">tekjew: </FONT>is</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:49:53 PM</FONT> OtherUser<FONT class="Apple-style-span" color="#000080">: </FONT>?OTR Error: You sent encrypted data to OtherUser, who wasn't expecting it.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:49:54 PM</FONT> <FONT class="Apple-style-span" color="#008000">tekjew: </FONT>what</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:49:54 PM</FONT> OtherUser<FONT class="Apple-style-span" color="#000080">: </FONT>?OTR Error: You sent encrypted data to OtherUser, who wasn't expecting it.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:50:00 PM</FONT> <FONT class="Apple-style-span" color="#008000">tekjew: </FONT>I mean, Ian.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:50:00 PM</FONT> OtherUser<FONT class="Apple-style-span" color="#000080">: </FONT>?OTR Error: You sent encrypted data to OtherUser, who wasn't expecting it.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">Ended encrypted OTR chat. (2:50:02 PM)</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:50:03 PM</FONT> OtherUser<FONT class="Apple-style-span" color="#000080">: </FONT>?OTR Error: You sent encrypted data to OtherUser, who wasn't expecting it.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:50:07 PM</FONT> <FONT class="Apple-style-span" color="#008000">tekjew: </FONT>hehe</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:50:08 PM</FONT> <FONT class="Apple-style-span" color="#008000">tekjew: </FONT>perfect!</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#808080">2:50:12 PM</FONT> <FONT class="Apple-style-span" color="#008000">tekjew: </FONT>thanks for letting me demo that :)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So OtherUser quit and then reloaded.  He sent me an unencrypted message... fine so far, that's to be expected.  But when I sent "and this." I would have wanted the Magic Opportunistic (Private/Broken) mode to take effect and renegotiate a session.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Note the other interesting oddity, though I can see why it would happen -- When I did click "End encrypted session" locally, the encrypted 'closed' packet was sent to OtherUser, and then I was told that I sent encrypted data.  Most users would be very confused by this particular bit of information, since as far as they know they didn't send any data to the other user.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-Evan</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV><DIV>On Aug 4, 2005, at 2:41 PM, Ian Goldberg wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Thu, Aug 04, 2005 at 02:35:35PM -0400, Ian Goldberg wrote:</DIV> <BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Thu, Aug 04, 2005 at 01:36:01PM -0400, Evan Schoenberg wrote:</DIV> <BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Currently:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">OTR session with Alice</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I exit my client (without selecting End Private Conversation, which <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">is what happens with most users)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I reconnect</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Alice says something.<SPAN class="Apple-converted-space">  </SPAN>Her client is currently in the Private state, <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">with the previous secure session.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I get an encrypted message I can't read (sent using the encryption <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">from the old secure session).</DIV> <BR></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Note that this causes OTR to automatically restart if you're in</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Opportunistic mode.</DIV> <BR></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">And I forgot to say: which will also cause Alice's message to get</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">resent.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">That being said, it's arguably more correct for gaim to disconnect its</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">contexts before exiting, and the patch is totally trivial, so I</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">committed it to CVS.<SPAN class="Apple-converted-space">  </SPAN>;-)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space">   </SPAN>- Ian</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">OTR-dev mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:OTR-dev@lists.cypherpunks.ca">OTR-dev@lists.cypherpunks.ca</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.cypherpunks.ca/mailman/listinfo/otr-dev">http://lists.cypherpunks.ca/mailman/listinfo/otr-dev</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BR class="Apple-interchange-newline"></BLOCKQUOTE></DIV><BR></BODY></HTML>