diff options
Diffstat (limited to 'src/reclaim/reclaim.h')
-rw-r--r-- | src/reclaim/reclaim.h | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/src/reclaim/reclaim.h b/src/reclaim/reclaim.h index 7b5d7ab19..bc7f34365 100644 --- a/src/reclaim/reclaim.h +++ b/src/reclaim/reclaim.h | |||
@@ -139,9 +139,9 @@ struct AttributeResultMessage | |||
139 | uint16_t attr_len GNUNET_PACKED; | 139 | uint16_t attr_len GNUNET_PACKED; |
140 | 140 | ||
141 | /** | 141 | /** |
142 | * Length of serialized attestation data | 142 | * Length of serialized credential data |
143 | */ | 143 | */ |
144 | uint16_t attestation_len GNUNET_PACKED; | 144 | uint16_t credential_len GNUNET_PACKED; |
145 | 145 | ||
146 | /** | 146 | /** |
147 | * always zero (for alignment) | 147 | * always zero (for alignment) |
@@ -159,9 +159,9 @@ struct AttributeResultMessage | |||
159 | }; | 159 | }; |
160 | 160 | ||
161 | /** | 161 | /** |
162 | * Attestation is returned from the idp. | 162 | * Credential is returned from the idp. |
163 | */ | 163 | */ |
164 | struct AttestationResultMessage | 164 | struct CredentialResultMessage |
165 | { | 165 | { |
166 | /** | 166 | /** |
167 | * Message header | 167 | * Message header |
@@ -176,7 +176,7 @@ struct AttestationResultMessage | |||
176 | /** | 176 | /** |
177 | * Length of serialized attribute data | 177 | * Length of serialized attribute data |
178 | */ | 178 | */ |
179 | uint16_t attestation_len GNUNET_PACKED; | 179 | uint16_t credential_len GNUNET_PACKED; |
180 | 180 | ||
181 | /** | 181 | /** |
182 | * always zero (for alignment) | 182 | * always zero (for alignment) |
@@ -189,7 +189,7 @@ struct AttestationResultMessage | |||
189 | struct GNUNET_CRYPTO_EcdsaPublicKey identity; | 189 | struct GNUNET_CRYPTO_EcdsaPublicKey identity; |
190 | 190 | ||
191 | /* followed by: | 191 | /* followed by: |
192 | * serialized attestation data | 192 | * serialized credential data |
193 | */ | 193 | */ |
194 | }; | 194 | }; |
195 | 195 | ||
@@ -234,9 +234,9 @@ struct AttributeIterationNextMessage | |||
234 | 234 | ||
235 | 235 | ||
236 | /** | 236 | /** |
237 | * Start a attestation iteration for the given identity | 237 | * Start a credential iteration for the given identity |
238 | */ | 238 | */ |
239 | struct AttestationIterationStartMessage | 239 | struct CredentialIterationStartMessage |
240 | { | 240 | { |
241 | /** | 241 | /** |
242 | * Message | 242 | * Message |
@@ -256,9 +256,9 @@ struct AttestationIterationStartMessage | |||
256 | 256 | ||
257 | 257 | ||
258 | /** | 258 | /** |
259 | * Ask for next result of attestation iteration for the given operation | 259 | * Ask for next result of credential iteration for the given operation |
260 | */ | 260 | */ |
261 | struct AttestationIterationNextMessage | 261 | struct CredentialIterationNextMessage |
262 | { | 262 | { |
263 | /** | 263 | /** |
264 | * Type will be #GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT | 264 | * Type will be #GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT |
@@ -273,9 +273,9 @@ struct AttestationIterationNextMessage | |||
273 | 273 | ||
274 | 274 | ||
275 | /** | 275 | /** |
276 | * Stop attestation iteration for the given operation | 276 | * Stop credential iteration for the given operation |
277 | */ | 277 | */ |
278 | struct AttestationIterationStopMessage | 278 | struct CredentialIterationStopMessage |
279 | { | 279 | { |
280 | /** | 280 | /** |
281 | * Type will be #GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_STOP | 281 | * Type will be #GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_STOP |
@@ -463,9 +463,16 @@ struct TicketResultMessage | |||
463 | uint32_t id GNUNET_PACKED; | 463 | uint32_t id GNUNET_PACKED; |
464 | 464 | ||
465 | /** | 465 | /** |
466 | * Length of new presentations created | ||
467 | */ | ||
468 | uint32_t presentations_len GNUNET_PACKED; | ||
469 | |||
470 | /** | ||
466 | * The new ticket | 471 | * The new ticket |
467 | */ | 472 | */ |
468 | struct GNUNET_RECLAIM_Ticket ticket; | 473 | struct GNUNET_RECLAIM_Ticket ticket; |
474 | |||
475 | /* Followed by the serialized GNUNET_RECLAIM_PresentationList */ | ||
469 | }; | 476 | }; |
470 | 477 | ||
471 | /** | 478 | /** |
@@ -520,9 +527,9 @@ struct ConsumeTicketResultMessage | |||
520 | uint16_t attrs_len GNUNET_PACKED; | 527 | uint16_t attrs_len GNUNET_PACKED; |
521 | 528 | ||
522 | /** | 529 | /** |
523 | * Length of attestation data | 530 | * Length of presentation data |
524 | */ | 531 | */ |
525 | uint16_t attestations_len; | 532 | uint16_t presentations_len; |
526 | 533 | ||
527 | /** | 534 | /** |
528 | * always zero (for alignment) | 535 | * always zero (for alignment) |