Browse code

outbound: fix compiler warning on SHA1() call

Michael Furmur authored on 04/08/2021 08:28:38
Showing 1 changed files
... ...
@@ -109,7 +109,7 @@ static int mod_init(void)
109 109
 	if(flow_token_secret.s) {
110 110
 		assert(ob_key.len == SHA_DIGEST_LENGTH);
111 111
 		LM_DBG("flow_token_secret mod param set. use persistent ob_key");
112
-		SHA1(flow_token_secret.s, flow_token_secret.len, ob_key.s);
112
+		SHA1((const unsigned char *)flow_token_secret.s, flow_token_secret.len, (unsigned char *)ob_key.s);
113 113
 	} else {
114 114
 		if (RAND_bytes((unsigned char *) ob_key.s, ob_key.len) == 0)
115 115
 		{