diff options
Diffstat (limited to 'src/reclaim/reclaim.h')
-rw-r--r-- | src/reclaim/reclaim.h | 58 |
1 files changed, 37 insertions, 21 deletions
diff --git a/src/reclaim/reclaim.h b/src/reclaim/reclaim.h index 3da49fe7a..7b5d7ab19 100644 --- a/src/reclaim/reclaim.h +++ b/src/reclaim/reclaim.h | |||
@@ -195,12 +195,12 @@ struct AttestationResultMessage | |||
195 | 195 | ||
196 | 196 | ||
197 | /** | 197 | /** |
198 | * Reference plus Attestation is returned from the idp. | 198 | * Start a attribute iteration for the given identity |
199 | */ | 199 | */ |
200 | struct ReferenceResultMessage | 200 | struct AttributeIterationStartMessage |
201 | { | 201 | { |
202 | /** | 202 | /** |
203 | * Message header | 203 | * Message |
204 | */ | 204 | */ |
205 | struct GNUNET_MessageHeader header; | 205 | struct GNUNET_MessageHeader header; |
206 | 206 | ||
@@ -210,34 +210,33 @@ struct ReferenceResultMessage | |||
210 | uint32_t id GNUNET_PACKED; | 210 | uint32_t id GNUNET_PACKED; |
211 | 211 | ||
212 | /** | 212 | /** |
213 | * Length of serialized attestation data | 213 | * Identity. |
214 | */ | 214 | */ |
215 | uint16_t attest_len GNUNET_PACKED; | 215 | struct GNUNET_CRYPTO_EcdsaPrivateKey identity; |
216 | }; | ||
216 | 217 | ||
217 | /** | ||
218 | * Length of serialized reference data | ||
219 | */ | ||
220 | uint16_t ref_len GNUNET_PACKED; | ||
221 | 218 | ||
219 | /** | ||
220 | * Ask for next result of attribute iteration for the given operation | ||
221 | */ | ||
222 | struct AttributeIterationNextMessage | ||
223 | { | ||
222 | /** | 224 | /** |
223 | * always zero (for alignment) | 225 | * Type will be #GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT |
224 | */ | 226 | */ |
225 | uint16_t reserved GNUNET_PACKED; | 227 | struct GNUNET_MessageHeader header; |
226 | 228 | ||
227 | /** | 229 | /** |
228 | * The public key of the identity. | 230 | * Unique identifier for this request (for key collisions). |
229 | */ | ||
230 | struct GNUNET_CRYPTO_EcdsaPublicKey identity; | ||
231 | |||
232 | /* followed by: | ||
233 | * serialized reference data + attestation data | ||
234 | */ | 231 | */ |
232 | uint32_t id GNUNET_PACKED; | ||
235 | }; | 233 | }; |
236 | 234 | ||
235 | |||
237 | /** | 236 | /** |
238 | * Start a attribute iteration for the given identity | 237 | * Start a attestation iteration for the given identity |
239 | */ | 238 | */ |
240 | struct AttributeIterationStartMessage | 239 | struct AttestationIterationStartMessage |
241 | { | 240 | { |
242 | /** | 241 | /** |
243 | * Message | 242 | * Message |
@@ -257,9 +256,9 @@ struct AttributeIterationStartMessage | |||
257 | 256 | ||
258 | 257 | ||
259 | /** | 258 | /** |
260 | * Ask for next result of attribute iteration for the given operation | 259 | * Ask for next result of attestation iteration for the given operation |
261 | */ | 260 | */ |
262 | struct AttributeIterationNextMessage | 261 | struct AttestationIterationNextMessage |
263 | { | 262 | { |
264 | /** | 263 | /** |
265 | * Type will be #GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT | 264 | * Type will be #GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT |
@@ -274,6 +273,23 @@ struct AttributeIterationNextMessage | |||
274 | 273 | ||
275 | 274 | ||
276 | /** | 275 | /** |
276 | * Stop attestation iteration for the given operation | ||
277 | */ | ||
278 | struct AttestationIterationStopMessage | ||
279 | { | ||
280 | /** | ||
281 | * Type will be #GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_STOP | ||
282 | */ | ||
283 | struct GNUNET_MessageHeader header; | ||
284 | |||
285 | /** | ||
286 | * Unique identifier for this request (for key collisions). | ||
287 | */ | ||
288 | uint32_t id GNUNET_PACKED; | ||
289 | }; | ||
290 | |||
291 | |||
292 | /** | ||
277 | * Stop attribute iteration for the given operation | 293 | * Stop attribute iteration for the given operation |
278 | */ | 294 | */ |
279 | struct AttributeIterationStopMessage | 295 | struct AttributeIterationStopMessage |