[syslog-ng] [PATCH] tfhash: New template function to calculate the SHA1 of its input
Balazs Scheidler
bazsi77 at gmail.com
Sun Aug 5 06:59:20 CEST 2012
can you at the same time merge the uuid function and this into a cryptofuncs module?
I'd try to avoid having completely separate plugin for each template function.
----- Original message -----
> 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]
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng FAQ:
> http://www.balabit.com/wiki/syslog-ng-faq
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20120805/9ae92efe/attachment.htm
More information about the syslog-ng
mailing list