Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Dec 31, 2023
1 parent 814a2ff commit db1edcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ static int openssl_kdf_derive(lua_State *L)
"out of support range, limited to 256");

int ret = PKCS5_PBKDF2_HMAC(pass, (int)passlen,
salt, (int)saltlen,
(const unsigned char*)salt, (int)saltlen,
iter,
md,
keylen,
key);
if (ret==1)
{
lua_pushlstring(L, key, keylen);
lua_pushlstring(L, (const char*)key, keylen);
} else
ret = openssl_pushresult(L, ret);

Expand Down

0 comments on commit db1edcf

Please sign in to comment.