summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
authorkkadosh2018-05-15 15:08:34 +0000
committerjvoisin2018-05-15 15:08:34 +0000
commite0c2ca8624ebbf1a2c6ff9cff3d1284236e327e2 (patch)
tree3ec1f2c77a1d0654d5a34654f1c4bb3a9eacaf86 /src/sp_utils.c
parent41b8db89d5f50aadad91d2b0fd9861017b58bb16 (diff)
Refactor the encryption process to extract encrypt/decrypt functions (#176)
Refactor the encryption process to extract encrypt/decrypt functions
Diffstat (limited to 'src/sp_utils.c')
-rw-r--r--src/sp_utils.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c
index c0b2fb9..8b7ce49 100644
--- a/src/sp_utils.c
+++ b/src/sp_utils.c
@@ -241,15 +241,13 @@ void sp_log_disable_ret(const char* restrict path,
241 "Aborted execution on return of the function '%s' in %s:%d, " 241 "Aborted execution on return of the function '%s' in %s:%d, "
242 "because the function returned '%s', which matched the rule '%s'.", 242 "because the function returned '%s', which matched the rule '%s'.",
243 path, zend_get_executed_filename(TSRMLS_C), 243 path, zend_get_executed_filename(TSRMLS_C),
244 zend_get_executed_lineno(TSRMLS_C), ret_value ? ret_value : "?", 244 zend_get_executed_lineno(TSRMLS_C), ret_value ? ret_value : "?", alias);
245 alias);
246 } else { 245 } else {
247 sp_log_msg( 246 sp_log_msg("disabled_function", sim ? SP_LOG_SIMULATION : SP_LOG_DROP,
248 "disabled_function", sim ? SP_LOG_SIMULATION : SP_LOG_DROP, 247 "Aborted execution on return of the function '%s' in %s:%d, "
249 "Aborted execution on return of the function '%s' in %s:%d, " 248 "because the function returned '%s', which matched a rule.",
250 "because the function returned '%s', which matched a rule.", 249 path, zend_get_executed_filename(TSRMLS_C),
251 path, zend_get_executed_filename(TSRMLS_C), 250 zend_get_executed_lineno(TSRMLS_C), ret_value ? ret_value : "?");
252 zend_get_executed_lineno(TSRMLS_C), ret_value ? ret_value : "?");
253 } 251 }
254 if (dump) { 252 if (dump) {
255 sp_log_request(dump, config_node->textual_representation, 253 sp_log_request(dump, config_node->textual_representation,