aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/multipattern.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-23 14:42:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-23 14:45:27 +0100
commitdb2aed4685476f5d34c783dd4d21d46ef3312026 (patch)
tree594dc7edf78e104832892b3b2a9abc931ac270ea /src/libutil/multipattern.h
parentaf7d84071a8efe9ac9112414613ee887daa7ca1b (diff)
downloadrspamd-db2aed4685476f5d34c783dd4d21d46ef3312026.tar.gz
rspamd-db2aed4685476f5d34c783dd4d21d46ef3312026.zip
[Feature] Allow non zero terminated patterns in multipattern
Diffstat (limited to 'src/libutil/multipattern.h')
-rw-r--r--src/libutil/multipattern.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libutil/multipattern.h b/src/libutil/multipattern.h
index d8f534b54..ef9f17583 100644
--- a/src/libutil/multipattern.h
+++ b/src/libutil/multipattern.h
@@ -92,7 +92,7 @@ struct rspamd_multipattern *rspamd_multipattern_create_full (
enum rspamd_multipattern_flags flags);
/**
- * Adds new pattern to match engine
+ * Adds new pattern to match engine from zero-terminated string
* @param mp
* @param pattern
*/
@@ -100,6 +100,16 @@ void rspamd_multipattern_add_pattern (struct rspamd_multipattern *mp,
const gchar *pattern, gint flags);
/**
+ * Adds new pattern from arbitrary string
+ * @param mp
+ * @param pattern
+ * @param patlen
+ * @param flags
+ */
+void rspamd_multipattern_add_pattern_len (struct rspamd_multipattern *mp,
+ const gchar *pattern, gsize patlen, gint flags);
+
+/**
* Compiles multipattern structure
* @param mp
* @return