[syslog-ng] [PATCH (3.4)] tfuuid: New template function to generate UUIDs.

Gergely Nagy algernon at balabit.hu
Fri Feb 3 11:53:29 CET 2012


Balazs Scheidler <bazsi at balabit.hu> writes:

> If possible I'd avoid using another library, there'd a random based UUID
> generator function in modules/dbparser/patternize.c
>
> Can you check if libuuid does anything more than that?

A'ight, I checked further, and the implementation in patternize requires
openssl. So here's my idea: I'll move that implementation to
lib/uuid.[ch], and use it if openssl is available. If openssl is not
available, but libuuid is, it'll use that.

If neither is available, it won't build, and tfuuid will be disabled
too.

This will also mean that patternzie can generate uuids even without
openssl, provided libuuid is available, and I don't have to move this
logic to tfuuid, but make it an option for anything that wants an uuid.

-- 
|8]



More information about the syslog-ng mailing list