summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sp_cookie_encryption.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sp_cookie_encryption.c b/src/sp_cookie_encryption.c
index 69c438d..a65a748 100644
--- a/src/sp_cookie_encryption.c
+++ b/src/sp_cookie_encryption.c
@@ -25,6 +25,10 @@ static inline void generate_key(unsigned char *key) {
25 25
26 if (env_var) { 26 if (env_var) {
27 PHP_SHA256Update(&ctx, (unsigned char*)env_var, strlen(env_var)); 27 PHP_SHA256Update(&ctx, (unsigned char*)env_var, strlen(env_var));
28 } else {
29 sp_log_err("cookie_encryption", "The environment variable '%s'"
30 "is empty, cookies are weakly encrypted.",
31 SNUFFLEUPAGUS_G(config).config_snuffleupagus->cookies_env_var);
28 } 32 }
29 33
30 if (encryption_key) { 34 if (encryption_key) {