summaryrefslogtreecommitdiffstats
path: root/src/rcl/rcl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcl/rcl.h')
-rw-r--r--src/rcl/rcl.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/rcl/rcl.h b/src/rcl/rcl.h
index 53ee2f20d..61ce88add 100644
--- a/src/rcl/rcl.h
+++ b/src/rcl/rcl.h
@@ -41,7 +41,9 @@ enum rspamd_cl_error {
RSPAMD_CL_ESTATE,
RSPAMD_CL_ENESTED,
RSPAMD_CL_EMACRO,
- RSPAMD_CL_ERECURSION
+ RSPAMD_CL_ERECURSION,
+ RSPAMD_CL_EINTERNAL,
+ RSPAMD_CL_ESSL
};
enum rspamd_cl_type {
@@ -299,4 +301,14 @@ void rspamd_cl_obj_free (rspamd_cl_object_t *obj);
*/
guchar *rspamd_cl_object_emit (rspamd_cl_object_t *obj, enum rspamd_cl_emitter emit_type);
+/**
+ * Add new public key to parser for signatures check
+ * @param parser parser object
+ * @param key PEM representation of a key
+ * @param len length of the key
+ * @param err if *err is NULL it is set to parser error
+ * @return TRUE if a key has been successfully added
+ */
+gboolean rspamd_cl_pubkey_add (struct rspamd_cl_parser *parser, const guchar *key, gsize len, GError **err);
+
#endif /* RCL_H_ */