diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-10-06 15:54:30 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-10-06 15:54:30 +0000 |
commit | 810bc9ef12ddcc67cfc7cd762759ee13ecd14a8d (patch) | |
tree | e6950609e302c8cee5dd49cd75a890e660dde02a /src/include/gnunet_gnsrecord_lib.h | |
parent | 16f524720ce08aadb35912731217eaeafc690dba (diff) | |
download | gnunet-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.h | 25 |
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 | */ | ||
300 | struct 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 | ||
290 | GNUNET_NETWORK_STRUCT_END | 315 | GNUNET_NETWORK_STRUCT_END |
291 | 316 | ||