[PATCH] Change hash_data() input type to BLOB

Federico Schwindt fgsch at lodoss.net
Mon Apr 20 22:27:22 CEST 2015


Duh! New diff attached. Documentation and tests remaining. Something like
this?

Should we keep hash_data() or rename it to hash_string() or something
similar?


On Mon, Apr 20, 2015 at 7:55 PM, Poul-Henning Kamp <phk at phk.freebsd.dk>
wrote:

> --------
> In message <4276.1429509016 at critter.freebsd.dk>, "Poul-Henning Kamp"
> writes:
>
> >In practice we would need to pass a flag to vcc_Expr() saying "I want
> >a FOO but BLOB is also OK" and I have a hard time seeing FOO take
> >any other value than STRING/STRING_LIST.
>
> Actually...
>
> Isn't this where we just add a
>
>         std.hash_blob(BLOB)
>
> Function ?
>
>
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150420/4eee8164/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hash_blob.patch
Type: text/x-patch
Size: 3768 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150420/4eee8164/attachment.bin>


More information about the varnish-dev mailing list