diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-07 09:44:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-07 09:45:52 +0100 |
commit | c0a6838a1b8a3ca2c73af04b8829d6736521cba1 (patch) | |
tree | 076148fca0a229738510bd023a3271127963383f /src/gns/gnunet-service-gns_resolver.h | |
parent | e8533c8a41e3fb29e51200d643382c8d5f882e5e (diff) | |
download | gnunet-c0a6838a1b8a3ca2c73af04b8829d6736521cba1.tar.gz gnunet-c0a6838a1b8a3ca2c73af04b8829d6736521cba1.zip |
allow GNS clients to control recursion depth limit
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.h')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h index cc918fd90..3dab3c91a 100644 --- a/src/gns/gnunet-service-gns_resolver.h +++ b/src/gns/gnunet-service-gns_resolver.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2009-2013 GNUnet e.V. | 3 | Copyright (C) 2009-2020 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -79,6 +79,8 @@ typedef void | |||
79 | * @param record_type the record type to look up | 79 | * @param record_type the record type to look up |
80 | * @param name the name to look up | 80 | * @param name the name to look up |
81 | * @param options options set to control local lookup | 81 | * @param options options set to control local lookup |
82 | * @param recursion_depth_limit how many zones to traverse | ||
83 | * at most | ||
82 | * @param proc the processor to call | 84 | * @param proc the processor to call |
83 | * @param proc_cls the closure to pass to @a proc | 85 | * @param proc_cls the closure to pass to @a proc |
84 | * @return handle to cancel operation | 86 | * @return handle to cancel operation |
@@ -88,6 +90,7 @@ GNS_resolver_lookup (const struct GNUNET_CRYPTO_EcdsaPublicKey *zone, | |||
88 | uint32_t record_type, | 90 | uint32_t record_type, |
89 | const char *name, | 91 | const char *name, |
90 | enum GNUNET_GNS_LocalOptions options, | 92 | enum GNUNET_GNS_LocalOptions options, |
93 | uint16_t recursion_depth_limit, | ||
91 | GNS_ResultProcessor proc, | 94 | GNS_ResultProcessor proc, |
92 | void *proc_cls); | 95 | void *proc_cls); |
93 | 96 | ||