GNUnet  0.10.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 
45 
49  uint32_t id GNUNET_PACKED;
50 
55 
59  uint64_t exp GNUNET_PACKED;
60 
65 
66  /* followed by the serialized attribute */
67 };
68 
69 
78 
82  uint32_t id GNUNET_PACKED;
83 
88 
93 
94  /* followed by the serialized attribute */
95 };
96 
97 
106 
110  uint32_t id GNUNET_PACKED;
111 
116 };
117 
126 
130  uint32_t id GNUNET_PACKED;
131 
136 
141 
146 
147  /* followed by:
148  * serialized attribute data
149  */
150 };
151 
152 
161 
165  uint32_t id GNUNET_PACKED;
166 
171 };
172 
173 
182 
186  uint32_t id GNUNET_PACKED;
187 };
188 
189 
198 
202  uint32_t id GNUNET_PACKED;
203 };
204 
213 
217  uint32_t id GNUNET_PACKED;
218 
223 };
224 
225 
234 
238  uint32_t id GNUNET_PACKED;
239 };
240 
241 
250 
254  uint32_t id GNUNET_PACKED;
255 };
256 
257 
266 
270  uint32_t id GNUNET_PACKED;
271 
276 
281 
286 
287  // Followed by a serialized attribute list
288 };
289 
298 
302  uint32_t id GNUNET_PACKED;
303 
308 
312  uint32_t attrs_len GNUNET_PACKED;
313 
318 };
319 
328 
332  uint32_t id GNUNET_PACKED;
333 
337  uint32_t success GNUNET_PACKED;
338 };
339 
340 
349 
353  uint32_t id GNUNET_PACKED;
354 
358  struct GNUNET_RECLAIM_Ticket ticket;
359 };
360 
369 
373  uint32_t id GNUNET_PACKED;
374 
379 
383  struct GNUNET_RECLAIM_Ticket ticket;
384 };
385 
394 
398  uint32_t id GNUNET_PACKED;
399 
404 
408  uint16_t attrs_len GNUNET_PACKED;
409 
414 
419 
420  /* followed by:
421  * serialized attributes data
422  */
423 };
424 
425 
427 
428 #endif
Ticket result message.
Definition: reclaim.h:344
The authorization ticket.
struct GNUNET_CRYPTO_EcdsaPrivateKey identity
Identity.
Definition: reclaim.h:64
Attribute list is returned from the idp.
Definition: reclaim.h:389
Ticket consume message.
Definition: reclaim.h:364
Start a attribute iteration for the given identity.
Definition: reclaim.h:156
Stop attribute iteration for the given operation.
Definition: reclaim.h:193
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:243
Use to delete an identity attribute.
Definition: reclaim.h:73
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:229
static struct GNUNET_RECLAIM_Ticket ticket
Ticket to consume.
Stop ticket iteration for the given operation.
Definition: reclaim.h:245
static int result
Global testing status.
uint32_t attr_len
The length of the attribute.
Definition: reclaim.h:54
Ticket issue message.
Definition: reclaim.h:261
Attribute store/delete response message.
Definition: reclaim.h:101
uint64_t exp
The expiration interval of the attribute.
Definition: reclaim.h:59
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT.
Definition: reclaim.h:44
Ask for next result of attribute iteration for the given operation.
Definition: reclaim.h:177
#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:323
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:121
Start a ticket iteration for the given identity.
Definition: reclaim.h:208
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:293