hkdf: fix compiler warning

This commit is contained in:
Steffen Jaeckel 2012-11-23 03:03:19 +01:00
parent abeddd6c4b
commit 13c42a00f6

View File

@ -22,7 +22,7 @@ int hkdf_extract(int hash_idx, const unsigned char *salt, unsigned long saltlen
sense), we can use a single 0 byte as the HMAC key and still generate
valid results for HKDF. */
if (salt == NULL || saltlen == 0) {
return hmac_memory(hash_idx, "", 1, in, inlen, out, outlen);
return hmac_memory(hash_idx, (const unsigned char *)"", 1, in, inlen, out, outlen);
} else {
return hmac_memory(hash_idx, salt, saltlen, in, inlen, out, outlen);
}