RE: dkim_getsighdr_d()

From: Murray S. Kucherawy <msk_at_cloudmark.com>
Date: Fri, 8 Apr 2011 11:07:09 -0700

> -----Original Message-----
> From: opendkim-users-bounce_at_lists.opendkim.org [mailto:opendkim-users-bounce_at_lists.opendkim.org] On Behalf Of Nigel Horne
> Sent: Friday, April 08, 2011 8:34 AM
> To: opendkim-users_at_lists.opendkim.org
> Subject: dkim_getsighdr_d()
>
> According to http://www.opendkim.org/libopendkim/dkim_getsighdr_d.html:
>
> buf is "The address of a pointer that will be updated to reference a
> buffer into which the generated signature header was placed.". Is that
> buffer NUL terminated?

Yes, it's NUL terminated.

> If so, does len include that byte?

No; it's the equivalent of calling strlen() on the string.

> It's implied that it's NUL terminated by the use of the word string in
> "...as well as the length of the string at that location", but I'd
> rather have explicit than implicit documentation, so could I be sure?

I'll update the documentation accordingly.

-MSK
Received on Fri Apr 08 2011 - 18:07:17 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:17 PST