ssldump 官网地址: http://www.rtfm.com/ssldump/ 依次执行: [cpp] view plain copy wget http://www.rtfm.com/ssldump/ssldump-0.9b3.tar.gz tar zxvf ssldump/ssldump-0.9b3.tar.gz cd ssldump-0.9b3 ../configure make make install 安装时遇到诸多问题 1.问题一 ./base/pcap-snoop.c:52:21: net/bpf.h: No such file or directory ./base/pcap-snoop.c: In function `main\': ./base/pcap-snoop.c:207: warning: passing arg 2 of `signal\' from incompatible pointer type ./base/pcap-snoop.c:329: warning: passing arg 3 of `pcap_loop\' from incompatible pointer type make: *** [pcap-snoop.o] Error 1 原因: 该软件依赖libpcap包,但是libpcap包中没有bpf.h 而是pcap-bpf.h ,将pcap-bpf.h 拷贝到/usr/include/net下改名bpf.h,问题解决 2.问题二:找不到MD5之类的变量和宏定义 -I/usr/include -I/usr/local/include ./ssl/ssldecode.c: In function ¡®ssl3_generate_export_iv¡¯: ./ssl/ssldecode.c:673: error: ¡®MD5_CTX¡¯ undeclared (first use in this function) ./ssl/ssldecode.c:673: error: (Each undeclared identifier is reported only once ./ssl/ssldecode.c:673: error: for each function it appears in.) ./ssl/ssldecode.c:673: error: expected ¡®;¡¯ before ¡®md5¡¯ ./ssl/ssldecode.c:676: error: ¡®md5¡¯ undeclared (first use in this function) ./ssl/ssldecode.c: In function ¡®ssl3_prf¡¯: ./ssl/ssldecode.c:694: error: ¡®MD5_CTX¡¯ undeclared (first use in this function) ./ssl/ssldecode.c:694: error: expected ¡®;¡¯ before ¡®md5¡¯ ./ssl/ssldecode.c:707: error: ¡®md5¡¯ undeclared (first use in this function) ./ssl/ssldecode.c: In function ¡®ssl_generate_keying_material¡¯: ./ssl/ssldecode.c:850: error: ¡®MD5_CTX¡¯ undeclared (first use in this function) 解决办法, Modify "ssl/ssldecode.c" and add the following line just below #ifdef OPENSSL: #include <openssl/md5.h> 3. ERROR: Couldn't create network handler ssldump 与openssl 兼容问题性问题 (责任编辑:IT) |