[PATCH] vmod_digest

Laurence Rowe l at lrowe.co.uk
Fri Oct 14 00:24:25 CEST 2011


On 13 October 2011 18:45, Laurence Rowe <l at lrowe.co.uk> wrote:
> On 11 October 2011 13:39, Kristian Lyngstol
> <kristian at varnish-software.com> wrote:
>> On Tue, Oct 11, 2011 at 02:26:03PM +0200, Nils Goroll wrote:
>>> Hi,
>>>
>>> > Do you plan to release a newer version soon or do I start with what you posted and try to continue ?
>>>
>>> Tollef had the same intention. Any news, Tollef?
>>
>> We (Varnish Software) released a mhash-based libvmod-digest a few weeks
>> ago, which also supply a few base64-dialects. Feature requests are
>> welcome.
>>
>> It's available from https://github.com/varnish/libvmod-digest
>
> Cool!
>
> How do you handle null bytes in the strings returned by digest.hash* /
> digest.hmac* / digest.base64*decode ? I was under the impression
> varnish used null terminated strings internally.

>From reading the source I see that the hash and hmac functions return
hexdigests. Presumably it's assumed any base64 data you would be
interested in reading in Varnish would not contain null characters.

Laurence




More information about the varnish-dev mailing list