RE: dkim_getsignedhdrs

From: Murray S. Kucherawy <>
Date: Fri, 22 Apr 2011 14:13:41 -0700

> -----Original Message-----
> From: [] On Behalf Of Nigel Horne
> Sent: Friday, April 22, 2011 1:54 PM
> To:
> Subject: dkim_getsignedhdrs
> According to
> , the hdrs argument is unsigned char **, but according to dkim.h it's
> u_char *. I can see why ** would seem more logical than *, but I guess
> that's not what's been used here, and the doc is wrong?

The doc is wrong, and has now been fixed.

What's passed in is a square array of space to receive the signed header fields, the size of each individual array element, and the number of elements. So if you wanted to give it ten 256-byte fields, you would hand it (respectively) a pointer to the top of a 2560-byte buffer, the number 256, and a pointer to the number 10; the latter would be updated to indicate how many were used (or needed, if there weren't enough).

Received on Fri Apr 22 2011 - 21:13:49 PST

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