diff options
| author | xXx-caillou-xXx | 2018-07-13 10:36:50 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-13 08:36:50 +0000 |
| commit | 7963580d72a358975133f86f01de2d2eab08ba38 (patch) | |
| tree | 4bec345d70f687a2a6002b36e2f2fc79318959f6 /src/sp_crypt.h | |
| parent | 12b740bc7bb01ffe397cecc5b6fa25b136304911 (diff) | |
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*`
Diffstat (limited to 'src/sp_crypt.h')
| -rw-r--r-- | src/sp_crypt.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
| 12 | 12 | ||
| 13 | void generate_key(unsigned char *key); | 13 | void generate_key(unsigned char *key); |
| 14 | int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hask_key); | 14 | int decrypt_zval(zval *pDest, bool simulation, zend_hash_key *hask_key); |
| 15 | zend_string *encrypt_zval(char *data, unsigned long long data_len); | 15 | zend_string *encrypt_zval(zend_string *); |
| 16 | 16 | ||
| 17 | #endif /*__SP_CRYPT */ \ No newline at end of file | 17 | #endif /*__SP_CRYPT */ |
