diff options
Diffstat (limited to 'src/gns/gns.h')
-rw-r--r-- | src/gns/gns.h | 53 |
1 files changed, 2 insertions, 51 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h index ca5525f80..d77bf53c6 100644 --- a/src/gns/gns.h +++ b/src/gns/gns.h | |||
@@ -72,51 +72,20 @@ struct LookupMessage | |||
72 | int16_t options GNUNET_PACKED; | 72 | int16_t options GNUNET_PACKED; |
73 | 73 | ||
74 | /** | 74 | /** |
75 | * Is a shorten key attached? | 75 | * Always 0. |
76 | */ | 76 | */ |
77 | int16_t have_key GNUNET_PACKED; | 77 | int16_t reserved GNUNET_PACKED; |
78 | 78 | ||
79 | /** | 79 | /** |
80 | * the type of record to look up | 80 | * the type of record to look up |
81 | */ | 81 | */ |
82 | int32_t type GNUNET_PACKED; | 82 | int32_t type GNUNET_PACKED; |
83 | 83 | ||
84 | /** | ||
85 | * The key for shorten, if @e have_key is set | ||
86 | */ | ||
87 | struct GNUNET_CRYPTO_EcdsaPrivateKey shorten_key; | ||
88 | |||
89 | /* Followed by the zero-terminated name to look up */ | 84 | /* Followed by the zero-terminated name to look up */ |
90 | }; | 85 | }; |
91 | 86 | ||
92 | 87 | ||
93 | /** | 88 | /** |
94 | * Message from client to GNS service to lookup records. | ||
95 | */ | ||
96 | struct 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 | /** | ||
120 | * Message from GNS service to client: new results. | 89 | * Message from GNS service to client: new results. |
121 | */ | 90 | */ |
122 | struct LookupResultMessage | 91 | struct LookupResultMessage |
@@ -140,24 +109,6 @@ struct LookupResultMessage | |||
140 | 109 | ||
141 | }; | 110 | }; |
142 | 111 | ||
143 | /** | ||
144 | * Message from GNS service to client: new results. | ||
145 | */ | ||
146 | struct 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 | |||
161 | 112 | ||
162 | GNUNET_NETWORK_STRUCT_END | 113 | GNUNET_NETWORK_STRUCT_END |
163 | 114 | ||