Commit e5f46fb6 authored by Ronan's avatar Ronan
Browse files

fix(auth_helper): use uint8_t on hash length parameter, not input length

parent 7615a6db
......@@ -77,7 +77,7 @@ static void belle_sip_auth_choose_method(const char *algo, const char *ask, uint
// By default, using MD5 when algorithm is NULL
bctbx_md5((const uint8_t *)ask, strlen(ask), out);
} else if (!strcmp(algo, "SHA-256")) {
bctbx_sha256((const uint8_t *)ask, (uint8_t)strlen(ask), size, out);
bctbx_sha256((const uint8_t *)ask, strlen(ask), (uint8_t)size, out);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment