Module: kamailio
Branch: master
Commit: e8d373a1baa7763984753b24e4067f8edb1913af
URL:
https://github.com/kamailio/kamailio/commit/e8d373a1baa7763984753b24e4067f8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-09T12:19:54+01:00
crypto: removed unnecessary cast that resulted in compile warning
- GH #2543
---
Modified: src/modules/crypto/crypto_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e8d373a1baa7763984753b24e4067f8…
Patch:
https://github.com/kamailio/kamailio/commit/e8d373a1baa7763984753b24e4067f8…
---
diff --git a/src/modules/crypto/crypto_mod.c b/src/modules/crypto/crypto_mod.c
index cdb7faf8e6..b0904d820e 100644
--- a/src/modules/crypto/crypto_mod.c
+++ b/src/modules/crypto/crypto_mod.c
@@ -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;