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"
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 
94  struct GNUNET_IDENTITY_PrivateKey identity;
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 credential_len GNUNET_PACKED;
145 
150 
154  struct GNUNET_IDENTITY_PublicKey identity;
155 
156  /* followed by:
157  * serialized attribute data
158  */
159 };
160 
165 {
170 
174  uint32_t id GNUNET_PACKED;
175 
179  uint16_t credential_len GNUNET_PACKED;
180 
185 
189  struct GNUNET_IDENTITY_PublicKey identity;
190 
191  /* followed by:
192  * serialized credential data
193  */
194 };
195 
196 
201 {
206 
210  uint32_t id GNUNET_PACKED;
211 
215  struct GNUNET_IDENTITY_PrivateKey identity;
216 };
217 
218 
223 {
228 
232  uint32_t id GNUNET_PACKED;
233 };
234 
235 
240 {
245 
249  uint32_t id GNUNET_PACKED;
250 
254  struct GNUNET_IDENTITY_PrivateKey identity;
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 
326  struct GNUNET_IDENTITY_PrivateKey identity;
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 
382  struct GNUNET_IDENTITY_PrivateKey identity;
383 
388 
393 
394  // Followed by a serialized attribute list
395 };
396 
401 {
406 
410  uint32_t id GNUNET_PACKED;
411 
415  struct GNUNET_IDENTITY_PrivateKey identity;
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  uint32_t presentations_len GNUNET_PACKED;
469 
473  struct GNUNET_RECLAIM_Ticket ticket;
474 
475  /* Followed by the serialized GNUNET_RECLAIM_PresentationList */
476 };
477 
482 {
487 
491  uint32_t id GNUNET_PACKED;
492 
496  struct GNUNET_IDENTITY_PrivateKey identity;
497 
501  struct GNUNET_RECLAIM_Ticket ticket;
502 };
503 
508 {
513 
517  uint32_t id GNUNET_PACKED;
518 
523 
527  uint16_t attrs_len GNUNET_PACKED;
528 
533 
538 
542  struct GNUNET_IDENTITY_PublicKey identity;
543 
544  /* followed by:
545  * serialized attributes data
546  */
547 };
548 
549 
551 
552 #endif
Ticket result message.
Definition: reclaim.h:453
The authorization ticket.
Attribute list is returned from the idp.
Definition: reclaim.h:507
Ticket consume message.
Definition: reclaim.h:481
Stop credential iteration for the given operation.
Definition: reclaim.h:278
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
A private key for an identity as per LSD0001.
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:333
static struct GNUNET_RECLAIM_Ticket ticket
Ticket to consume.
Stop ticket iteration for the given operation.
Definition: reclaim.h:350
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
Start a credential iteration for the given identity.
Definition: reclaim.h:239
uint16_t presentations_len
Length of presentation data.
Definition: reclaim.h:532
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32;.
Ask for next result of credential iteration for the given operation.
Definition: reclaim.h:261
An identity key as per LSD0001.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Ticket revoke message.
Definition: reclaim.h:431
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.
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?
Credential is returned from the idp.
Definition: reclaim.h:164
Ticket revoke message.
Definition: reclaim.h:400
struct GNUNET_IDENTITY_PrivateKey identity
Identity.
Definition: reclaim.h:65