[OTR-users] libotr4 handshake returns OTRL_MSGEVENT_RCVDMSG_MALFORMED

ketmar ketmar at ketmar.no-ip.org
Wed Apr 8 11:29:18 EDT 2015


Hello.

i'm migrating from libotr3 to libotr4, and i can't establish handshake.
i wrote a sample code[1] to test OTR messaging. it emulates message
sending between two clients (no sockets, only in-memory exchange).

OTR starts negotiation, but loops with OTRL_MSGEVENT_RCVDMSG_MALFORMED
error, keep trying and failing.

you can download sample code and compile it with "compile.sh" script,
and then just run "./test". it will generate private keys for two
clients and then will try to initiate OTR session. and then you will
see what's wrong on stderr (you can redirect stderr to file). note that
program never finishes, so you have to press ^C to stop it (it SHOULD
finish, but it can't).

i've tried this both with libotr 4.1.0 release and with git HEAD.
libotr is build from scratch. other info:

GNU/Linux, arch: x86
gcc 4.9.2
libgcrypt-1.6.3

[1] http://ketmar.no-ip.org/test_cl.tgz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.cypherpunks.ca/pipermail/otr-users/attachments/20150408/e9ce0e69/attachment.pgp>


More information about the OTR-users mailing list