[sr-dev] [kamailio/kamailio] outbound build warning (Issue #3128)

sergey-safarov notifications at github.com
Tue May 31 15:49:07 CEST 2022


```
[root at logan-0a kamailio]# make -C src/modules/outbound install
make: Entering directory '/root/kamailio/src/modules/outbound'
CC (gcc) [M outbound.so]		config.o
CC (gcc) [M outbound.so]		outbound_mod.o
outbound_mod.c: In function ‘mod_init’:
outbound_mod.c:112:25: warning: pointer targets in passing argument 1 of ‘SHA1’ differ in signedness [-Wpointer-sign]
   SHA1(flow_token_secret.s, flow_token_secret.len, ob_key.s);
        ~~~~~~~~~~~~~~~~~^~
In file included from outbound_mod.c:28:
/usr/include/openssl/sha.h:44:16: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
 unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);
                ^~~~
outbound_mod.c:112:58: warning: pointer targets in passing argument 3 of ‘SHA1’ differ in signedness [-Wpointer-sign]
   SHA1(flow_token_secret.s, flow_token_secret.len, ob_key.s);
                                                    ~~~~~~^~
In file included from outbound_mod.c:28:
/usr/include/openssl/sha.h:44:16: note: expected ‘unsigned char *’ but argument is of type ‘char *’
 unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);
                ^~~~
LD (gcc) [M outbound.so]		outbound.so
touch           /usr/local/lib64/kamailio//modules/outbound.so
install -m 755  outbound.so  /usr/local/lib64/kamailio//modules
make: Leaving directory '/root/kamailio/src/modules/outbound'
```

Build on CentOS 8 Stream

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3128
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3128 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220531/41026477/attachment-0001.htm>


More information about the sr-dev mailing list