aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gnsrecord_lib.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2016-10-06 15:54:30 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2016-10-06 15:54:30 +0000
commit810bc9ef12ddcc67cfc7cd762759ee13ecd14a8d (patch)
treee6950609e302c8cee5dd49cd75a890e660dde02a /src/include/gnunet_gnsrecord_lib.h
parent16f524720ce08aadb35912731217eaeafc690dba (diff)
downloadgnunet-810bc9ef12ddcc67cfc7cd762759ee13ecd14a8d.tar.gz
gnunet-810bc9ef12ddcc67cfc7cd762759ee13ecd14a8d.zip
- Add reverse resolution with limited functionality
Diffstat (limited to 'src/include/gnunet_gnsrecord_lib.h')
-rw-r--r--src/include/gnunet_gnsrecord_lib.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h
index b7920cbb8..985ae1f7a 100644
--- a/src/include/gnunet_gnsrecord_lib.h
+++ b/src/include/gnunet_gnsrecord_lib.h
@@ -108,6 +108,10 @@ extern "C"
108 */ 108 */
109#define GNUNET_GNSRECORD_TYPE_ID_TOKEN_METADATA 65546 109#define GNUNET_GNSRECORD_TYPE_ID_TOKEN_METADATA 65546
110 110
111/**
112 * Record type for reverse lookups
113 */
114#define GNUNET_GNSRECORD_TYPE_REVERSE 65548
111 115
112/** 116/**
113 * Flags that can be set for a record. 117 * Flags that can be set for a record.
@@ -286,6 +290,27 @@ struct GNUNET_GNSRECORD_BoxRecord
286 290
287}; 291};
288 292
293/**
294 * Record type used internally to keep track of reverse mappings into a
295 * namespace.
296 * The record contains data related to PKEY delegations from other namespaces to
297 * the namespace the record belongs to.
298 * It is exclusively found under the label ``+''.
299 */
300struct GNUNET_GNSRECORD_ReverseRecord
301{
302 /**
303 * The public key of the namespace the is delegating to our namespace
304 */
305 struct GNUNET_CRYPTO_EcdsaPublicKey pkey;
306
307 /**
308 * The expiration time of the delegation
309 */
310 struct GNUNET_TIME_Absolute expiration;
311
312 /* followed by the name the delegator uses to refer to our namespace */
313};
289 314
290GNUNET_NETWORK_STRUCT_END 315GNUNET_NETWORK_STRUCT_END
291 316