From db25f46740511104bbe565f20914b4aabec7864e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 16 Aug 2016 16:45:34 +0100 Subject: [Feature] Implement encrypted logs --- src/libserver/cfg_rcl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libserver/cfg_rcl.c') diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index ad0629f25..94c5862d7 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -1680,6 +1680,12 @@ rspamd_rcl_config_init (struct rspamd_config *cfg) "Specify format string for the task logging output " "(https://rspamd.com/doc/configuration/logging.html " "for details)"); + rspamd_rcl_add_default_handler (sub, + "encryption_key", + rspamd_rcl_parse_struct_pubkey, + G_STRUCT_OFFSET (struct rspamd_config, log_encryption_key), + 0, + "Encrypt sensitive information in logs using this pubkey"); /** * Options section */ -- cgit v1.2.3