GNUnet  0.11.x
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"
32 
33 
35 
36 
41 {
46 
50  uint32_t id GNUNET_PACKED;
51 
56 
60  uint64_t exp GNUNET_PACKED;
61 
66 
67  /* followed by the serialized attribute */
68 };
69 
70 
75 {
80 
84  uint32_t id GNUNET_PACKED;
85 
90 
95 
96  /* followed by the serialized attribute */
97 };
98 
99 
104 {
109 
113  uint32_t id GNUNET_PACKED;
114 
119 };
120 
125 {
130 
134  uint32_t id GNUNET_PACKED;
135 
140 
144  uint16_t attestation_len GNUNET_PACKED;
145 
150 
155 
156  /* followed by:
157  * serialized attribute data
158  */
159 };
160 
165 {
170 
174  uint32_t id GNUNET_PACKED;
175 
179  uint16_t attestation_len GNUNET_PACKED;
180 
185 
190 
191  /* followed by:
192  * serialized attestation data
193  */
194 };
195 
196 
201 {
206 
210  uint32_t id GNUNET_PACKED;
211 
216 };
217 
218 
223 {
228 
232  uint32_t id GNUNET_PACKED;
233 };
234 
235 
240 {
245 
249  uint32_t id GNUNET_PACKED;
250 
255 };
256 
257 
262 {
267 
271  uint32_t id GNUNET_PACKED;
272 };
273 
274 
279 {
284 
288  uint32_t id GNUNET_PACKED;
289 };
290 
291 
296 {
301 
305  uint32_t id GNUNET_PACKED;
306 };
307 
312 {
317 
321  uint32_t id GNUNET_PACKED;
322 
327 };
328 
329 
334 {
339 
343  uint32_t id GNUNET_PACKED;
344 };
345 
346 
351 {
356 
360  uint32_t id GNUNET_PACKED;
361 };
362 
363 
368 {
373 
377  uint32_t id GNUNET_PACKED;
378 
383 
388 
393 
394  // Followed by a serialized attribute list
395 };
396 
401 {
406 
410  uint32_t id GNUNET_PACKED;
411 
416 
420  uint32_t attrs_len GNUNET_PACKED;
421 
426 };
427 
432 {
437 
441  uint32_t id GNUNET_PACKED;
442 
446  uint32_t success GNUNET_PACKED;
447 };
448 
449 
454 {
459 
463  uint32_t id GNUNET_PACKED;
464 
468  struct GNUNET_RECLAIM_Ticket ticket;
469 };
470 
475 {
480 
484  uint32_t id GNUNET_PACKED;
485 
490 
494  struct GNUNET_RECLAIM_Ticket ticket;
495 };
496 
501 {
506 
510  uint32_t id GNUNET_PACKED;
511 
516 
520  uint16_t attrs_len GNUNET_PACKED;
521 
526 
531 
536 
537  /* followed by:
538  * serialized attributes data
539  */
540 };
541 
542 
544 
545 #endif
Ticket result message.
Definition: reclaim.h:453
The authorization ticket.
struct GNUNET_CRYPTO_EcdsaPrivateKey identity
Identity.
Definition: reclaim.h:65
Attribute list is returned from the idp.
Definition: reclaim.h:500
Ticket consume message.
Definition: reclaim.h:474
Start a attribute iteration for the given identity.
Definition: reclaim.h:200
Stop attribute iteration for the given operation.
Definition: reclaim.h:295
static int op_result(struct GNUNET_OP_Handle *h, uint64_t op_id, int64_t result_code, const void *data, uint16_t data_size, void **ctx, uint8_t cancel)
Remove an operation, and call its result callback (unless it was cancelled).
Definition: op.c:245
Use to delete an identity attribute.
Definition: reclaim.h:74
Private ECC key encoded for transmission.
Use to store an identity attribute.
Definition: reclaim.h:40
Start a attestation iteration for the given identity.
Definition: reclaim.h:239
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32.
Ask for next result of ticket iteration for the given operation.
Definition: reclaim.h:333
static struct GNUNET_RECLAIM_Ticket ticket
Ticket to consume.
Stop attestation iteration for the given operation.
Definition: reclaim.h:278
Stop ticket iteration for the given operation.
Definition: reclaim.h:350
uint16_t attestations_len
Length of attestation data.
Definition: reclaim.h:525
static int result
Global testing status.
uint32_t attr_len
The length of the attribute.
Definition: reclaim.h:55
Ticket issue message.
Definition: reclaim.h:367
Attribute store/delete response message.
Definition: reclaim.h:103
uint64_t exp
The expiration interval of the attribute.
Definition: reclaim.h:60
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT.
Definition: reclaim.h:45
Ask for next result of attribute iteration for the given operation.
Definition: reclaim.h:222
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Ticket revoke message.
Definition: reclaim.h:431
Public ECC key (always for Curve25519) encoded in a format suitable for network transmission and ECDS...
Attribute is returned from the idp.
Definition: reclaim.h:124
Start a ticket iteration for the given identity.
Definition: reclaim.h:311
static char * rp
Relying party.
Ask for next result of attestation iteration for the given operation.
Definition: reclaim.h:261
Header for all communications.
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
static unsigned long long reserved
How much space have we currently reserved?
Attestation is returned from the idp.
Definition: reclaim.h:164
Ticket revoke message.
Definition: reclaim.h:400