diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 77d0190..0000000 --- a/Makefile.am +++ /dev/null @@ -1,37 +0,0 @@ -sbin_PROGRAMS = ssldump -man_MANS = ssldump.1 - -ssldump_SOURCES = \ - base/pcap-snoop.c\ - base/network.c\ - base/proto_mod.c\ - base/tcppack.c\ - base/tcpconn.c\ - null/null_analyze.c\ - common/lib/r_data.c\ - common/lib/r_assoc.c\ - common/lib/r_errors.c\ - common/lib/debug.c\ - ssl/ssl_analyze.c\ - ssl/ssldecode.c\ - ssl/sslprint.c\ - ssl/ssl.enums.c\ - ssl/sslxprint.c\ - ssl/ciphersuites.c\ - ssl/ssl_rec.c\ - pcap/logpkt.c\ - pcap/pcap_logger.c\ - pcap/sys.c - - -ssldump_CPPFLAGS = \ - -I$(top_srcdir)\ - -I$(top_srcdir)/common/include\ - -I$(top_srcdir)/common/lib\ - -I$(top_srcdir)/null\ - -I$(top_srcdir)/ssl\ - -I$(top_srcdir)/base\ - -I$(top_srcdir)/pcap\ - -D_DEFAULT_SOURCE=1\ - -DLINUX\ - -DOPENSSL diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 4bc5834..0000000 --- a/autogen.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -autoreconf -v -i - - diff --git a/base/Makefile.am b/base/Makefile.am deleted file mode 100644 index e69de29..0000000 diff --git a/common/Makefile.am b/common/Makefile.am deleted file mode 100644 index 0262e4d..0000000 --- a/common/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = lib diff --git a/common/lib/Makefile.am b/common/lib/Makefile.am deleted file mode 100644 index e69de29..0000000 diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 5eafab7..0000000 --- a/configure.ac +++ /dev/null @@ -1,182 +0,0 @@ -# -*- Autoconf -*- -# Process this file with autoconf to produce a configure script. - -AC_PREREQ([2.69]) -AC_INIT([ssldump], [1.4]) -AM_INIT_AUTOMAKE([subdir-objects]) -AC_CONFIG_SRCDIR([base/pcap-snoop.c]) -AC_CONFIG_HEADERS([config.h]) - -AC_CANONICAL_HOST - -# Checks for programs. -: ${CFLAGS=""} -AC_PROG_CC([gcc clang]) -AM_PROG_CC_C_O -AC_PROG_MAKE_SET -AC_PROG_INSTALL - -# Checks for header files. -AC_CHECK_HEADERS([arpa/inet.h memory.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h],,[AC_MSG_ERROR([Missing header.])]) -AC_HEADER_STDC -AC_HEADER_TIME - -# Checks for typedefs, structures, and compiler characteristics. -AC_CHECK_SIZEOF([unsigned short]) -AC_CHECK_SIZEOF([unsigned int]) -AC_CHECK_SIZEOF([unsigned long]) -AC_CHECK_SIZEOF([unsigned long long]) - -# Checks for library functions. -AC_CHECK_FUNCS([malloc realloc gethostbyaddr gettimeofday inet_ntoa isascii memmove memset strchr strdup strstr strtol]) - -have_pcap=no -AC_SEARCH_LIBS([pcap_create], [pcap], [have_pcap=yes]) - -if test "x${have_pcap}" = xyes; then - AC_CHECK_HEADERS([pcap.h pcap-bpf.h], [], [have_pcap=no]) -fi - -if test "x${have_pcap}" = xno; then - AC_MSG_ERROR([ ---------------------------------------- -Unable to find libpcap on this system -Check 'config.log' for more information - -On Debian and Ubuntu systems you can -install the required library and header -files with - apt install libpcap-dev ---------------------------------------- - ]) -fi - -have_ssl=no -AC_SEARCH_LIBS([OPENSSL_init_ssl], [ssl], [have_ssl=yes]) -AC_SEARCH_LIBS(CRYPTO_new_ex_data, [crypto], [have_crypto=yes]) - -if test "x${have_ssl}" = xyes; then - AC_CHECK_HEADERS([openssl/ssl.h], [], [have_ssl=no]) -fi - -if test "x${have_ssl}" = xno; then - AC_MSG_ERROR([ ---------------------------------------- -Unable to find libssl on this system -Check 'config.log' for more information - -On Debian and Ubuntu systems you can -install the required library and header -files with - apt install libssl-dev ---------------------------------------- - ]) -fi - -have_libnet=no -AC_SEARCH_LIBS([libnet_init], [net], [have_libnet=yes]) - -if test "x${have_libnet}" = xyes; then - AC_CHECK_HEADERS([libnet.h], [], [have_libnet=no]) -fi - -if test "x${have_libnet}" = xno; then - AC_MSG_ERROR([ ---------------------------------------- -Unable to find libnet on this system -Check 'config.log' for more information - -On Debian and Ubuntu systems you can -install the required library and header -files with - apt install libnet1-dev ---------------------------------------- - ]) -fi - -have_libjson_c=no -AC_SEARCH_LIBS([json_object_new_object], [json-c], [have_libjson_c=yes]) - -if test "x${have_libjson_c}" = xyes; then - AC_CHECK_HEADERS([json-c/json.h], [], [have_libjson_c=no]) -fi - -if test "x${have_libjson_c}" = xno; then - AC_MSG_ERROR([ ---------------------------------------- -Unable to find libjson-c on this system -Check 'config.log' for more information - -On Debian and Ubuntu systems you can -install the required library and header -files with - apt install libjson-c-dev ---------------------------------------- - ]) -fi - -AC_ARG_ENABLE([optimization], - [ --disable-optimization disable compiler optimizations], - [optimization=${enableval}], [optimization=yes]) - -if test "x${optimization}" = xno; then - CFLAGS="$CFLAGS -O0" -else - CFLAGS="$CFLAGS -O2" -fi - -AC_ARG_ENABLE([debug], - [ --enable-debug enable debug info], - [debug=${enableval}], [debug=no]) - -if test "x${debug}" = xyes; then - CFLAGS="$CFLAGS -g -DDEBUG" -fi - -AC_ARG_ENABLE([asan], - [ --enable-asan enable AddressSanitizer and other checks], - [asan=${enableval}], [asan=no]) - -if test "x${asan}" = xyes; then - AS_CASE([$CC], - [*gcc*], [AC_CHECK_LIB(asan, _init)], - [*clang*], [have_clang=yes], - [have_clang=no]) - - if (test "x${ac_cv_lib_asan__init}" = xyes || test "x$have_clang" = xyes); then - CFLAGS="$CFLAGS \ --fsanitize=address,undefined,leak \ --Wformat \ --Werror=format-security \ --Werror=array-bounds" - else - AC_MSG_WARN("AddressSanitizer not supported") - asan=no - fi -fi - -AC_CONFIG_FILES([Makefile - common/Makefile - common/lib/Makefile - null/Makefile - ssl/Makefile - pcap/Makefile - base/Makefile]) - -AC_OUTPUT - -echo -echo "################################################" -echo "SSLDump build setup" -echo " Host system: $host_os" -echo " Host architecture: $host_cpu" -echo " Compiler: $CC" -echo " Installation prefix: $prefix" -echo " CFLAGS: $CFLAGS" -echo " LDFLAGS: $LDFLAGS" -echo " LIBS: $LIBS" -echo " Optimizations enabled: $optimization" -echo " Debug info enabled: $debug" -echo " ASAN enabled: $asan" -echo "################################################" - diff --git a/null/Makefile.am b/null/Makefile.am deleted file mode 100644 index e69de29..0000000 diff --git a/pcap/Makefile.am b/pcap/Makefile.am deleted file mode 100644 index e69de29..0000000 diff --git a/ssl/Makefile.am b/ssl/Makefile.am deleted file mode 100644 index e69de29..0000000