From e7f541396715ee2895abcf73044b91ae9b746201 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Wed, 20 Dec 2017 18:09:53 +0100 Subject: Better parsing of the rules Thanks to this huge commit from @xXx-caillou-xXx, we can now write amazingly flexible rules.--- src/sp_utils.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/sp_utils.h') diff --git a/src/sp_utils.h b/src/sp_utils.h index a17ac4f..e54f307 100644 --- a/src/sp_utils.h +++ b/src/sp_utils.h @@ -57,14 +57,12 @@ void sp_log_msg(char const *feature, char const *level, const char* fmt, ...); int compute_hash(const char *const filename, char *file_hash); char *sp_convert_to_string(zval *); bool sp_match_value(const char *, const char *, const pcre *); -int sp_match_array_key(const zval *, const char *, const pcre *); -int sp_match_array_key_recurse(const zval *, sp_node_t *, const char *, - const pcre *); +bool sp_match_array_key(const zval *, const char *, const pcre *); +bool sp_match_array_value(const zval *, const char *, const pcre *); void sp_log_disable(const char *restrict, const char *restrict, const char *restrict, const sp_disabled_function *); void sp_log_disable_ret(const char *restrict, const char *restrict, const sp_disabled_function *); -char *sp_getenv(char *); int is_regexp_matching(const pcre *, const char *); int hook_function(const char *, HashTable *, void (*)(INTERNAL_FUNCTION_PARAMETERS), bool); -- cgit v1.3