diff options
| author | jvoisin | 2017-09-20 10:51:22 +0200 |
|---|---|---|
| committer | jvoisin | 2017-09-21 16:09:28 +0200 |
| commit | 6487590b4fd55dddd59b43f1fcf2ebd8d56f20ac (patch) | |
| tree | 22ff7c8ee4b34a0978093afcc5b747073c625d06 /src/sp_cookie_encryption.c | |
| parent | 09a71ec9b889af34173e354ecba935a9db010a19 (diff) | |
Add travis
Diffstat (limited to 'src/sp_cookie_encryption.c')
| -rw-r--r-- | src/sp_cookie_encryption.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_cookie_encryption.c b/src/sp_cookie_encryption.c index 5248486..ad8438a 100644 --- a/src/sp_cookie_encryption.c +++ b/src/sp_cookie_encryption.c | |||
| @@ -63,7 +63,7 @@ int decrypt_cookie(zval *pDest, int num_args, va_list args, | |||
| 63 | 63 | ||
| 64 | if (value_len < | 64 | if (value_len < |
| 65 | crypto_secretbox_NONCEBYTES + crypto_secretbox_ZEROBYTES) { | 65 | crypto_secretbox_NONCEBYTES + crypto_secretbox_ZEROBYTES) { |
| 66 | sp_log_msg("cookie_encryption", LOG_DROP, | 66 | sp_log_msg("cookie_encryption", SP_LOG_DROP, |
| 67 | "Buffer underflow tentative detected in cookie encryption handling."); | 67 | "Buffer underflow tentative detected in cookie encryption handling."); |
| 68 | return ZEND_HASH_APPLY_REMOVE; | 68 | return ZEND_HASH_APPLY_REMOVE; |
| 69 | } | 69 | } |
| @@ -77,7 +77,7 @@ int decrypt_cookie(zval *pDest, int num_args, va_list args, | |||
| 77 | (unsigned char *)ZSTR_VAL(debase64), key); | 77 | (unsigned char *)ZSTR_VAL(debase64), key); |
| 78 | 78 | ||
| 79 | if (ret == -1) { | 79 | if (ret == -1) { |
| 80 | sp_log_msg("cookie_encryption", LOG_DROP, | 80 | sp_log_msg("cookie_encryption", SP_LOG_DROP, |
| 81 | "Something went wrong with the decryption of %s.", | 81 | "Something went wrong with the decryption of %s.", |
| 82 | ZSTR_VAL(hash_key->key)); | 82 | ZSTR_VAL(hash_key->key)); |
| 83 | return ZEND_HASH_APPLY_REMOVE; | 83 | return ZEND_HASH_APPLY_REMOVE; |
