lib:audit_logging: Add function to add flags to a JSON message
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 15 May 2023 21:53:02 +0000 (09:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 18 May 2023 01:03:37 +0000 (01:03 +0000)
commit4440f1db54b7ad54b7a4920ac67236d1d8605353
tree6895220fdde9d7af80f8466780d4754fdf21e655
parent89d30cdfe164e441d0b565e02ea9422eaae789fb
lib:audit_logging: Add function to add flags to a JSON message

This replaces a couple of calls to snprintf() in
log_authentication_event_json() and log_successful_authz_event_json()
respectively.

Signed-off-by: Joseph Sutton <josephsutton@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