aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-01-17 15:30:28 +0100
committerKim Alvefur <zash@zash.se>2023-01-17 15:30:28 +0100
commit732d5ad8a8fb23c2a7f75fbff90c923090898957 (patch)
tree075bce85cc2560ccbf692ef4cd1fcf8a1bdf3e4d /util-src
parent564054677fbaeff450610e5bb27d697cad6afbfa (diff)
downloadprosody-732d5ad8a8fb23c2a7f75fbff90c923090898957.tar.gz
prosody-732d5ad8a8fb23c2a7f75fbff90c923090898957.zip
util.hashes: Silence compiler warning about char pointer signedness
Introduced in dbe9781fd278
Diffstat (limited to 'util-src')
-rw-r--r--util-src/hashes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c
index d949193c..94f8bcb2 100644
--- a/util-src/hashes.c
+++ b/util-src/hashes.c
@@ -229,7 +229,7 @@ static int Levp_hkdf(lua_State *L, const EVP_MD *evp) {
size_t input_len, salt_len, info_len;
size_t actual_out_len = luaL_checkinteger(L, 1);
- const char *input = luaL_checklstring(L, 2, &input_len);
+ const unsigned char *input = (unsigned char *)luaL_checklstring(L, 2, &input_len);
const unsigned char *salt = (unsigned char *)luaL_optlstring(L, 3, NULL, &salt_len);
const unsigned char *info = (unsigned char *)luaL_checklstring(L, 4, &info_len);