=> 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 ettercap-0.6.bnb42 clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -MM ./src/ec_binder.c ./src/ec_buffer.c ./src/ec_conn_buffer.c ./src/ec_debug.c ./src/ec_decodedata.c ./src/ec_dissector.c ./src/ec_dissector_bgp.c ./src/ec_dissector_ftp.c ./src/ec_dissector_hl_rcon.c ./src/ec_dissector_http.c ./src/ec_dissector_https.c ./src/ec_dissector_icq.c ./src/ec_dissector_imap.c ./src/ec_dissector_irc.c ./src/ec_dissector_ldap.c ./src/ec_dissector_mountd.c ./src/ec_dissector_msn.c ./src/ec_dissector_mysql.c ./src/ec_dissector_napster.c ./src/ec_dissector_nntp.c ./src/ec_dissector_pcanywhere.c ./src/ec_dissector_pop.c ./src/ec_dissector_portmap.c ./src/ec_dissector_quake3.c ./src/ec_dissector_rip.c ./src/ec_dissector_rlogin.c ./src/ec_dissector_smb.c ./src/ec_dissector_snmp.c ./src/ec_dissector_socks.c ./src/ec_dissector_ssh.c ./src/ec_dissector_telnet.c ./src/ec_dissector_vnc.c ./src/ec_dissector_x11.c ./src/ec_dissector_ymsg.c ./src/ec_doppleganger.c ./src/ec_dryad.c ./src/ec_error.c ./src/ec_filterdrop.c ./src/ec_fingerprint.c ./src/ec_grell.c ./src/ec_illithid.c ./src/ec_inet.c ./src/ec_inet_forge.c ./src/ec_logtofile.c ./src/ec_main.c ./src/ec_packet.c ./src/ec_parser.c ./src/ec_pcapfile.c ./src/ec_plugins.c ./src/ec_signal.c ./src/ec_threads.c ./src/ec_vbuf.c ./src/interface/console/ec_simple.c ./src/interface/ncurses/ec_interface.c ./src/interface/ncurses/ec_interface_factory.c ./src/interface/ncurses/ec_interface_form.c ./src/interface/ncurses/ec_interface_inject.c ./src/interface/ncurses/ec_interface_passive.c ./src/interface/ncurses/ec_interface_plugins.c ./src/interface/ncurses/ec_interface_sniff.c ./src/interface/ncurses/ec_interface_sniff_data.c ./src/OS/BSD/ec_inet_BSD.c > .depend clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_binder.o ./src/ec_binder.c ./src/ec_binder.c:68:21: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (tmpsock < 0) ERROR_MSG("socket()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_binder.c:81:7: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("listen()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_binder.c:94:21: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (bi_sock < 0) ERROR_MSG("accept()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 3 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_buffer.o ./src/ec_buffer.c clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_conn_buffer.o ./src/ec_conn_buffer.c clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_debug.o ./src/ec_debug.c clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_decodedata.o ./src/ec_decodedata.c ./src/ec_decodedata.c:189:7: warning: passing 'const char [25]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:269:10: warning: passing 'const char [30]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:284:81: warning: passing 'char [20]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(Conn_Between_Hosts[number_of_connections].source_mac, data->source_mac); ^~~~~~~~~~~~~~~~ ./src/include/ec_inet.h:35:66: note: passing argument to parameter 'MAC' here extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_decodedata.c:285:79: warning: passing 'char [20]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] Inet_PutMACinString(Conn_Between_Hosts[number_of_connections].dest_mac, data->dest_mac); ^~~~~~~~~~~~~~ ./src/include/ec_inet.h:35:66: note: passing argument to parameter 'MAC' here extern void Inet_PutMACinString(char *mac_string, unsigned char *MAC); ^ ./src/ec_decodedata.c:650:10: warning: passing 'const char [27]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:749:7: warning: passing 'const char [31]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:882:10: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:896:16: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:945:10: warning: passing 'const char [24]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:974:13: warning: passing 'const char [24]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_decodedata.c:1052:16: warning: passing 'const char [32]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 11 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector.o ./src/ec_dissector.c ./src/ec_dissector.c:395:10: warning: passing 'const char [33]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 1 warning generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_bgp.o ./src/ec_dissector_bgp.c ./src/ec_dissector_bgp.c:126:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_bgp.c:126:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_bgp.c:126:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_bgp.c:150:42: 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(data_to_ettercap->pass, parameters + i + 3, (len>28) ? 28 : (len+1)); ^~~~~~~~~~~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 4 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_ftp.o ./src/ec_dissector_ftp.c ./src/ec_dissector_ftp.c:50:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_ftp.c:50:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ftp.c:50:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ftp.c:55: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 ( !strncasecmp(payload, "USER ", 5) ) { ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_ftp.c:57:39: 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(data_to_ettercap->user, payload + strlen("USER "), sizeof(data_to_ettercap->user)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_ftp.c:61: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 ( !strncasecmp(payload, "PASS ", 5) ) { ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_ftp.c:63:39: 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(data_to_ettercap->pass, payload + strlen("PASS "), sizeof(data_to_ettercap->pass)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 7 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_hl_rcon.o ./src/ec_dissector_hl_rcon.c ./src/ec_dissector_hl_rcon.c:56:23: warning: cast to smaller integer type 'int' from 'UDP_header *' [-Wpointer-to-int-cast] payload = (char *) (int)udp + UDP_HEADER + 4; // 1st 4 bytes dont matter ^~~~~~~~ ./src/ec_dissector_hl_rcon.c:56:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *) (int)udp + UDP_HEADER + 4; // 1st 4 bytes dont matter ^~~~~~~~~~~~~~~~~ ./src/ec_dissector_hl_rcon.c:56:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) (int)udp + UDP_HEADER + 4; // 1st 4 bytes dont matter ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_hl_rcon.c:58: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 ( !strncasecmp(payload, "rcon", 4) ) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_hl_rcon.c:71:39: 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(data_to_ettercap->pass, payload + pos, len+1); // we are sure that len is less then 28 bytes ^~~~~~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_hl_rcon.c:76:39: 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(data_to_ettercap->info, payload, (len>135) ? 135 : len+1); ^~~~~~~ /usr/include/string.h:103:37: note: passing argument to parameter here size_t strlcat(char *, const char *, size_t); ^ 6 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_http.o ./src/ec_dissector_http.c ./src/ec_dissector_http.c:125:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_http.c:125:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_http.c:125:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_http.c:336:16: warning: passing 'const char [21]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ ./src/ec_dissector_http.c:395:12: warning: passing 'const char [21]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("realloc()"); ^~~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 5 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_https.o ./src/ec_dissector_https.c ./src/ec_dissector_https.c:127:37: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, IPS, IPD, (tcp->doff * 4)+datalen, 0xE77E, 0, IPPROTO_TCP); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ ./src/ec_dissector_https.c:198:43: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, (*index_ssl)->source_mac, ETH_P_IP ); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:12:41: note: passing argument to parameter 'buf' here extern int Inet_Forge_ethernet( u_char *buf, ^ ./src/ec_dissector_https.c:198:56: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, (*index_ssl)->source_mac, ETH_P_IP ); ^~~~~ ./src/include/ec_inet_forge.h:13:41: note: passing argument to parameter 'source' here u_char *source, // source mac address ^ ./src/ec_dissector_https.c:198:63: warning: passing 'char [6]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ethernet( pck_to_send, MyMAC, (*index_ssl)->source_mac, ETH_P_IP ); ^~~~~~~~~~~~~~~~~~~~~~~~ ./src/include/ec_inet_forge.h:14:41: note: passing argument to parameter 'dest' here u_char *dest, // dest mac address ^ ./src/ec_dissector_https.c:199:37: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] pck_to_send += Inet_Forge_ip( pck_to_send, (*index_ssl)->dest_ip, (*index_ssl)->source_ip, (tcp->doff * 4)+datalen, 0xE77E, 0, IPPROTO_TCP); ^~~~~~~~~~~ ./src/include/ec_inet_forge.h:24:35: note: passing argument to parameter 'buf' here extern int Inet_Forge_ip( u_char *buf, ^ 5 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_icq.o ./src/ec_dissector_icq.c ./src/ec_dissector_icq.c:175:23: warning: cast to smaller integer type 'int' from 'UDP_header *' [-Wpointer-to-int-cast] payload = (char *) (int)udp + UDP_HEADER; ^~~~~~~~ ./src/ec_dissector_icq.c:175:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *) (int)udp + UDP_HEADER; ^~~~~~~~~~~~~~~~~ ./src/ec_dissector_icq.c:175:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) (int)udp + UDP_HEADER; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_icq.c:237:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_icq.c:237:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_icq.c:237:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_imap.o ./src/ec_dissector_imap.c ./src/ec_dissector_imap.c:48:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_imap.c:48:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_imap.c:48:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_imap.c:50:29: 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 ( ((fromhere = strstr(payload, "LOGIN")) || (fromhere = strstr(payload, "login"))) && !strstr(payload, "AUTHENTICATE") ) // plain text login ^~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:50:70: 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 ( ((fromhere = strstr(payload, "LOGIN")) || (fromhere = strstr(payload, "login"))) && !strstr(payload, "AUTHENTICATE") ) // plain text login ^~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:50:101: 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 ( ((fromhere = strstr(payload, "LOGIN")) || (fromhere = strstr(payload, "login"))) && !strstr(payload, "AUTHENTICATE") ) // plain text login ^~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:81:40: 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 ( (fromhere = strstr(payload, "AUTHENTICATE")) ) { ^~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_imap.c:101:41: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] char collector[strlen(payload)]; ^~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_dissector_imap.c:105:53: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] Dissector_base64decode(collector, payload); ^~~~~~~ ./src/include/ec_dissector.h:40:63: note: passing argument to parameter 'bufcoded' here extern int Dissector_base64decode(char *bufplain, const char *bufcoded); ^ ./src/ec_dissector_imap.c:112:41: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] char collector[strlen(payload)]; ^~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_dissector_imap.c:116:53: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] Dissector_base64decode(collector, payload); ^~~~~~~ ./src/include/ec_dissector.h:40:63: note: passing argument to parameter 'bufcoded' here extern int Dissector_base64decode(char *bufplain, const char *bufcoded); ^ ./src/ec_dissector_imap.c:124:41: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] char collector[strlen(payload)]; ^~~~~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ ./src/ec_dissector_imap.c:128:53: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] Dissector_base64decode(collector, payload); ^~~~~~~ ./src/include/ec_dissector.h:40:63: note: passing argument to parameter 'bufcoded' here extern int Dissector_base64decode(char *bufplain, const char *bufcoded); ^ 13 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_irc.o ./src/ec_dissector_irc.c ./src/ec_dissector_irc.c:49:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_irc.c:49:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_irc.c:49:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_ldap.o ./src/ec_dissector_ldap.c ./src/ec_dissector_ldap.c:54:24: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *) ((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_ldap.c:54:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *) ((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ldap.c:54:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) ((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_mountd.o ./src/ec_dissector_mountd.c ./src/ec_dissector_mountd.c:53:19: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_mountd.c:53:10: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_mountd.c:53:8: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_msn.o ./src/ec_dissector_msn.c ./src/ec_dissector_msn.c:47:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_msn.c:47:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_msn.c:47:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_msn.c:57:18: warning: passing 'u_char [2000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "MD5 I"); ^~~~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_msn.c:81:18: warning: passing 'u_char [2000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "MD5 S"); ^~~~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ ./src/ec_dissector_msn.c:106:18: warning: passing 'u_char [2000]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = strstr(collector, "MD5 S"); ^~~~~~~~~ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ 6 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_mysql.o ./src/ec_dissector_mysql.c ./src/ec_dissector_mysql.c:48:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_mysql.c:48:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_mysql.c:48:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_mysql.c:68: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] strlcpy(seed, collector + i + 1, sizeof(seed)); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 4 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_napster.o ./src/ec_dissector_napster.c ./src/ec_dissector_napster.c:56:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_napster.c:56:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_napster.c:56:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_napster.c:71:10: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] ERROR_MSG("calloc()"); ^~~~~~~~~~~~~~~~~~~~~ src/include/ec_error.h:11:51: note: expanded from macro 'ERROR_MSG' #define ERROR_MSG(x) Error_critical_msg(__FILE__, __FUNCTION__, __LINE__, x) ^~~~~~~~~~~~ src/include/ec_error.h:9:50: note: passing argument to parameter 'function' here extern void Error_critical_msg(char *file, char *function, int line, char *message); ^ 4 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_nntp.o ./src/ec_dissector_nntp.c ./src/ec_dissector_nntp.c:47:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_nntp.c:47:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_nntp.c:47:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_nntp.c:49: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 ( !strncasecmp(payload, "AUTHINFO USER", 13) ) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_nntp.c:55: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 ( !strncasecmp(payload, "AUTHINFO PASS", 13) ) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ 5 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_pcanywhere.o ./src/ec_dissector_pcanywhere.c ./src/ec_dissector_pcanywhere.c:54:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_pcanywhere.c:54:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_pcanywhere.c:54:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_pcanywhere.c:99:21: warning: result of comparison of constant 1000 with expression of type 'u_char' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare] if (*ptr>1000) return 0; ~~~~^~~~~ 4 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_pop.o ./src/ec_dissector_pop.c ./src/ec_dissector_pop.c:50:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_pop.c:50:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_pop.c:50:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_pop.c:55: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 ( !strncasecmp(payload, "USER ", 5) ) { ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:57:39: 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(data_to_ettercap->user, payload + strlen("USER "), sizeof(data_to_ettercap->user)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:60: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 ( !strncasecmp(payload, "PASS ", 5) ) { ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:62:39: 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(data_to_ettercap->pass, payload + strlen("PASS "), sizeof(data_to_ettercap->pass)); ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_pop.c:65: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 ( !strncasecmp(payload, "APOP", 4) ) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ 8 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_portmap.o ./src/ec_dissector_portmap.c ./src/ec_dissector_portmap.c:83:19: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_portmap.c:83:10: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] buf = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_portmap.c:83:8: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_quake3.o ./src/ec_dissector_quake3.c ./src/ec_dissector_quake3.c:52:24: warning: cast to smaller integer type 'int' from 'UDP_header *' [-Wpointer-to-int-cast] payload = (char *)( (int) udp + UDP_HEADER); ^~~~~~~~~ ./src/ec_dissector_quake3.c:52:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)( (int) udp + UDP_HEADER); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_quake3.c:52:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)( (int) udp + UDP_HEADER); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_quake3.c:60: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] if(!strncasecmp(payload,"rcon",4)) ^~~~~~~ /usr/include/strings.h:64:30: note: passing argument to parameter here int strncasecmp(const char *, const char *, size_t); ^ ./src/ec_dissector_quake3.c:72:39: 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(data_to_ettercap->pass, payload, len); ^~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 5 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_rip.o ./src/ec_dissector_rip.c ./src/ec_dissector_rip.c:77:23: warning: cast to smaller integer type 'int' from 'UDP_header *' [-Wpointer-to-int-cast] payload = (char *) (int)udp + UDP_HEADER; ^~~~~~~~ ./src/ec_dissector_rip.c:77:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *) (int)udp + UDP_HEADER; ^~~~~~~~~~~~~~~~~ ./src/ec_dissector_rip.c:77:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) (int)udp + UDP_HEADER; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_rip.c:90:51: 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(data_to_ettercap->pass, payload+8, sizeof(data_to_ettercap->pass)-1); ^~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 4 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_rlogin.o ./src/ec_dissector_rlogin.c ./src/ec_dissector_rlogin.c:63:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_rlogin.c:63:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_rlogin.c:63:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_smb.o ./src/ec_dissector_smb.c ./src/ec_dissector_smb.c:89:15: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcat(dest, dummy); ^~~~ /usr/include/string.h:54:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ ./src/ec_dissector_smb.c:106:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_smb.c:106:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:106:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:128:29: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(ptr, data_to_ettercap->info, 8); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:149:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Blob = ptr; ^ ~~~ ./src/ec_dissector_smb.c:160:14: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] strcat(data_to_ettercap->pass, "\n"); // don't forget it !! datadecode needs it !! ^ ./src/ec_dissector_smb.c:157:10: note: previous statement is here if (pwlen > 0) ^ ./src/ec_dissector_smb.c:173:13: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( (ptr = (char *)memmem(ptr, 128, "NTLMSSP", 8)) == NULL) return 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:174:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Blob = ptr; ^ ~~~ ./src/ec_dissector_smb.c:175: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] ptr = strchr(ptr, 0) + 1; ^~~ /usr/include/string.h:55:26: note: passing argument to parameter here char *strchr(const char *, int); ^ ./src/ec_dissector_smb.c:175:7: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^ ~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:204:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+LM_Offset, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:32: note: passing argument to parameter 'binary' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:204:38: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+LM_Offset, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:209:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+NT_Offset, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:32: note: passing argument to parameter 'binary' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:209:41: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+NT_Offset, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:221:8: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] Blob = ptr; ^ ~~~ ./src/ec_dissector_smb.c:224:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob, data_to_ettercap->info, 24); ^~~~ ./src/ec_dissector_smb.c:82:32: note: passing argument to parameter 'binary' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:224:20: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:226:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+24, data_to_ettercap->info, 24); ^~~~~~~ ./src/ec_dissector_smb.c:82:32: note: passing argument to parameter 'binary' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:226:30: warning: passing 'char [150]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(Blob+24, data_to_ettercap->info, 24); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ ./src/ec_dissector_smb.c:239:13: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ( (ptr = (char *)memmem(ptr, 128, "NTLMSSP", 8)) == NULL) return 0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:240: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] ptr = strchr(ptr, 0) + 1; ^~~ /usr/include/string.h:55:26: note: passing argument to parameter here char *strchr(const char *, int); ^ ./src/ec_dissector_smb.c:240:7: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ptr = strchr(ptr, 0) + 1; ^ ~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_smb.c:246:21: warning: passing 'char [512]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] GetBinaryE(ptr, schallenge, 8); ^~~~~~~~~~ ./src/ec_dissector_smb.c:82:55: note: passing argument to parameter 'dest' here void GetBinaryE(unsigned char *binary, unsigned char *dest, int blen) ^ 24 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_snmp.o ./src/ec_dissector_snmp.c ./src/ec_dissector_snmp.c:83:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] name = (char *)calloc(ssize+5,1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_snmp.c:85:14: warning: returning 'u_char *' (aka 'unsigned char *') from a function with result type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] return name; ^~~~ ./src/ec_dissector_snmp.c:99:24: warning: cast to smaller integer type 'int' from 'UDP_header *' [-Wpointer-to-int-cast] payload = (char *) ((int)udp + UDP_HEADER); ^~~~~~~~ ./src/ec_dissector_snmp.c:99:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *) ((int)udp + UDP_HEADER); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_snmp.c:99:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *) ((int)udp + UDP_HEADER); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_snmp.c:105:10: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] dname = com_name(payload); ^ ~~~~~~~~~~~~~~~~~ 6 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_socks.o ./src/ec_dissector_socks.c ./src/ec_dissector_socks.c:44:23: warning: cast to smaller integer type 'int' from 'TCP_header *' [-Wpointer-to-int-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~ ./src/ec_dissector_socks.c:44:14: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] payload = (char *)((int)tcp + tcp->doff * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_socks.c:44:12: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] payload = (char *)((int)tcp + tcp->doff * 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_socks.c:62:39: 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(data_to_ettercap->user, ++payload, len+1); ^~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ ./src/ec_dissector_socks.c:71:39: 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(data_to_ettercap->pass, ++payload, len+1); ^~~~~~~~~ /usr/include/string.h:104:37: note: passing argument to parameter here size_t strlcpy(char *, const char *, size_t); ^ 5 warnings generated. clang -O2 -funroll-loops -fomit-frame-pointer -Wall -I. -Isrc/include -I/usr/pkg/include -DHAVE_CONFIG_H -DNETBSD -c -o ./src/ec_dissector_ssh.o ./src/ec_dissector_ssh.c ./src/ec_dissector_ssh.c:85:4: error: unknown type name 'des_key_schedule'; did you mean 'DES_key_schedule'? des_key_schedule k1, k2, k3; ^~~~~~~~~~~~~~~~ DES_key_schedule /usr/include/openssl/des.h:43:3: note: 'DES_key_schedule' declared here } DES_key_schedule; ^ ./src/ec_dissector_ssh.c:86:4: error: unknown type name 'des_cblock'; did you mean 'DES_cblock'? des_cblock iv1, iv2, iv3; ^~~~~~~~~~ DES_cblock /usr/include/openssl/des.h:28:23: note: 'DES_cblock' declared here typedef unsigned char DES_cblock[8]; ^ ./src/ec_dissector_ssh.c:114:4: warning: implicit declaration of function 'des_set_key' is invalid in C99 [-Wimplicit-function-declaration] des_set_key((void *)sesskey, state->k1); ^ ./src/ec_dissector_ssh.c:136:4: warning: implicit declaration of function 'des_ncbc_encrypt' is invalid in C99 [-Wimplicit-function-declaration] des_ncbc_encrypt(src, dst, len, dstate->k3, &dstate->iv3, DES_DECRYPT); ^ ./src/ec_dissector_ssh.c:186:4: warning: implicit declaration of function 'MD5' is invalid in C99 [-Wimplicit-function-declaration] MD5(p, i + j + 8, sessid); ^ ./src/ec_dissector_ssh.c:197:27: error: incomplete definition of type 'struct rsa_st' olen = BN_num_bytes(key->n); ~~~^ /usr/include/openssl/bn.h:181:40: note: expanded from macro 'BN_num_bytes' # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8) ^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:218:27: error: incomplete definition of type 'struct rsa_st' olen = BN_num_bytes(key->n); ~~~^ /usr/include/openssl/bn.h:181:40: note: expanded from macro 'BN_num_bytes' # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8) ^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:240:12: warning: assigning to 'short *' from 'u_short *' (aka 'unsigned short *') converts between pointers to integer types with different sign [-Wpointer-sign] datalen = (u_short *)(obuf + 2); ^ ~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:262:12: warning: assigning to 'short *' from 'u_short *' (aka 'unsigned short *') converts between pointers to integer types with different sign [-Wpointer-sign] datalen = (u_short *)(ibuf+2); ^ ~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:410:52: warning: passing 'char [3010]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] reconstruct_stream(payload, datalen, (*index_ssl)->s_stream); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:234:62: note: passing argument to parameter 'obuf' here void reconstruct_stream(u_char *ibuf, short bufflen, u_char *obuf) ^ ./src/ec_dissector_ssh.c:411:22: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char [3010]' converts between pointers to integer types with different sign [-Wpointer-sign] stream = (*index_ssl)->s_stream; ^ ~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:417:52: warning: passing 'char [3010]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] reconstruct_stream(payload, datalen, (*index_ssl)->d_stream); ^~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:234:62: note: passing argument to parameter 'obuf' here void reconstruct_stream(u_char *ibuf, short bufflen, u_char *obuf) ^ ./src/ec_dissector_ssh.c:418:22: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char [3010]' converts between pointers to integer types with different sign [-Wpointer-sign] stream = (*index_ssl)->d_stream; ^ ~~~~~~~~~~~~~~~~~~~~~~ ./src/ec_dissector_ssh.c:421:51: warning: passing 'char [2000]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] while ( (slen = getfrom_stream(stream, packet) ) > 0) ^~~~~~ ./src/ec_dissector_ssh.c:254:42: note: passing argument to parameter 'obuf' here int getfrom_stream(u_char *ibuf, u_char *obuf) ^ ./src/ec_dissector_ssh.c:431:31: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] des3_decrypt(packet+4, (u_char *)pacchetto, ssh_len+ssh_mod, (*index_ssl)->state_source); ^~~~~~~~ ./src/ec_dissector_ssh.c:129:27: note: passing argument to parameter 'src' here void des3_decrypt(u_char *src, u_char *dst, int len, void *state) ^ ./src/ec_dissector_ssh.c:433:31: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] des3_decrypt(packet+4, (u_char *)pacchetto, ssh_len+ssh_mod, (*index_ssl)->state_dest); ^~~~~~~~ ./src/ec_dissector_ssh.c:129:27: note: passing argument to parameter 'src' here void des3_decrypt(u_char *src, u_char *dst, int len, void *state) ^ ./src/ec_dissector_ssh.c:528:35: error: incomplete definition of type 'struct rsa_st' (*index_ssl)->serverkey->n = BN_new(); ~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:529:35: error: incomplete definition of type 'struct rsa_st' (*index_ssl)->serverkey->e = BN_new(); ~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:532:33: error: incomplete definition of type 'struct rsa_st' (*index_ssl)->hostkey->n = BN_new(); ~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:533:33: error: incomplete definition of type 'struct rsa_st' (*index_ssl)->hostkey->e = BN_new(); ~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:540:42: error: incomplete definition of type 'struct rsa_st' get_bn((*index_ssl)->serverkey->e, &p); ~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:541:42: error: incomplete definition of type 'struct rsa_st' get_bn((*index_ssl)->serverkey->n, &p); ~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:544:40: error: incomplete definition of type 'struct rsa_st' get_bn((*index_ssl)->hostkey->e, &p); ~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:545:40: error: incomplete definition of type 'struct rsa_st' get_bn((*index_ssl)->hostkey->n, &p); ~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:556:49: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] (*index_ssl2)->myserverkey=(RSA *)RSA_generate_key(server_mod, 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)); ^ ./src/ec_dissector_ssh.c:557:47: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] (*index_ssl2)->myhostkey=(RSA *)RSA_generate_key(host_mod, 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)); ^ ./src/ec_dissector_ssh.c:571:43: error: incomplete definition of type 'struct rsa_st' put_bn((*index_ssl2)->myserverkey->e, &q); ~~~~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:572:43: error: incomplete definition of type 'struct rsa_st' put_bn((*index_ssl2)->myserverkey->n, &q); ~~~~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:574:41: error: incomplete definition of type 'struct rsa_st' put_bn((*index_ssl2)->myhostkey->e, &q); ~~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:575:41: error: incomplete definition of type 'struct rsa_st' put_bn((*index_ssl2)->myhostkey->n, &q); ~~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:628:70: error: incomplete definition of type 'struct rsa_st' temp_session_id=ssh_session_id(cookie, (*index_ssl)->hostkey->n,(*index_ssl)->serverkey->n); ~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:628:97: error: incomplete definition of type 'struct rsa_st' temp_session_id=ssh_session_id(cookie, (*index_ssl)->hostkey->n,(*index_ssl)->serverkey->n); ~~~~~~~~~~~~~~~~~~~~~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ ./src/ec_dissector_ssh.c:630:72: error: incomplete definition of type 'struct rsa_st' temp_session_id=ssh_session_id(cookie, (index_ssl2)->myhostkey->n,(index_ssl2)->myserverkey->n); ~~~~~~~~~~~~~~~~~~~~~~~^ /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=] 14 warnings and 20 errors generated. *** Error code 1 Stop. make: stopped in /data/scratch/net/ettercap/work/ettercap-0.6.b *** Error code 1 Stop. make[1]: stopped in /data/pkgsrc/net/ettercap *** Error code 1 Stop. make: stopped in /data/pkgsrc/net/ettercap