aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_dht_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2014-06-06 12:01:32 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2014-06-06 12:01:32 +0000
commit62e273beeae391a44615e350e48f4ee40f2eab7a (patch)
tree9137da71304165f148468c3135d91a4da9bff967 /src/include/gnunet_dht_service.h
parentbdfda4dd17faf721d82bfee411dcaf2777012a9f (diff)
downloadgnunet-62e273beeae391a44615e350e48f4ee40f2eab7a.tar.gz
gnunet-62e273beeae391a44615e350e48f4ee40f2eab7a.zip
Enable (X)DHT service to be compiled with malicious code.
Diffstat (limited to 'src/include/gnunet_dht_service.h')
-rw-r--r--src/include/gnunet_dht_service.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h
index 33c6551db..31d66ccf0 100644
--- a/src/include/gnunet_dht_service.h
+++ b/src/include/gnunet_dht_service.h
@@ -391,6 +391,19 @@ void
391GNUNET_DHT_monitor_stop (struct GNUNET_DHT_MonitorHandle *handle); 391GNUNET_DHT_monitor_stop (struct GNUNET_DHT_MonitorHandle *handle);
392 392
393 393
394#if ENABLE_MALICIOUS
395/**
396 * Turn the DHT service to act malicious depending on @a flag
397 *
398 * @param handle the DHT handle
399 * @param action 1 to make the service malicious; 0 to make it benign
400 FIXME: perhaps make this an enum of known malicious behaviors?
401 */
402void
403GNUNET_DHT_malicious (struct GNUNET_DHT_Handle *handle, unsigned int action);
404#endif
405
406
394#if 0 /* keep Emacsens' auto-indent happy */ 407#if 0 /* keep Emacsens' auto-indent happy */
395{ 408{
396#endif 409#endif