[syslog-ng] [PATCH] tfhash: New template function to calculate the SHA1 of its input
Gergely Nagy
algernon at madhouse-project.org
Sat Aug 4 22:53:59 CEST 2012
Jakub Jankowski <shasta at toxcorp.com> writes:
> I'd love to see $(hash) with an (optional?) argument specifying the digest
> algorithm to use, but even with just SHA-1 it's really cool (and simple).
I just implemented that (SHA1, SHA256 and SHA512 supported at the
moment), and a few other minor improvements on the feature/3.4/tfhash
branch of my github repo[1].
I will add the $(sha1) and similar wrappers in a few hours, once I'm
near a computer again, unless someone beats me to it: all it takes is
factoring out the bulk of tf_hash, into something that does not require
a GString argv[], but takes separate arguments, then turn tf_hash,
tf_sha1, etc into thin wrappers calling that. About 10 minutes of work
tops, and there are cookies to be had! :)
[1]: https://github.com/algernon/syslog-ng
--
|8]
More information about the syslog-ng
mailing list