lib audit_logging: re-factor and add functions.
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 16 May 2018 20:03:00 +0000 (08:03 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 1 Jun 2018 06:28:26 +0000 (08:28 +0200)
commit77e66b86db606ff135c8c76a95c5576feec0fa51
tree9da7d6b4189f665eae94caf6db2e5a7709b51c49
parent7a0d82b6948930506afd35c4d9fb7e7641adb8ba
lib audit_logging: re-factor and add functions.

Re-factor the common calls to json_dumps DEBUGC and audit_message_send
into a separate function.
Add functions to retrieve json object and json array elements

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/auth_log.c
lib/audit_logging/audit_logging.c
lib/audit_logging/audit_logging.h
lib/audit_logging/tests/audit_logging_test.c