The attachment you included didn't have CRLFs as line terminators. If I add those, it works fine for me.
Unlike the dkim_body() interface, dkim_chunk() doesn't currently auto-determine the line termination in use and expects CRLFs. There's an open feature request in the trackers (#3123731) to fix that, but I didn't get to it for 2.3.0.
See http://www.opendkim.org/libopendkim/dkim_chunk.html (also included in the source tarball) for details.
-MSK
From: Alex Klizhentas [mailto:klizhentas_at_gmail.com]
Sent: Tuesday, March 01, 2011 12:56 PM
To: Murray S. Kucherawy
Cc: opendkim-users_at_lists.opendkim.org
Subject: Re: Trying to use libopendkim
Thanks for the quick response,
It actually does not depend on the message itself - I've tried on dozens of messages - the result is the same, one of the failing messages is attached.
Thanks, Alex
On Tue, Mar 1, 2011 at 11:47 PM, Murray S. Kucherawy <msk_at_cloudmark.com<mailto:msk_at_cloudmark.com>> wrote:
The code looks OK at a glance.
Can you paste the sample message you're trying to sign?
From: opendkim-users-bounce_at_lists.opendkim.org<mailto:opendkim-users-bounce_at_lists.opendkim.org> [mailto:opendkim-users-bounce_at_lists.opendkim.org<mailto:opendkim-users-bounce_at_lists.opendkim.org>] On Behalf Of Alex Klizhentas
Sent: Tuesday, March 01, 2011 12:25 PM
To: opendkim-users_at_lists.opendkim.org<mailto:opendkim-users_at_lists.opendkim.org>
Subject: Trying to use libopendkim
Hi All,
I'm exploring libopendkim ability to sign and verify messages as a separate module and wrote a code snippet that does not work
I always get an error at line 83 saying that message format is invalid.
Here's the code snippet:
I understand that doing something completely wrong, but found no code examples to make it right, so would appreciate any help.
-- Regards, Alex -- Regards, AlexReceived on Tue Mar 01 2011 - 21:07:57 PST
This archive was generated by hypermail 2.2.0+W3C-0.50 : Sun May 15 2011 - 15:58:21 PST