aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns.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/gns/gns.h
parent16f524720ce08aadb35912731217eaeafc690dba (diff)
downloadgnunet-810bc9ef12ddcc67cfc7cd762759ee13ecd14a8d.tar.gz
gnunet-810bc9ef12ddcc67cfc7cd762759ee13ecd14a8d.zip
- Add reverse resolution with limited functionality
Diffstat (limited to 'src/gns/gns.h')
-rw-r--r--src/gns/gns.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h
index 476cb0fd2..ca5525f80 100644
--- a/src/gns/gns.h
+++ b/src/gns/gns.h
@@ -91,6 +91,32 @@ struct LookupMessage
91 91
92 92
93/** 93/**
94 * Message from client to GNS service to lookup records.
95 */
96struct ReverseLookupMessage
97{
98 /**
99 * Header of type #GNUNET_MESSAGE_TYPE_GNS_REVERSE_LOOKUP
100 */
101 struct GNUNET_MessageHeader header;
102
103 /**
104 * Unique identifier for this request (for key collisions).
105 */
106 uint32_t id GNUNET_PACKED;
107
108 /**
109 * Zone that is target for reverse lookup
110 */
111 struct GNUNET_CRYPTO_EcdsaPublicKey zone_pkey;
112
113 /**
114 * Root zone
115 */
116 struct GNUNET_CRYPTO_EcdsaPublicKey root_pkey;
117};
118
119/**
94 * Message from GNS service to client: new results. 120 * Message from GNS service to client: new results.
95 */ 121 */
96struct LookupResultMessage 122struct LookupResultMessage
@@ -114,6 +140,24 @@ struct LookupResultMessage
114 140
115}; 141};
116 142
143/**
144 * Message from GNS service to client: new results.
145 */
146struct ReverseLookupResultMessage
147{
148 /**
149 * Header of type #GNUNET_MESSAGE_TYPE_GNS_REVERSE_LOOKUP_RESULT
150 */
151 struct GNUNET_MessageHeader header;
152
153 /**
154 * Unique identifier for this request (for key collisions).
155 */
156 uint32_t id GNUNET_PACKED;
157
158 /* followed by the resulting name of the reverse lookup */
159};
160
117 161
118GNUNET_NETWORK_STRUCT_END 162GNUNET_NETWORK_STRUCT_END
119 163