From 7963580d72a358975133f86f01de2d2eab08ba38 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Fri, 13 Jul 2018 10:36:50 +0200 Subject: Massively optimize how rules are handled This commit does a lot of things: - Use hashtables instead of lists to store the rules - Rules that can be applied at launch time won't be tried at runtime - Improve feedback when writing nonsensical rules - Make intensive use of `zend_string` instead of `char*`--- src/sp_crypt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp_crypt.h') diff --git a/src/sp_crypt.h b/src/sp_crypt.h index 3ede104..22a571e 100644 --- a/src/sp_crypt.h +++ b/src/sp_crypt.h @@ -12,6 +12,6 @@ void generate_key(unsigned char *key); int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hask_key); -zend_string *encrypt_zval(char *data, unsigned long long data_len); +zend_string *encrypt_zval(zend_string *); -#endif /*__SP_CRYPT */ \ No newline at end of file +#endif /*__SP_CRYPT */ -- cgit v1.3