aboutsummaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-21 14:16:40 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-21 14:16:40 +0000
commitfe8ea015e76432009a70e1ce6221c179f8571253 (patch)
tree244216722ace072aca5e7a4debe96526d2378b0f /src/consensus
parent569a28bc648b2d073361fea5dcea2fb3daf5bd57 (diff)
downloadgnunet-fe8ea015e76432009a70e1ce6221c179f8571253.tar.gz
gnunet-fe8ea015e76432009a70e1ce6221c179f8571253.zip
-enable evil
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/Makefile.am17
-rw-r--r--src/consensus/consensus_flout.h2
2 files changed, 18 insertions, 1 deletions
diff --git a/src/consensus/Makefile.am b/src/consensus/Makefile.am
index f5a5c5cdc..e469de057 100644
--- a/src/consensus/Makefile.am
+++ b/src/consensus/Makefile.am
@@ -23,6 +23,12 @@ bin_PROGRAMS = \
23libexec_PROGRAMS = \ 23libexec_PROGRAMS = \
24 gnunet-service-consensus 24 gnunet-service-consensus
25 25
26# FIXME: add option "configure --with-evil"?
27if HAVE_EXPERIMENTAL
28libexec_PROGRAMS += \
29 gnunet-service-evil-consensus
30endif
31
26lib_LTLIBRARIES = \ 32lib_LTLIBRARIES = \
27 libgnunetconsensus.la 33 libgnunetconsensus.la
28 34
@@ -63,6 +69,17 @@ gnunet_service_consensus_LDADD = \
63 $(top_builddir)/src/mesh/libgnunetmesh.la \ 69 $(top_builddir)/src/mesh/libgnunetmesh.la \
64 $(GN_LIBINTL) 70 $(GN_LIBINTL)
65 71
72gnunet_service_evil_consensus_SOURCES = \
73 gnunet-service-consensus.c \
74 ibf.c
75gnunet_service_evil_consensus_LDADD = \
76 $(top_builddir)/src/util/libgnunetutil.la \
77 $(top_builddir)/src/core/libgnunetcore.la \
78 $(top_builddir)/src/stream/libgnunetstream.la \
79 $(top_builddir)/src/mesh/libgnunetmesh.la \
80 $(GN_LIBINTL)
81gnunet_service_evil_consensus_CFLAGS = -DEVIL
82
66libgnunetconsensus_la_SOURCES = \ 83libgnunetconsensus_la_SOURCES = \
67 consensus_api.c 84 consensus_api.c
68libgnunetconsensus_la_LIBADD = \ 85libgnunetconsensus_la_LIBADD = \
diff --git a/src/consensus/consensus_flout.h b/src/consensus/consensus_flout.h
index 99b4475b9..6c97813a5 100644
--- a/src/consensus/consensus_flout.h
+++ b/src/consensus/consensus_flout.h
@@ -46,7 +46,7 @@ void
46GNUNET_CONSENSUS_flout_ignore_element_hash (struct GNUNET_CONSENSUS_Handle *consensus, struct GNUNET_HashCode *element_hash); 46GNUNET_CONSENSUS_flout_ignore_element_hash (struct GNUNET_CONSENSUS_Handle *consensus, struct GNUNET_HashCode *element_hash);
47 47
48void 48void
49GNUNET_CONSENSUS_flout_ignore_element_hash (struct GNUNET_CONSENSUS_Handle *consensus, struct GNUNET_HashCode *element_hash); 49GNUNET_CONSENSUS_flout_send_bogos_ibf (struct GNUNET_CONSENSUS_Handle *consensus, ...);
50 50
51 51
52 52