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 
145 
150 
151  /* followed by:
152  * serialized attribute data
153  */
154 };
155 
160 {
165 
169  uint32_t id GNUNET_PACKED;
170 
174  uint16_t attest_len GNUNET_PACKED;
175 
179  uint16_t ref_len GNUNET_PACKED;
180 
185 
190 
191  /* followed by:
192  * serialized reference data + attestation data
193  */
194 };
195 
200 {
205 
209  uint32_t id GNUNET_PACKED;
210 
215 };
216 
217 
222 {
227 
231  uint32_t id GNUNET_PACKED;
232 };
233 
234 
239 {
244 
248  uint32_t id GNUNET_PACKED;
249 };
250 
255 {
260 
264  uint32_t id GNUNET_PACKED;
265 
270 };
271 
272 
277 {
282 
286  uint32_t id GNUNET_PACKED;
287 };
288 
289 
294 {
299 
303  uint32_t id GNUNET_PACKED;
304 };
305 
306 
311 {
316 
320  uint32_t id GNUNET_PACKED;
321 
326 
331 
336 
337  // Followed by a serialized attribute list
338 };
339 
344 {
349 
353  uint32_t id GNUNET_PACKED;
354 
359 
363  uint32_t attrs_len GNUNET_PACKED;
364 
369 };
370 
375 {
380 
384  uint32_t id GNUNET_PACKED;
385 
389  uint32_t success GNUNET_PACKED;
390 };
391 
392 
397 {
402 
406  uint32_t id GNUNET_PACKED;
407 
411  struct GNUNET_RECLAIM_Ticket ticket;
412 };
413 
418 {
423 
427  uint32_t id GNUNET_PACKED;
428 
433 
437  struct GNUNET_RECLAIM_Ticket ticket;
438 };
439 
444 {
449 
453  uint32_t id GNUNET_PACKED;
454 
459 
463  uint16_t attrs_len GNUNET_PACKED;
464 
469 
474 
475  /* followed by:
476  * serialized attributes data
477  */
478 };
479 
480 
482 
483 #endif
Ticket result message.
Definition: reclaim.h:396
The authorization ticket.
struct GNUNET_CRYPTO_EcdsaPrivateKey identity
Identity.
Definition: reclaim.h:65
Attribute list is returned from the idp.
Definition: reclaim.h:443
Ticket consume message.
Definition: reclaim.h:417
Reference plus Attestation is returned from the idp.
Definition: reclaim.h:159
Start a attribute iteration for the given identity.
Definition: reclaim.h:199
Stop attribute iteration for the given operation.
Definition: reclaim.h:238
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
#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:276
static struct GNUNET_RECLAIM_Ticket ticket
Ticket to consume.
Stop ticket iteration for the given operation.
Definition: reclaim.h:293
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:310
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:221
#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:374
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:254
static char * rp
Relying party.
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?
Ticket revoke message.
Definition: reclaim.h:343