diff options
Diffstat (limited to 'src/sp_crypt.c')
| -rw-r--r-- | src/sp_crypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_crypt.c b/src/sp_crypt.c index a27cc67..6d48554 100644 --- a/src/sp_crypt.c +++ b/src/sp_crypt.c | |||
| @@ -14,11 +14,11 @@ void generate_key(unsigned char *key) { | |||
| 14 | PHP_SHA256Init(&ctx); | 14 | PHP_SHA256Init(&ctx); |
| 15 | 15 | ||
| 16 | if (user_agent) { | 16 | if (user_agent) { |
| 17 | PHP_SHA256Update(&ctx, (unsigned char *)user_agent, strlen(user_agent)); | 17 | PHP_SHA256Update(&ctx, (const unsigned char *)user_agent, strlen(user_agent)); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | if (env_var) { | 20 | if (env_var) { |
| 21 | PHP_SHA256Update(&ctx, (unsigned char *)env_var, strlen(env_var)); | 21 | PHP_SHA256Update(&ctx, (const unsigned char *)env_var, strlen(env_var)); |
| 22 | } else { | 22 | } else { |
| 23 | sp_log_warn("cookie_encryption", | 23 | sp_log_warn("cookie_encryption", |
| 24 | "The environment variable '%s' " | 24 | "The environment variable '%s' " |
