Skip to content

Commit

Permalink
crypto: removed unnecessary cast that resulted in compile warning
Browse files Browse the repository at this point in the history
- GH #2543
  • Loading branch information
miconda committed Nov 9, 2020
1 parent ef3233d commit e8d373a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/crypto/crypto_mod.c
Expand Up @@ -313,7 +313,7 @@ static int ki_crypto_hmac_sha256_helper(sip_msg_t* msg, str *ins, str *key,

memset(&val, 0, sizeof(pv_value_t));
val.rs.s = pv_get_buffer();
val.rs.len = base64url_enc((unsigned char *)digest, digest_len, (unsigned char *)val.rs.s, pv_get_buffer_size()-1);
val.rs.len = base64url_enc((char *)digest, digest_len, val.rs.s, pv_get_buffer_size()-1);
if (val.rs.len < 0) {
LM_ERR("base64 output of digest value is too large (need %d)\n", -val.rs.len);
goto error;
Expand Down

0 comments on commit e8d373a

Please sign in to comment.