GNUnet  0.19.2
reclaim.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2016 GNUnet e.V.
4 
5  GNUnet is free software: you can redistribute it and/or modify it
6  under the terms of the GNU Affero General Public License as published
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
15  You should have received a copy of the GNU Affero General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19  */
20 
28 #ifndef RECLAIM_H
29 #define RECLAIM_H
30 
31 #include "gnunet_common.h"
33 
35 
36 
41 {
46 
50  uint64_t exp GNUNET_PACKED;
51 
55  uint32_t id GNUNET_PACKED;
56 
61 
66 
67  /*
68  * followed by the zone private key
69  * followed by the serialized attribute */
70 };
71 
72 
77 {
82 
86  uint32_t id GNUNET_PACKED;
87 
92 
97 
98  /* followed by the serialized attribute */
99 };
100 
101 
106 {
111 
115  uint32_t id GNUNET_PACKED;
116 
121 };
122 
127 {
132 
136  uint32_t id GNUNET_PACKED;
137 
142 
147 
152 
157 
163 };
164 
169 {
174 
178  uint32_t id GNUNET_PACKED;
179 
184 
189 
195 };
196 
197 
202 {
207 
211  uint32_t id GNUNET_PACKED;
212 
217 
222 
226 };
227 
228 
233 {
238 
242  uint32_t id GNUNET_PACKED;
243 };
244 
245 
250 {
255 
259  uint32_t id GNUNET_PACKED;
260 
265 
270 
274 };
275 
276 
281 {
286 
290  uint32_t id GNUNET_PACKED;
291 };
292 
293 
298 {
303 
307  uint32_t id GNUNET_PACKED;
308 };
309 
310 
315 {
320 
324  uint32_t id GNUNET_PACKED;
325 };
326 
331 {
336 
340  uint32_t id GNUNET_PACKED;
341 
346 
351 
355 };
356 
357 
362 {
367 
371  uint32_t id GNUNET_PACKED;
372 };
373 
374 
379 {
384 
388  uint32_t id GNUNET_PACKED;
389 };
390 
391 
396 {
401 
405  uint32_t id GNUNET_PACKED;
406 
411 
416 
421 
426 
432 };
433 
438 {
443 
447  uint32_t id GNUNET_PACKED;
448 
453 
458 
464 };
465 
470 {
475 
479  uint32_t id GNUNET_PACKED;
480 
485 };
486 
487 
492 {
497 
501  uint32_t id GNUNET_PACKED;
502 
507 
512 
513  /*
514  * Followed by the serialized ticket
515  * Followed by the serialized GNUNET_RECLAIM_PresentationList
516  */
517 };
518 
523 {
528 
532  uint32_t id GNUNET_PACKED;
533 
538 
543 
548 };
549 
554 {
559 
563  uint32_t id GNUNET_PACKED;
564 
569 
574 
579 
584 
589 
595 };
596 
597 
599 
600 #endif
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
Identity service; implements identity management for GNUnet.
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Use to delete an identity attribute.
Definition: reclaim.h:77
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT.
Definition: reclaim.h:81
uint16_t key_len
The length of the private key.
Definition: reclaim.h:96
uint16_t attr_len
The length of the attribute.
Definition: reclaim.h:91
Ask for next result of attribute iteration for the given operation.
Definition: reclaim.h:233
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT.
Definition: reclaim.h:237
Start a attribute iteration for the given identity.
Definition: reclaim.h:202
uint16_t key_len
The length of the private key.
Definition: reclaim.h:221
uint16_t reserved
Reserved (alignment)
Definition: reclaim.h:216
struct GNUNET_MessageHeader header
Message.
Definition: reclaim.h:206
Stop attribute iteration for the given operation.
Definition: reclaim.h:315
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_STOP.
Definition: reclaim.h:319
Attribute is returned from the idp.
Definition: reclaim.h:127
uint16_t reserved
Reserved (alignment)
Definition: reclaim.h:141
uint16_t attr_len
Length of serialized attribute data.
Definition: reclaim.h:146
uint16_t pkey_len
The length of the public key.
Definition: reclaim.h:156
uint16_t credential_len
Length of serialized credential data.
Definition: reclaim.h:151
struct GNUNET_MessageHeader header
Message header.
Definition: reclaim.h:131
Use to store an identity attribute.
Definition: reclaim.h:41
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT.
Definition: reclaim.h:45
uint64_t exp
The expiration interval of the attribute.
Definition: reclaim.h:50
uint16_t key_len
The length of the private key.
Definition: reclaim.h:65
uint16_t attr_len
The length of the attribute.
Definition: reclaim.h:60
Ticket consume message.
Definition: reclaim.h:523
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_CONSUME_TICKET.
Definition: reclaim.h:527
uint16_t key_len
The length of the private key.
Definition: reclaim.h:537
uint16_t tkt_len
The length of the ticket.
Definition: reclaim.h:542
Attribute list is returned from the idp.
Definition: reclaim.h:554
uint16_t reserved
Reserved (alignment)
Definition: reclaim.h:573
uint16_t attrs_len
Length of serialized attribute data.
Definition: reclaim.h:578
struct GNUNET_MessageHeader header
Message header.
Definition: reclaim.h:558
uint16_t presentations_len
Length of presentation data.
Definition: reclaim.h:583
uint16_t key_len
The length of the private key.
Definition: reclaim.h:588
uint32_t result
Result.
Definition: reclaim.h:568
Ask for next result of credential iteration for the given operation.
Definition: reclaim.h:281
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT.
Definition: reclaim.h:285
Start a credential iteration for the given identity.
Definition: reclaim.h:250
struct GNUNET_MessageHeader header
Message.
Definition: reclaim.h:254
uint16_t reserved
Reserved (alignment)
Definition: reclaim.h:264
uint16_t key_len
The length of the private key.
Definition: reclaim.h:269
Stop credential iteration for the given operation.
Definition: reclaim.h:298
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_STOP.
Definition: reclaim.h:302
Credential is returned from the idp.
Definition: reclaim.h:169
uint16_t credential_len
Length of serialized attribute data.
Definition: reclaim.h:183
struct GNUNET_MessageHeader header
Message header.
Definition: reclaim.h:173
uint16_t key_len
The length of the public key.
Definition: reclaim.h:188
Header for all communications.
Ticket issue message.
Definition: reclaim.h:396
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_ISSUE_TICKET.
Definition: reclaim.h:400
uint16_t pkey_len
The length of the relying party public key.
Definition: reclaim.h:425
uint16_t reserved
Reserved (alignment)
Definition: reclaim.h:410
uint16_t key_len
The length of the identity private key.
Definition: reclaim.h:420
uint16_t attr_len
length of serialized attribute list
Definition: reclaim.h:415
Ticket revoke message.
Definition: reclaim.h:438
uint16_t key_len
The length of the private key.
Definition: reclaim.h:452
uint16_t tkt_len
The length of the ticket.
Definition: reclaim.h:457
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_REVOKE_TICKET.
Definition: reclaim.h:442
Ticket revoke message.
Definition: reclaim.h:470
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_REVOKE_TICKET_RESULT.
Definition: reclaim.h:474
uint32_t success
Revocation result.
Definition: reclaim.h:484
Attribute store/delete response message.
Definition: reclaim.h:106
struct GNUNET_MessageHeader header
Message header.
Definition: reclaim.h:110
int32_t op_result
GNUNET_SYSERR on failure, GNUNET_OK on success
Definition: reclaim.h:120
Ask for next result of ticket iteration for the given operation.
Definition: reclaim.h:362
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_NEXT.
Definition: reclaim.h:366
Start a ticket iteration for the given identity.
Definition: reclaim.h:331
uint16_t key_len
The length of the private key.
Definition: reclaim.h:350
uint16_t reserved
Reserved (alignment)
Definition: reclaim.h:345
struct GNUNET_MessageHeader header
Message.
Definition: reclaim.h:335
Stop ticket iteration for the given operation.
Definition: reclaim.h:379
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_STOP.
Definition: reclaim.h:383
Ticket result message.
Definition: reclaim.h:492
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_RESULT.
Definition: reclaim.h:496
uint16_t presentations_len
Length of new presentations created.
Definition: reclaim.h:511
uint16_t tkt_len
Ticket length.
Definition: reclaim.h:506