diff options
Diffstat (limited to 'engine/lib/api.php')
-rw-r--r-- | engine/lib/api.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/api.php b/engine/lib/api.php index aedaae878..75486d71c 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -628,6 +628,11 @@ */ function calculate_hmac($algo, $time, $api_key, $secret_key, $get_variables, $post_hash = "") { + global $CONFIG; + + if ((isset($CONFIG)) && ($CONFIG->debug)) + error_log("HMAC Parts: $algo, $time, $api_key, $secret_key, $get_variables, $post_hash"); + $ctx = hash_init(map_api_hash($algo), HASH_HMAC, $secret_key); hash_update($ctx, trim($time)); |