diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-03-21 14:16:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-03-21 14:16:40 +0000 |
commit | fe8ea015e76432009a70e1ce6221c179f8571253 (patch) | |
tree | 244216722ace072aca5e7a4debe96526d2378b0f /src/consensus | |
parent | 569a28bc648b2d073361fea5dcea2fb3daf5bd57 (diff) | |
download | gnunet-fe8ea015e76432009a70e1ce6221c179f8571253.tar.gz gnunet-fe8ea015e76432009a70e1ce6221c179f8571253.zip |
-enable evil
Diffstat (limited to 'src/consensus')
-rw-r--r-- | src/consensus/Makefile.am | 17 | ||||
-rw-r--r-- | src/consensus/consensus_flout.h | 2 |
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 = \ | |||
23 | libexec_PROGRAMS = \ | 23 | libexec_PROGRAMS = \ |
24 | gnunet-service-consensus | 24 | gnunet-service-consensus |
25 | 25 | ||
26 | # FIXME: add option "configure --with-evil"? | ||
27 | if HAVE_EXPERIMENTAL | ||
28 | libexec_PROGRAMS += \ | ||
29 | gnunet-service-evil-consensus | ||
30 | endif | ||
31 | |||
26 | lib_LTLIBRARIES = \ | 32 | lib_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 | ||
72 | gnunet_service_evil_consensus_SOURCES = \ | ||
73 | gnunet-service-consensus.c \ | ||
74 | ibf.c | ||
75 | gnunet_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) | ||
81 | gnunet_service_evil_consensus_CFLAGS = -DEVIL | ||
82 | |||
66 | libgnunetconsensus_la_SOURCES = \ | 83 | libgnunetconsensus_la_SOURCES = \ |
67 | consensus_api.c | 84 | consensus_api.c |
68 | libgnunetconsensus_la_LIBADD = \ | 85 | libgnunetconsensus_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 | |||
46 | GNUNET_CONSENSUS_flout_ignore_element_hash (struct GNUNET_CONSENSUS_Handle *consensus, struct GNUNET_HashCode *element_hash); | 46 | GNUNET_CONSENSUS_flout_ignore_element_hash (struct GNUNET_CONSENSUS_Handle *consensus, struct GNUNET_HashCode *element_hash); |
47 | 47 | ||
48 | void | 48 | void |
49 | GNUNET_CONSENSUS_flout_ignore_element_hash (struct GNUNET_CONSENSUS_Handle *consensus, struct GNUNET_HashCode *element_hash); | 49 | GNUNET_CONSENSUS_flout_send_bogos_ibf (struct GNUNET_CONSENSUS_Handle *consensus, ...); |
50 | 50 | ||
51 | 51 | ||
52 | 52 | ||