[OTR-users] libotr4 handshake returns OTRL_MSGEVENT_RCVDMSG_MALFORMED

ketmar ketmar at ketmar.no-ip.org
Wed Apr 8 13:47:38 EDT 2015


On Wed, 8 Apr 2015 19:22:32 +0200
Ian Goldberg <ian at cypherpunks.ca> wrote:

> But ketmar, do try implementing the create_instag callback with the
> above call to otrl_instag_generate and see if that solves your problem.

yay! that solves the problem, thank you. i did this:

void otrCreateInsTagCB (void *opdata, const char *accountname, const char *protocol) {
  dlogf("otrCreateInsTagCB: acc=[%s]; proto=[%s]\n", accountname, protocol);
  GET_CLIENT(cl);
  char *fname = malloc(strlen(cl->account)+1024);
  sprintf(fname, ".otrdata.%s.instag", cl->account);
  if (otrl_instag_generate(cl->mOTRState, fname, accountname, protocol)) {
    dlogf(" ERROR generating instag!\n");
  }
  free(fname);
}

and now Alice and Miriel are able to talk.

i'm not ready to write a patch yet, but i'll take a look at it on the
next week and will try to do that.

thank you again for your help.
-------------- 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/cfd12c9e/attachment.pgp>


More information about the OTR-users mailing list