diff options
Diffstat (limited to 'src/include/gnunet_dht_service.h')
-rw-r--r-- | src/include/gnunet_dht_service.h | 13 |
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 | |||
391 | GNUNET_DHT_monitor_stop (struct GNUNET_DHT_MonitorHandle *handle); | 391 | GNUNET_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 | */ | ||
402 | void | ||
403 | GNUNET_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 |