=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for dsniff-nox11-2.3nb11 clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./missing/dummy.c ar -cr libmissing.a dummy.o ranlib libmissing.a clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./arpspoof.c ./arpspoof.c:58:7: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char [7]' converts between pointers to integer types with different sign [-Wpointer-sign] tha = "\xff\xff\xff\xff\xff\xff"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ./arpspoof.c:162:41: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((target_ip = libnet_name_resolve(optarg, 1)) == -1) ^~~~~~ /data/scratch/security/dsniff-nox11/work/.buildlink/include/libnet10/./libnet/libnet-functions.h:147:13: note: passing argument to parameter here u_char *, /* Pointer the hostname or dotted decimal IP address */ ^ ./arpspoof.c:175:38: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((spoof_ip = libnet_name_resolve(argv[0], 1)) == -1) ^~~~~~~ /data/scratch/security/dsniff-nox11/work/.buildlink/include/libnet10/./libnet/libnet-functions.h:147:13: note: passing argument to parameter here u_char *, /* Pointer the hostname or dotted decimal IP address */ ^ ./arpspoof.c:178:30: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] if (intf == NULL && (intf = pcap_lookupdev(ebuf)) == NULL) ^ /usr/include/pcap/pcap.h:333:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device"); ^ /usr/include/pcap/funcattrs.h:227:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ 4 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./arp.c clang -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lglib-2.0 -lgthread-2.0 -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 -L/usr/lib -Wl,-R/usr/lib -o arpspoof arpspoof.o arp.o -lresolv -lrpcsvc -L. -lmissing -lpcap -L/usr/pkg/lib/libnet10 -lnet clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./dnsspoof.c ./dnsspoof.c:225:10: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((q = dns_lookup_ptr(name)) == NULL) ^ ~~~~~~~~~~~~~~~~~~~~ ./dnsspoof.c:229:20: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] anslen = dn_comp(q, p + 12, 256, NULL, NULL); ^ /usr/include/resolv.h:455:26: note: passing argument to parameter here int dn_comp(const char *, u_char *, int, u_char **, u_char **); ^ ./dnsspoof.c:295:28: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] if (dev == NULL && (dev = pcap_lookupdev(buf)) == NULL) ^ /usr/include/pcap/pcap.h:333:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device"); ^ /usr/include/pcap/funcattrs.h:227:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ 3 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./pcaputil.c ./pcaputil.c:67:30: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] if (intf == NULL && (intf = pcap_lookupdev(ebuf)) == NULL) { ^ /usr/include/pcap/pcap.h:333:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device"); ^ /usr/include/pcap/funcattrs.h:227:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ 1 warning generated. clang -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lglib-2.0 -lgthread-2.0 -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 -L/usr/lib -Wl,-R/usr/lib -o dnsspoof dnsspoof.o pcaputil.o -lresolv -lrpcsvc -L. -lmissing -lpcap -L/usr/pkg/lib/libnet10 -lnet rpcgen -h mount.x -o mount.h rpcgen -c mount.x -o mount.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./asn1.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./base64.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./buf.c ./buf.c:111:16: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = vsnprintf(buf_ptr(buf), buf_len(buf), fmt, ap); ^~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:355:33: note: passing argument to parameter here int vsnprintf(char * __restrict, size_t, const char * __restrict, ^ 1 warning generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./hex.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./magic.c ./magic.c:300:39: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] (void) fprintf(stderr, ">>>>>>>> %d" + 8 - (m->cont_level & 7), ~~~~~~~~~~~~~~^~~ ./magic.c:300:39: note: use array indexing to silence this warning (void) fprintf(stderr, ">>>>>>>> %d" + 8 - (m->cont_level & 7), ^ & [ ] 1 warning generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./mount.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./rpc.c ./rpc.c:110:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./rpc.c:119:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ 2 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./tcp_raw.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./trigger.c ./trigger.c:297:42: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((len = t->decode->dc_func(buf, len, obuf, sizeof(obuf))) > 0) { ^~~~ ./trigger.c:299:36: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] 0, 0, t->decode->dc_name, obuf, len); ^~~~ ./record.h:17:29: note: passing argument to parameter 'buf' here char *name, u_char *buf, int len); ^ ./trigger.c:343:42: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((len = t->decode->dc_func(buf, len, obuf, sizeof(obuf))) > 0) { ^~~~ ./trigger.c:346:30: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] t->decode->dc_name, obuf, len); ^~~~ ./record.h:17:29: note: passing argument to parameter 'buf' here char *name, u_char *buf, int len); ^ ./trigger.c:357:6: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf = hs->data; ^ ~~~~~~~~ ./trigger.c:375:12: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] obuf, sizeof(obuf))) > 0) { ^~~~ ./trigger.c:378:11: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] obuf, len); ^~~~ ./record.h:17:29: note: passing argument to parameter 'buf' here char *name, u_char *buf, int len); ^ ./trigger.c:475:7: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] obuf, sizeof(obuf)); ^~~~ ./trigger.c:481:11: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] obuf, len); ^~~~ ./record.h:17:29: note: passing argument to parameter 'buf' here char *name, u_char *buf, int len); ^ ./trigger.c:509:12: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] obuf, sizeof(obuf))) > 0) { ^~~~ ./trigger.c:511:31: warning: passing 'char [4096]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] t->decode->dc_name, obuf, len); ^~~~ ./record.h:17:29: note: passing argument to parameter 'buf' here char *name, u_char *buf, int len); ^ 11 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./record.c ./record.c:65:7: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] srcp = libnet_host_lookup(rec->src, Opt_dns); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./record.c:66:7: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] dstp = libnet_host_lookup(rec->dst, Opt_dns); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./record.c:101:18: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5Update(&ctx, rec->name.n_bytes, rec->name.n_len); ^~~~~~~~~~~~~~~~~ ./missing/md5.h:11:65: note: passing argument to parameter 'buf' here void MD5Update(struct MD5Context *context, unsigned char const *buf, ^ ./record.c:102:18: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] MD5Update(&ctx, rec->data.n_bytes, rec->data.n_len); ^~~~~~~~~~~~~~~~~ ./missing/md5.h:11:65: note: passing argument to parameter 'buf' here void MD5Update(struct MD5Context *context, unsigned char const *buf, ^ ./record.c:118:23: warning: passing 'u_char [2048]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, sizeof(buf), XDR_ENCODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./record.c:192:19: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] rec.data.n_bytes = buf; ^ ~~~ 6 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./dsniff.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode.c ./decode.c:120:7: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = buf + i + 1; ^ ~~~~~~~~~~~ ./decode.c:121:21: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((q = bufbuf(p, len - i, "\xff", 1)) ^ ./decode.h:48:24: note: passing argument to parameter 'big' here u_char *bufbuf(u_char *big, int blen, u_char *little, int llen); ^ ./decode.c:121:33: warning: passing 'char [2]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((q = bufbuf(p, len - i, "\xff", 1)) ^~~~~~ ./decode.h:48:47: note: passing argument to parameter 'little' here u_char *bufbuf(u_char *big, int blen, u_char *little, int llen); ^ ./decode.c:121:12: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((q = bufbuf(p, len - i, "\xff", 1)) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./decode.c:123:22: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((p = bufbuf(p, q - p, "USER\x01", ^ ./decode.h:48:24: note: passing argument to parameter 'big' here u_char *bufbuf(u_char *big, int blen, u_char *little, int llen); ^ ./decode.c:123:32: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((p = bufbuf(p, q - p, "USER\x01", ^~~~~~~~~~ ./decode.h:48:47: note: passing argument to parameter 'little' here u_char *bufbuf(u_char *big, int blen, u_char *little, int llen); ^ ./decode.c:123:13: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((p = bufbuf(p, q - p, "USER\x01", ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_aim.c ./decode_aim.c:64:22: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((j = strcspn(p, " ")) > 0) ^ /usr/include/string.h:59:29: note: passing argument to parameter here size_t strcspn(const char *, const char *); ^ ./decode_aim.c:67:15: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strtok(p, " ") == NULL) ^ /usr/include/string.h:69:31: note: passing argument to parameter here char *strtok(char * __restrict, const char * __restrict); ^ ./decode_aim.c:72:15: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = strlen(p); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_aim.c:73:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = hex_decode(p, i, p, i); ^ ./hex.h:14:22: note: passing argument to parameter 'src' here int hex_decode(char *src, int srclen, u_char *buf, int len); ^ 4 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_citrix.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_cvs.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_ftp.c ./decode_ftp.c:45:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncasecmp(buf_ptr(line), "USER ", 5) == 0 || ^~~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./decode_ftp.c:46:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncasecmp(buf_ptr(line), "ACCT ", 5) == 0 || ^~~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./decode_ftp.c:47:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncasecmp(buf_ptr(line), "PASS ", 5) == 0) { ^~~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ 3 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_hex.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_http.c ./decode_http.c:117:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((req = strtok(buf_ptr(msg), "\r\n")) == NULL) ^~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:69:31: note: passing argument to parameter here char *strtok(char * __restrict, const char * __restrict); ^ ./decode_http.c:155:12: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] query = buf_ptr(msg); ^ ~~~~~~~~~~~~ ./decode_http.c:174:24: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] i = base64_pton(p, p, strlen(p)); ^ ./base64.h:12:39: note: passing argument to parameter here int base64_pton(char const *, u_char *, size_t); ^ ./decode_http.c:181:24: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] i = base64_pton(p, p, strlen(p)); ^ ./base64.h:12:39: note: passing argument to parameter here int base64_pton(char const *, u_char *, size_t); ^ 4 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_icq.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_imap.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_irc.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_ldap.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_mmxp.c ./decode_mmxp.c:28:16: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char [33]' converts between pointers to integer types with different sign [-Wpointer-sign] static u_char *mm_xor = MM_SECRET; ^ ~~~~~~~~~ 1 warning generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_mountd.c ./decode_mountd.c:45:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf + hdrlen, len - hdrlen, XDR_DECODE); ^~~~~~~~~~~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./decode_mountd.c:57:25: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf + hdrlen, len - hdrlen, ^~~~~~~~~~~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ 2 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_napster.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_nntp.c ./decode_nntp.c:29:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (p = strtok(buf, "\r\n"); p != NULL; p = strtok(NULL, "\r\n")) { ^~~ /usr/include/string.h:69:31: note: passing argument to parameter here char *strtok(char * __restrict, const char * __restrict); ^ ./decode_nntp.c:31:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_nntp.c:32:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_nntp.c:36:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_nntp.c:47:25: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] i = base64_pton(p, p, strlen(p)); ^ ./base64.h:12:39: note: passing argument to parameter here int base64_pton(char const *, u_char *, size_t); ^ ./decode_nntp.c:49:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = strlen(obuf); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_nntp.c:50:15: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf + i, olen - i, ^~~~~~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_nntp.c:54:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_nntp.c:57:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 9 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_oracle.c ./decode_oracle.c:40:11: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf, olen, "%s\n", q); ^~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_oracle.c:44:26: warning: passing 'char [7]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((p = bufbuf(p, len, "(TNS V", 6)) == NULL) return (0); ^~~~~~~~ ./decode.h:48:47: note: passing argument to parameter 'little' here u_char *bufbuf(u_char *big, int blen, u_char *little, int llen); ^ ./decode_oracle.c:64:14: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = strlen(obuf); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_oracle.c:65:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf + j, olen + j, "%s\n", p + 117); ^~~~~~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_oracle.c:68:27: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (gotauth ? strlen(obuf) : 0); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 5 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_ospf.c ./decode_ospf.c:29:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (snprintf(obuf, olen, "%s\n", buf + 16)); ^~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ 1 warning generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_pcanywhere.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_pop.c ./decode_pop.c:27:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (p = strtok(buf, "\r\n"); p != NULL; p = strtok(NULL, "\r\n")) { ^~~ /usr/include/string.h:69:31: note: passing argument to parameter here char *strtok(char * __restrict, const char * __restrict); ^ ./decode_pop.c:31:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:32:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:35:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strip_lines(obuf, Opt_lines) < 3) ^~~~ ./decode.h:44:23: note: passing argument to parameter 'buf' here int strip_lines(char *buf, int max_lines); ^ ./decode_pop.c:38:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_pop.c:49:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (p = strtok(buf, "\r\n"); p != NULL; p = strtok(NULL, "\r\n")) { ^~~ /usr/include/string.h:69:31: note: passing argument to parameter here char *strtok(char * __restrict, const char * __restrict); ^ ./decode_pop.c:52:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:53:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:57:13: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:58:24: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] j = base64_pton(p, p, strlen(p)); ^ ./base64.h:12:39: note: passing argument to parameter here int base64_pton(char const *, u_char *, size_t); ^ ./decode_pop.c:60:13: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, " [", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:61:13: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:62:13: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "]\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:69:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:70:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_pop.c:73:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 16 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_portmap.c ./decode_portmap.c:39:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf + hdrlen, len - hdrlen, XDR_DECODE); ^~~~~~~~~~~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./decode_portmap.c:54:25: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf + hdrlen, len - hdrlen, ^~~~~~~~~~~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ 2 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_postgresql.c ./decode_postgresql.c:44:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] db = p + 4; db[63] = '\0'; ^ ~~~~~ ./decode_postgresql.c:50:27: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf + strlen(obuf), ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_postgresql.c:51:20: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] olen - strlen(obuf), ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_postgresql.c:50:13: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf + strlen(obuf), ^~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_postgresql.c:58:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 5 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_pptp.c ./decode_pptp.c:184:20: warning: passing 'u_char [64]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((p = strchr(name, '\\')) == NULL) ^~~~ /usr/include/string.h:55:26: note: passing argument to parameter here char *strchr(const char *, int); ^ ./decode_pptp.c:184:11: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((p = strchr(name, '\\')) == NULL) ^ ~~~~~~~~~~~~~~~~~~ ./decode_pptp.c:190:32: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] SHA1_Update(&ctx, p, strlen(p)); ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 3 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_rip.c ./decode_rip.c:30:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (snprintf(obuf, olen, "%s\n", buf + 20)); ^~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ 1 warning generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_rlogin.c ./decode_rlogin.c:28:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(obuf, "[", olen); ^~~~ /usr/include/string.h:104:23: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./decode_rlogin.c:29:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); /* Local username */ ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_rlogin.c:29:16: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); /* Local username */ ^ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_rlogin.c:30:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, ":", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_rlogin.c:31:14: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p += strlen(p) + 1; ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_rlogin.c:33:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); /* Remote username */ ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_rlogin.c:33:16: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); /* Remote username */ ^ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_rlogin.c:34:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "]\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_rlogin.c:35:14: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p += strlen(p) + 1; ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_rlogin.c:37:14: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p += strlen(p) + 1; /* Skip term info */ ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_rlogin.c:39:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((q = strstr(p, "\xff\xffss")) != NULL) /* Skip window size */ ^ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./decode_rlogin.c:39:9: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((q = strstr(p, "\xff\xffss")) != NULL) /* Skip window size */ ^ ~~~~~~~~~~~~~~~~~~~~~~~ ./decode_rlogin.c:42:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (p = strtok(p, "\r\n"); p != NULL; p = strtok(NULL, "\r\n")) { ^ /usr/include/string.h:69:31: note: passing argument to parameter here char *strtok(char * __restrict, const char * __restrict); ^ ./decode_rlogin.c:42:9: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (p = strtok(p, "\r\n"); p != NULL; p = strtok(NULL, "\r\n")) { ^ ~~~~~~~~~~~~~~~~~ ./decode_rlogin.c:42:43: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (p = strtok(p, "\r\n"); p != NULL; p = strtok(NULL, "\r\n")) { ^ ~~~~~~~~~~~~~~~~~~~~ ./decode_rlogin.c:43:11: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_rlogin.c:43:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_rlogin.c:44:11: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_rlogin.c:46:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strip_lines(obuf, Opt_lines)) ^~~~ ./decode.h:44:23: note: passing argument to parameter 'buf' here int strip_lines(char *buf, int max_lines); ^ ./decode_rlogin.c:49:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 20 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_smb.c ./decode_smb.c:64:9: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pass = q + 6; ^ ~~~~~ ./decode_smb.c:72:9: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pass = q + 12; ^ ~~~~~~ ./decode_smb.c:80:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, user, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_smb.c:81:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, " ", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_smb.c:82:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, pass, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_smb.c:83:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_smb.c:86:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 7 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_smtp.c ./decode_smtp.c:28:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (p = strtok(buf, "\r\n"); p != NULL; p = strtok(NULL, "\r\n")) { ^~~ /usr/include/string.h:69:31: note: passing argument to parameter here char *strtok(char * __restrict, const char * __restrict); ^ ./decode_smtp.c:30:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_smtp.c:31:23: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] i = base64_pton(p, p, strlen(p)); ^ ./base64.h:12:39: note: passing argument to parameter here int base64_pton(char const *, u_char *, size_t); ^ ./decode_smtp.c:33:15: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = strlen(obuf); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_smtp.c:34:13: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf + j, olen - j, " [%s]\n", p); ^~~~~~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_smtp.c:38:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_smtp.c:40:23: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] i = base64_pton(p, p, strlen(p)); ^ ./base64.h:12:39: note: passing argument to parameter here int base64_pton(char const *, u_char *, size_t); ^ ./decode_smtp.c:42:15: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] j = strlen(obuf); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_smtp.c:43:13: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf + j, olen - j, " [%s]\n", p); ^~~~~~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_smtp.c:52:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 10 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_sniffer.c ./decode_sniffer.c:32:20: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlcpy(obuf, "[]\n", olen)); ^~~~ /usr/include/string.h:104:23: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./decode_sniffer.c:36:20: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlcpy(obuf, "[]\n", olen)); ^~~~ /usr/include/string.h:104:23: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./decode_sniffer.c:40:29: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf[len - 3]= '\0'; strtok(&buf[32], "\r\n"); ^~~~~~~~ /usr/include/string.h:69:31: note: passing argument to parameter here char *strtok(char * __restrict, const char * __restrict); ^ ./decode_sniffer.c:41:11: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf, olen, "%s [", &buf[32]); ^~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_sniffer.c:42:15: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = strlen(obuf); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_sniffer.c:43:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] i = base64_pton(&buf[32], &obuf[len], olen - len - 3); ^~~~~~~~ ./base64.h:12:29: note: passing argument to parameter here int base64_pton(char const *, u_char *, size_t); ^ ./decode_sniffer.c:45:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "]\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_sniffer.c:47:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 8 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_snmp.c ./decode_snmp.c:45:4: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = buf_strdup(b); ^ ~~~~~~~~~~~~~ 1 warning generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_socks.c ./decode_socks.c:45:11: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf, olen, "%s ", p - 1); ^~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_socks.c:53:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p - 1, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_socks.c:53:16: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, p - 1, olen); ^~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_socks.c:54:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_socks.c:56:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 5 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_tds.c ./decode_tds.c:152:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, tl->username, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_tds.c:153:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_tds.c:159:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, tl->password, olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_tds.c:160:12: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_tds.c:186:27: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf + strlen(obuf), ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_tds.c:187:20: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] olen - strlen(obuf), ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_tds.c:186:13: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf + strlen(obuf), ^~~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_tds.c:191:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 8 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_telnet.c ./decode_telnet.c:25:23: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!is_ascii_string(buf, len)) ^~~ ./decode.h:46:27: note: passing argument to parameter 'buf' here int is_ascii_string(char *buf, int len); ^ ./decode_telnet.c:28:18: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strip_lines(buf, Opt_lines) < 2) ^~~ ./decode.h:44:23: note: passing argument to parameter 'buf' here int strip_lines(char *buf, int max_lines); ^ ./decode_telnet.c:31:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(obuf, buf, olen); ^~~~ /usr/include/string.h:104:23: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./decode_telnet.c:31:16: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(obuf, buf, olen); ^~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./decode_telnet.c:33:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 5 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_vrrp.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_yp.c ./decode_yp.c:84:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf + hdrlen, len - hdrlen, XDR_DECODE); ^~~~~~~~~~~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./decode_yp.c:86:13: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf, olen, ^~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_yp.c:95:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./decode_yp.c:116:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf + hdrlen, len - hdrlen, XDR_DECODE); ^~~~~~~~~~~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./decode_yp.c:129:25: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf + hdrlen, len - hdrlen, ^~~~~~~~~~~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./decode_yp.c:133:15: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] snprintf(obuf, olen, "%s\n", ^~~~ /usr/include/stdio.h:353:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ...) ^ ./decode_yp.c:141:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 7 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./decode_x11.c ./decode_x11.c:24:4: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = buf + 12; ^ ~~~~~~~~ ./decode_x11.c:29:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcpy(obuf, "MIT-MAGIC-COOKIE-1 ", olen); ^~~~ /usr/include/string.h:104:23: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./decode_x11.c:33:4: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] q = obuf + 19; ^ ~~~~~~~~~ ./decode_x11.c:37:10: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strlcat(obuf, "\n", olen); ^~~~ /usr/include/string.h:103:23: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ ./decode_x11.c:39:17: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return (strlen(obuf)); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ 5 warnings generated. clang -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lglib-2.0 -lgthread-2.0 -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 -L/usr/lib -Wl,-R/usr/lib -o dsniff asn1.o base64.o buf.o hex.o magic.o mount.o pcaputil.o rpc.o tcp_raw.o trigger.o record.o dsniff.o decode.o decode_aim.o decode_citrix.o decode_cvs.o decode_ftp.o decode_hex.o decode_http.o decode_icq.o decode_imap.o decode_irc.o decode_ldap.o decode_mmxp.o decode_mountd.o decode_napster.o decode_nntp.o decode_oracle.o decode_ospf.o decode_pcanywhere.o decode_pop.o decode_portmap.o decode_postgresql.o decode_pptp.o decode_rip.o decode_rlogin.o decode_smb.o decode_smtp.o decode_sniffer.o decode_snmp.o decode_socks.o decode_tds.o decode_telnet.o decode_vrrp.o decode_yp.o decode_x11.o -lresolv -lrpcsvc -L. -lmissing -L/usr/pkg/lib -lnids -lpcap -L/usr/pkg/lib/libnet10 -lnet -lssl -lcrypto rpcgen -h nfs_prot.x -o nfs_prot.h rpcgen -c nfs_prot.x -o nfs_prot.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./nfs_prot.c clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./filesnarf.c ./filesnarf.c:161:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./filesnarf.c:174:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./filesnarf.c:177:24: warning: passing 'char [32]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] fname = fh_map_find(rargs.file.data, NFS_FHSIZE); ^~~~~~~~~~~~~~~ ./filesnarf.c:105:21: note: passing argument to parameter 'fh' here fh_map_find(u_char *fh, int len) ^ ./filesnarf.c:205:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./filesnarf.c:211:9: warning: passing 'char [32]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] dres.diropres_u.diropres.file.data, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./filesnarf.c:89:36: note: passing argument to parameter 'fh' here fh_map_add(char *filename, u_char *fh, int len) ^ ./filesnarf.c:218:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./filesnarf.c:224:7: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] rres.readres_u.reply.data.data_val, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./filesnarf.c:132:62: note: passing argument to parameter 'buf' here nfs_save(struct tuple4 *addr, struct myreadargs *ma, u_char *buf, int len) ^ ./filesnarf.c:246:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./filesnarf.c:259:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./filesnarf.c:262:24: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] fname = fh_map_find(rargs.file.data.data_val, ^~~~~~~~~~~~~~~~~~~~~~~~ ./filesnarf.c:105:21: note: passing argument to parameter 'fh' here fh_map_find(u_char *fh, int len) ^ ./filesnarf.c:290:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./filesnarf.c:296:6: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] lres.LOOKUP3res_u.resok.object.data.data_val, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./filesnarf.c:89:36: note: passing argument to parameter 'fh' here fh_map_add(char *filename, u_char *fh, int len) ^ ./filesnarf.c:304:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] xdrmem_create(&xdrs, buf, len, XDR_DECODE); ^~~ /usr/include/rpc/xdr.h:347:42: note: passing argument to parameter here extern void xdrmem_create(XDR *, char *, unsigned int, enum xdr_op); ^ ./filesnarf.c:310:7: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] rres.READ3res_u.resok.data.data_val, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./filesnarf.c:132:62: note: passing argument to parameter 'buf' here nfs_save(struct tuple4 *addr, struct myreadargs *ma, u_char *buf, int len) ^ ./filesnarf.c:395:6: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf = hs->data; ^ ~~~~~~~~ 15 warnings generated. clang -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lglib-2.0 -lgthread-2.0 -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 -L/usr/lib -Wl,-R/usr/lib -o filesnarf filesnarf.o nfs_prot.o pcaputil.o rpc.o -lresolv -lrpcsvc -L. -lmissing -L/usr/pkg/lib -lnids -lpcap -L/usr/pkg/lib/libnet10 -lnet clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./macof.c ./macof.c:70:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Src = libnet_name_resolve(optarg, 0); ^~~~~~ /data/scratch/security/dsniff-nox11/work/.buildlink/include/libnet10/./libnet/libnet-functions.h:147:13: note: passing argument to parameter here u_char *, /* Pointer the hostname or dotted decimal IP address */ ^ ./macof.c:73:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Dst = libnet_name_resolve(optarg, 0); ^~~~~~ /data/scratch/security/dsniff-nox11/work/.buildlink/include/libnet10/./libnet/libnet-functions.h:147:13: note: passing argument to parameter here u_char *, /* Pointer the hostname or dotted decimal IP address */ ^ ./macof.c:100:23: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] if (!Intf && (Intf = pcap_lookupdev(ebuf)) == NULL) ^ /usr/include/pcap/pcap.h:333:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device"); ^ /usr/include/pcap/funcattrs.h:227:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ 3 warnings generated. clang -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lglib-2.0 -lgthread-2.0 -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 -L/usr/lib -Wl,-R/usr/lib -o macof macof.o -lresolv -lrpcsvc -L. -lmissing -lpcap -L/usr/pkg/lib/libnet10 -lnet clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./mailsnarf.c ./mailsnarf.c:116:17: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] buf_init(&buf, data, len); ^~~~ ./buf.h:22:34: note: passing argument to parameter 'data' here void buf_init(buf_t buf, u_char *data, int len); ^ ./mailsnarf.c:122:19: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncasecmp(buf_ptr(line), "RETR ", 5) == 0) { ^~~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./mailsnarf.c:136:17: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] buf_init(&buf, data, len); ^~~~ ./buf.h:22:34: note: passing argument to parameter 'data' here void buf_init(buf_t buf, u_char *data, int len); ^ ./mailsnarf.c:158:20: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (regex_match(buf_ptr(body))) ^~~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mailsnarf.c:65:19: note: passing argument to parameter 'string' here regex_match(char *string) ^ ./mailsnarf.c:159:26: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] print_mbox_msg(NULL, buf_ptr(body)); ^~~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mailsnarf.c:87:34: note: passing argument to parameter 'msg' here print_mbox_msg(char *from, char *msg) ^ ./mailsnarf.c:174:17: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] buf_init(&buf, data, len); ^~~~ ./buf.h:22:34: note: passing argument to parameter 'data' here void buf_init(buf_t buf, u_char *data, int len); ^ ./mailsnarf.c:180:6: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = buf_ptr(line); ^ ~~~~~~~~~~~~~ ./mailsnarf.c:214:20: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (regex_match(buf_ptr(body))) ^~~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mailsnarf.c:65:19: note: passing argument to parameter 'string' here regex_match(char *string) ^ ./mailsnarf.c:215:32: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] print_mbox_msg(smtp->from, buf_ptr(body)); ^~~~~~~~~~~~~ ./buf.h:31:20: note: expanded from macro 'buf_ptr' #define buf_ptr(b) ((b)->base + (b)->offset) ^~~~~~~~~~~~~~~~~~~~~~~~~ ./mailsnarf.c:87:34: note: passing argument to parameter 'msg' here print_mbox_msg(char *from, char *msg) ^ 9 warnings generated. clang -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lglib-2.0 -lgthread-2.0 -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 -L/usr/lib -Wl,-R/usr/lib -o mailsnarf mailsnarf.o buf.o pcaputil.o -lresolv -lrpcsvc -L. -lmissing -L/usr/pkg/lib -lnids -lpcap -L/usr/pkg/lib/libnet10 -lnet clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./msgsnarf.c ./msgsnarf.c:142:7: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = buf_strdup(msg); ^ ~~~~~~~~~~~~~~~ ./msgsnarf.c:144:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (regex_match(p)) ^ ./msgsnarf.c:63:19: note: passing argument to parameter 'string' here regex_match(char *string) ^ ./msgsnarf.c:158:7: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = buf_strdup(msg); ^ ~~~~~~~~~~~~~~~ ./msgsnarf.c:160:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (regex_match(p)) ^ ./msgsnarf.c:63:19: note: passing argument to parameter 'string' here regex_match(char *string) ^ ./msgsnarf.c:194:7: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = buf_strdup(msg); ^ ~~~~~~~~~~~~~~~ ./msgsnarf.c:196:21: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (p && strlen(p) && regex_match(p)) { ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./msgsnarf.c:196:39: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (p && strlen(p) && regex_match(p)) { ^ ./msgsnarf.c:63:19: note: passing argument to parameter 'string' here regex_match(char *string) ^ ./msgsnarf.c:594:24: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] i = process_msgs(c, ts->server.data, ^~~~~~~~~~~~~~~ ./msgsnarf.c:599:24: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] i = process_msgs(c, ts->client.data, ^~~~~~~~~~~~~~~ ./msgsnarf.c:610:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] process_msgs(c, ts->server.data, ^~~~~~~~~~~~~~~ ./msgsnarf.c:613:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] process_msgs(c, ts->client.data, ^~~~~~~~~~~~~~~ 11 warnings generated. clang -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lglib-2.0 -lgthread-2.0 -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 -L/usr/lib -Wl,-R/usr/lib -o msgsnarf msgsnarf.o buf.o pcaputil.o -lresolv -lrpcsvc -L. -lmissing -L/usr/pkg/lib -lnids -lpcap -L/usr/pkg/lib/libnet10 -lnet clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./sshmitm.c ./sshmitm.c:133:28: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] ssh_client_ctx->hostkey = RSA_generate_key(1024, 35, NULL, NULL); ^ /usr/include/openssl/rsa.h:235:1: note: 'RSA_generate_key' has been explicitly marked deprecated here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ /usr/include/openssl/opensslconf.h:171:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:122:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ ./sshmitm.c:134:28: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] ssh_client_ctx->servkey = RSA_generate_key(768, 35, NULL, NULL); ^ /usr/include/openssl/rsa.h:235:1: note: 'RSA_generate_key' has been explicitly marked deprecated here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ /usr/include/openssl/opensslconf.h:171:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:122:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ ./sshmitm.c:202:42: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ssh_strlcat(userpass, sizeof(userpass), buf + 1, i - 1); ^~~~~~~ ./sshmitm.c:57:40: note: passing argument to parameter 'src' here ssh_strlcat(char *dst, int size, char *src, int len) ^ ./sshmitm.c:235:11: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf + 1, i - 1); ^~~~~~~ ./sshmitm.c:57:40: note: passing argument to parameter 'src' here ssh_strlcat(char *dst, int size, char *src, int len) ^ ./sshmitm.c:246:13: warning: passing 'char [1024]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] userpass, strlen(userpass)); ^~~~~~~~ ./record.h:17:29: note: passing argument to parameter 'buf' here char *name, u_char *buf, int len); ^ ./sshmitm.c:340:35: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] (struct sockaddr *)&csin, &i); ^~ /usr/include/sys/socket.h:620:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ ./sshmitm.c:391:32: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] if ((ip = libnet_name_resolve(argv[0], 1)) == -1) ^~~~~~~ /data/scratch/security/dsniff-nox11/work/.buildlink/include/libnet10/./libnet/libnet-functions.h:147:13: note: passing argument to parameter here u_char *, /* Pointer the hostname or dotted decimal IP address */ ^ 7 warnings generated. clang -O2 -I/usr/pkg/include/libnet10 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\"/usr/pkg/lib/\" -I. -I/usr/pkg/include -I/usr/include/pcap -I/usr/pkg/include/libnet10 -I./missing -c ./ssh.c ./ssh.c:136:2: warning: implicit declaration of function 'MD5' is invalid in C99 [-Wimplicit-function-declaration] MD5(p, i + j + 8, sessid); ^ ./ssh.c:181:2: warning: implicit declaration of function 'ERR_load_crypto_strings' is invalid in C99 [-Wimplicit-function-declaration] ERR_load_crypto_strings(); ^ ./ssh.c:243:26: error: incomplete definition of type 'struct rsa_st' put_bn(ssh->ctx->servkey->e, &p); /* servkey exponent */ ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:244:26: error: incomplete definition of type 'struct rsa_st' put_bn(ssh->ctx->servkey->n, &p); /* servkey modulus */ ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:246:26: error: incomplete definition of type 'struct rsa_st' put_bn(ssh->ctx->hostkey->e, &p); /* hostkey exponent */ ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:247:26: error: incomplete definition of type 'struct rsa_st' put_bn(ssh->ctx->hostkey->n, &p); /* hostkey modulus */ ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:298:30: error: incomplete definition of type 'struct rsa_st' if (BN_cmp(ssh->ctx->servkey->n, ssh->ctx->hostkey->n) > 0) { ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:298:52: error: incomplete definition of type 'struct rsa_st' if (BN_cmp(ssh->ctx->servkey->n, ssh->ctx->hostkey->n) > 0) { ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:318:51: error: incomplete definition of type 'struct rsa_st' if ((p = ssh_session_id(cookie, ssh->ctx->hostkey->n, ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:319:22: error: incomplete definition of type 'struct rsa_st' ssh->ctx->servkey->n)) == NULL) { ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:379:19: error: incomplete definition of type 'struct rsa_st' ssh->ctx->servkey->n = BN_new(); ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:380:19: error: incomplete definition of type 'struct rsa_st' ssh->ctx->servkey->e = BN_new(); ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:383:26: error: incomplete definition of type 'struct rsa_st' get_bn(ssh->ctx->servkey->e, &p, &i); ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:384:26: error: incomplete definition of type 'struct rsa_st' get_bn(ssh->ctx->servkey->n, &p, &i); ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:388:19: error: incomplete definition of type 'struct rsa_st' ssh->ctx->hostkey->n = BN_new(); ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:389:19: error: incomplete definition of type 'struct rsa_st' ssh->ctx->hostkey->e = BN_new(); ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:392:26: error: incomplete definition of type 'struct rsa_st' get_bn(ssh->ctx->hostkey->e, &p, &i); ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:393:26: error: incomplete definition of type 'struct rsa_st' get_bn(ssh->ctx->hostkey->n, &p, &i); ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:405:51: error: incomplete definition of type 'struct rsa_st' if ((p = ssh_session_id(cookie, ssh->ctx->hostkey->n, ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:406:22: error: incomplete definition of type 'struct rsa_st' ssh->ctx->servkey->n)) == NULL) { ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./ssh.c:422:30: error: incomplete definition of type 'struct rsa_st' if (BN_cmp(ssh->ctx->servkey->n, ssh->ctx->hostkey->n) < 0) { ~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 2 warnings and 20 errors generated. *** Error code 1 Stop. make: stopped in /data/scratch/security/dsniff-nox11/work/dsniff-2.3 *** Error code 1 Stop. make[1]: stopped in /data/pkgsrc/security/dsniff-nox11 *** Error code 1 Stop. make: stopped in /data/pkgsrc/security/dsniff-nox11