diff options
Diffstat (limited to 'src/gns/gnunet-service-gns_interceptor.h')
-rw-r--r-- | src/gns/gnunet-service-gns_interceptor.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns_interceptor.h b/src/gns/gnunet-service-gns_interceptor.h new file mode 100644 index 0000000..dc39aec --- /dev/null +++ b/src/gns/gnunet-service-gns_interceptor.h @@ -0,0 +1,23 @@ +#ifndef GNUNET_GNS_INTERCEPTOR_H +#define GNUNET_GNS_INTERCEPTOR_H + +/** + * Initialize dns interceptor + * + * @param zone the zone + * @param key the private key of the local zone + * @param c the configuration + * @return GNUNET_YES on success GNUNET_SYSERR on error + */ +int +gns_interceptor_init(struct GNUNET_CRYPTO_ShortHashCode zone, + struct GNUNET_CRYPTO_RsaPrivateKey *key, + const struct GNUNET_CONFIGURATION_Handle *c); + +/** + * Stops the interceptor + */ +void +gns_interceptor_stop(void); + +#endif |