Added functionality to the configure method to
actually parse the NSCA configuration file and extract
both the encryption_method and password properties.
Added an encrypt_buffer method which supports the
basic XOR "encryption" supported by send_nsca. This
also provides a hook to add the remaining encryption
methods supported by send_nsca (via libmcrypt.)
Added getter/setter methods for setting the encryption
method and password properties directly (instead of
parsing the NSCA configuration file for them.)
Patch is attached.
Does anyone know if libmcrypt has been "wrappered" or
re-written for Java? I was considering adding
libmcrypt support via a JNI wrapper of libmcrypt, but
don't know if anyone wants that badly enough to spend
the time on it.
Bob
Patch for NagiosAppender.java in standard diff format
Logged In: YES
user_id=630551
Bob,
Thanks for your contribution ... I'll try to get that patch
applied and get a new version out.
I attempted to provide some native Java code that would
handle blowfish ... but not joy ... I haven't worked with
encryption before.
I like your idea for the JNI wrapper ....