Module: kamailio
Branch: master
Commit: 3297e99c1ed5d3cbd2ada5597ab2a123dce4b44d
URL:
https://github.com/kamailio/kamailio/commit/3297e99c1ed5d3cbd2ada5597ab2a12…
Author: Michael Furmur <furmur(a)pm.me>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-08-04T10:35:46+02:00
outbound: fix compiler warning on SHA1() call
---
Modified: src/modules/outbound/outbound_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3297e99c1ed5d3cbd2ada5597ab2a12…
Patch:
https://github.com/kamailio/kamailio/commit/3297e99c1ed5d3cbd2ada5597ab2a12…
---
diff --git a/src/modules/outbound/outbound_mod.c b/src/modules/outbound/outbound_mod.c
index ada7062454..df9538aace 100644
--- a/src/modules/outbound/outbound_mod.c
+++ b/src/modules/outbound/outbound_mod.c
@@ -109,7 +109,7 @@ static int mod_init(void)
if(flow_token_secret.s) {
assert(ob_key.len == SHA_DIGEST_LENGTH);
LM_DBG("flow_token_secret mod param set. use persistent ob_key");
- SHA1(flow_token_secret.s, flow_token_secret.len, ob_key.s);
+ SHA1((const unsigned char *)flow_token_secret.s, flow_token_secret.len, (unsigned char
*)ob_key.s);
} else {
if (RAND_bytes((unsigned char *) ob_key.s, ob_key.len) == 0)
{