aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 09:24:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 09:24:21 +0100
commit52420396f67209a08372ccf3e472aa3f2a24441b (patch)
treeb95d5b357884240065fa1561a08a43bbec1c0c41 /src/libserver/cfg_rcl.h
parent8b7681636df8dc0e3643f3a2ee458d654e6f3046 (diff)
downloadrspamd-52420396f67209a08372ccf3e472aa3f2a24441b.tar.gz
rspamd-52420396f67209a08372ccf3e472aa3f2a24441b.zip
[Feature] Allow to parse pubkeys from the rcl config
Diffstat (limited to 'src/libserver/cfg_rcl.h')
-rw-r--r--src/libserver/cfg_rcl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.h b/src/libserver/cfg_rcl.h
index ee0a1b526..1a27b056f 100644
--- a/src/libserver/cfg_rcl.h
+++ b/src/libserver/cfg_rcl.h
@@ -278,6 +278,21 @@ gboolean rspamd_rcl_parse_struct_keypair (rspamd_mempool_t *pool,
GError **err);
/**
+ * Parse a pubkey field of a structure
+ * @param cfg config pointer
+ * @param obj object to parse
+ * @param ud struct_parser structure (flags mean the exact structure used)
+ * @param section the current section
+ * @param err error pointer
+ * @return TRUE if a value has been successfully parsed
+ */
+gboolean rspamd_rcl_parse_struct_pubkey (rspamd_mempool_t *pool,
+ const ucl_object_t *obj,
+ gpointer ud,
+ struct rspamd_rcl_section *section,
+ GError **err);
+
+/**
* Parse a inet addr field of a structure
* @param cfg config pointer
* @param obj object to parse