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 
156 
161 {
166 
170  uint32_t id GNUNET_PACKED;
171 
176 };
177 
178 
183 {
188 
192  uint32_t id GNUNET_PACKED;
193 };
194 
195 
200 {
205 
209  uint32_t id GNUNET_PACKED;
210 };
211 
216 {
221 
225  uint32_t id GNUNET_PACKED;
226 
231 };
232 
233 
238 {
243 
247  uint32_t id GNUNET_PACKED;
248 };
249 
250 
255 {
260 
264  uint32_t id GNUNET_PACKED;
265 };
266 
267 
272 {
277 
281  uint32_t id GNUNET_PACKED;
282 
287 
292 
297 
298  // Followed by a serialized attribute list
299 };
300 
305 {
310 
314  uint32_t id GNUNET_PACKED;
315 
320 
324  uint32_t attrs_len GNUNET_PACKED;
325 
330 };
331 
336 {
341 
345  uint32_t id GNUNET_PACKED;
346 
350  uint32_t success GNUNET_PACKED;
351 };
352 
353 
358 {
363 
367  uint32_t id GNUNET_PACKED;
368 
372  struct GNUNET_RECLAIM_Ticket ticket;
373 };
374 
379 {
384 
388  uint32_t id GNUNET_PACKED;
389 
394 
398  struct GNUNET_RECLAIM_Ticket ticket;
399 };
400 
405 {
410 
414  uint32_t id GNUNET_PACKED;
415 
420 
424  uint16_t attrs_len GNUNET_PACKED;
425 
430 
435 
436  /* followed by:
437  * serialized attributes data
438  */
439 };
440 
441 
443 
444 #endif
Ticket result message.
Definition: reclaim.h:357
The authorization ticket.
struct GNUNET_CRYPTO_EcdsaPrivateKey identity
Identity.
Definition: reclaim.h:65
Attribute list is returned from the idp.
Definition: reclaim.h:404
Ticket consume message.
Definition: reclaim.h:378
Start a attribute iteration for the given identity.
Definition: reclaim.h:160
Stop attribute iteration for the given operation.
Definition: reclaim.h:199
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:237
static struct GNUNET_RECLAIM_Ticket ticket
Ticket to consume.
Stop ticket iteration for the given operation.
Definition: reclaim.h:254
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:271
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:182
#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:335
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:215
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:304