## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
AUTOMAKE_OPTIONS = foreign
-SUBDIRS = doc @DIRS@
-configdir = @configdir@
-socketdir = @socketdir@
-logdir = @logdir@
+SUBDIRS = common client server proxy pkstream init doc @DIRS@
-CATACOMB_LIBS = @CATACOMB_LIBS@
-tun = @tun@
-
-sbin_PROGRAMS = tripe
-bin_PROGRAMS = tripectl tripe-mitm pkstream
-noinst_SCRIPTS = tripe-init
-bin_SCRIPTS = @pyscripts@ @pygtkscripts@
-PYTHONSCRIPTS = tripe-keys
-PYGTKSCRIPTS = tripemon
-EXTRA_SCRIPTS = ${PYTHONSCRIPTS} ${PYGTKSCRIPTS}
-tripe_SOURCES = \
- tripe.c tripe.h tripe-protocol.h \
- admin.c peer.c \
- keymgmt.c keyexch.c keyset.c chal.c \
- servutil.c util.c util.h \
- tun-unet.c tun-bsd.c tun-linux.c tun-slip.c
-tripe_LDADD = $(CATACOMB_LIBS)
-tripectl_SOURCES = \
- client.c util.c util.h
-tripe_mitm_SOURCES = \
- mallory.c
-tripe_mitm_LDADD = $(CATACOMB_LIBS)
-pkstream_SOURCES = \
- pkstream.c
-
-install-hook:
- for i in "$(configdir)" "$(socketdir)"; do \
- case "$$i" in /*) $(mkinstalldirs) $(DESTDIR)$$i;; esac; \
- done
-
-EXTRA_DIST = tripe.conf \
+EXTRA_DIST = \
debian/rules debian/control debian/changelog debian/copyright \
- debian/tripe.postinst debian/tripe.prerm debian/tripe.postrm \
- tripe-keys.in
+ debian/tripe.postinst debian/tripe.prerm debian/tripe.postrm
##----- That's all, folks ---------------------------------------------------
--- /dev/null
+## -*-makefile-*-
+##
+## $Id$
+##
+## Makefile for TrIPE client
+##
+## (c) 2001 Straylight/Edgeware
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This file is part of Trivial IP Encryption (TrIPE).
+##
+## TrIPE is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## TrIPE is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with TrIPE; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+AUTOMAKE_OPTIONS = foreign
+INCLUDES = -I$(top_srcdir)/common -I$(top_builddir)/common
+LDADD = ../common/libtripe.a @CATACOMB_LIBS@
+
+bin_PROGRAMS = tripectl
+
+tripectl_SOURCES = tripectl.c
+
+##----- That's all, folks ---------------------------------------------------
--- /dev/null
+## -*-makefile-*-
+##
+## $Id$
+##
+## Makefile for TrIPE common source files
+##
+## (c) 2001 Straylight/Edgeware
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This file is part of Trivial IP Encryption (TrIPE).
+##
+## TrIPE is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## TrIPE is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with TrIPE; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+AUTOMAKE_OPTIONS = foreign
+
+noinst_LIBRARIES = libtripe.a
+
+libtripe_a_SOURCES = protocol.h util.c util.h
+
+##----- That's all, folks ---------------------------------------------------
dnl along with TrIPE; if not, write to the Free Software Foundation,
dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-AC_INIT(tripe.c)
+AC_INIT(server/tripe.c)
AM_INIT_AUTOMAKE(tripe, 1.0.0pre7)
-AM_CONFIG_HEADER(config.h)
+AM_CONFIG_HEADER(common/config.h)
AC_CANONICAL_HOST
AC_PROG_MAKE_SET
AC_PROG_CC
AM_PROG_LIBTOOL
+DIRS="" AC_SUBST([DIRS])
+
python=no
mdw_PROG_PYTHON([2.3],
[python=yes
- pyscripts='${PYTHONSCRIPTS}'
+ pyscripts='${PYTHONSCRIPTS}'
+ DIRS="$DIRS keys"
pymans='${PYTHONMANS}'])
AC_SUBST([pyscripts]) AC_SUBST([pymans])
])
if test $mdw_cv_pygtk = yes; then
pygtkscripts='${PYGTKSCRIPTS}'
+ DIRS="$DIRS mon"
pygtkmans='${PYGTKMANS}'
fi
fi
[logfile=$withval],
[logfile=tripe.log])
-DIRS=""
WIRESHARK_CFLAGS=""
WIRESHARK_PLUGIN_DIR="unknown"
AC_ARG_WITH([wireshark],
AC_SUBST(socketdir) AC_SUBST(configdir) AC_SUBST(logfile) AC_SUBST(pidfile)
AC_SUBST(initconfig)
])
-AC_SUBST(DIRS)
AC_OUTPUT( \
- Makefile doc/Makefile wireshark/Makefile \
- tripe-init tripe-keys tripemon)
+ Makefile \
+ common/Makefile client/Makefile server/Makefile \
+ proxy/Makefile pkstream/Makefile \
+ doc/Makefile \
+ wireshark/Makefile \
+ init/Makefile init/tripe-init \
+ keys/Makefile keys/tripe-keys \
+ mon/Makefile mon/tripemon)
dnl ----- That's all, folks -------------------------------------------------
mkdir -p debian/tripe/etc/tripe/peers
mkdir -p debian/tripe/etc/default
mkdir -p debian/tripe/etc/init.d
- cp deb-build/tripe-init debian/tripe/etc/init.d/tripe
+ cp deb-build/init/tripe-init debian/tripe/etc/init.d/tripe
chmod 755 debian/tripe/etc/init.d/tripe
- cp tripe.conf debian/tripe/etc/default/tripe
+ cp init/tripe.conf debian/tripe/etc/default/tripe
mkdir -p debian/tripe-keys/usr/bin
mv debian/tripe/usr/bin/tripe-keys debian/tripe-keys/usr/bin
mkdir -p \
mv debian/tripe/usr/share/man/man8/tripe-keys.8 \
debian/tripe-keys/usr/share/man/man8
mkdir -p debian/tripe-keys/usr/share/doc/tripe-keys/examples
- cp tripe-keys.master \
+ cp keys/tripe-keys.master \
debian/tripe-keys/usr/share/doc/tripe-keys/examples
mkdir -p debian/tripemon/usr/bin
mv debian/tripe/usr/bin/tripemon debian/tripemon/usr/bin
--- /dev/null
+## -*-makefile-*-
+##
+## $Id$
+##
+## Makefile for TrIPE startup scripts
+##
+## (c) 2001 Straylight/Edgeware
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This file is part of Trivial IP Encryption (TrIPE).
+##
+## TrIPE is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## TrIPE is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with TrIPE; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+AUTOMAKE_OPTIONS = foreign
+configdir = @configdir@
+socketdir = @socketdir@
+logdir = @logdir@
+
+noinst_SCRIPTS = tripe-init
+
+install-hook:
+ for i in "$(configdir)" "$(socketdir)"; do \
+ case "$$i" in /*) $(mkinstalldirs) $(DESTDIR)$$i;; esac; \
+ done
+
+EXTRA_DIST = tripe.conf
+
+##----- That's all, folks ---------------------------------------------------
--- /dev/null
+## -*-makefile-*-
+##
+## $Id$
+##
+## Makefile for TrIPE key management tool
+##
+## (c) 2001 Straylight/Edgeware
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This file is part of Trivial IP Encryption (TrIPE).
+##
+## TrIPE is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## TrIPE is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with TrIPE; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+AUTOMAKE_OPTIONS = foreign
+
+PYTHONSCRIPTS = tripe-keys
+bin_SCRIPTS = @pyscripts@
+
+EXTRA_SCRIPTS = ${PYTHONSCRIPTS}
+
+##----- That's all, folks ---------------------------------------------------
--- /dev/null
+## -*-makefile-*-
+##
+## $Id$
+##
+## Makefile for TrIPE graphical monitor
+##
+## (c) 2001 Straylight/Edgeware
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This file is part of Trivial IP Encryption (TrIPE).
+##
+## TrIPE is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## TrIPE is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with TrIPE; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+AUTOMAKE_OPTIONS = foreign
+
+PYGTKSCRIPTS = tripemon
+bin_SCRIPTS = @pygtkscripts@
+
+EXTRA_SCRIPTS = ${PYGTKSCRIPTS}
+
+##----- That's all, folks ---------------------------------------------------
--- /dev/null
+## -*-makefile-*-
+##
+## $Id$
+##
+## Makefile for packets-over-stream proxy
+##
+## (c) 2001 Straylight/Edgeware
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This file is part of Trivial IP Encryption (TrIPE).
+##
+## TrIPE is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## TrIPE is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with TrIPE; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+AUTOMAKE_OPTIONS = foreign
+INCLUDES = -I$(top_srcdir)/common -I$(top_builddir)/common
+
+bin_PROGRAMS = pkstream
+
+pkstream_SOURCES = pkstream.c
+
+##----- That's all, folks ---------------------------------------------------
--- /dev/null
+## -*-makefile-*-
+##
+## $Id$
+##
+## Makefile for TrIPE malicious proxy
+##
+## (c) 2001 Straylight/Edgeware
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This file is part of Trivial IP Encryption (TrIPE).
+##
+## TrIPE is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## TrIPE is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with TrIPE; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+AUTOMAKE_OPTIONS = foreign
+INCLUDES = -I$(top_srcdir)/common -I$(top_builddir)/common
+LDADD = @CATACOMB_LIBS@
+
+bin_PROGRAMS = tripe-mitm
+
+tripe_mitm_SOURCES = tripe-mitm.c
+
+##----- That's all, folks ---------------------------------------------------
#include <catacomb/rand.h>
#include <catacomb/rc4.h>
-
/*----- Data structures ---------------------------------------------------*/
typedef struct peer {
--- /dev/null
+## -*-makefile-*-
+##
+## $Id$
+##
+## Makefile for TrIPE server
+##
+## (c) 2001 Straylight/Edgeware
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This file is part of Trivial IP Encryption (TrIPE).
+##
+## TrIPE is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## TrIPE is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with TrIPE; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+AUTOMAKE_OPTIONS = foreign
+INCLUDES = -I$(top_srcdir)/common -I$(top_builddir)/common
+LDADD = ../common/libtripe.a @CATACOMB_LIBS@
+configdir = @configdir@
+tun = @tun@
+
+sbin_PROGRAMS = tripe
+
+tripe_SOURCES = \
+ tripe.h \
+ servutil.c \
+ tripe.c admin.c peer.c keymgmt.c keyexch.c keyset.c chal.c \
+ tun-unet.c tun-bsd.c tun-linux.c tun-slip.c
+
+##----- That's all, folks ---------------------------------------------------
#include <catacomb/ec-keys.h>
#include <catacomb/group.h>
-#include "tripe-protocol.h"
+#include "protocol.h"
#include "util.h"
#undef sun
## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
AUTOMAKE_OPTIONS = foreign
-
-CFLAGS = -I$(top_srcdir) -I$(top_builddir) @WIRESHARK_CFLAGS@
-
+INCLUDES = -I$(top_srcdir)/common -I$(top_builddir)/common
+CFLAGS = @WIRESHARK_CFLAGS@
plugindir = @WIRESHARK_PLUGIN_DIR@
+
plugin_LTLIBRARIES = tripe.la
tripe_la_SOURCES = packet-tripe.c
#include <wireshark/epan/packet.h>
#include <wireshark/epan/prefs.h>
-#include "tripe-protocol.h"
+#include "protocol.h"
/*----- Static variables --------------------------------------------------*/