aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/reclaim_attribute.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/reclaim_attribute.h')
-rw-r--r--src/reclaim/reclaim_attribute.h47
1 files changed, 9 insertions, 38 deletions
diff --git a/src/reclaim/reclaim_attribute.h b/src/reclaim/reclaim_attribute.h
index e54b210b9..285d75d83 100644
--- a/src/reclaim/reclaim_attribute.h
+++ b/src/reclaim/reclaim_attribute.h
@@ -28,6 +28,8 @@
28 28
29#include "gnunet_reclaim_service.h" 29#include "gnunet_reclaim_service.h"
30 30
31GNUNET_NETWORK_STRUCT_BEGIN
32
31/** 33/**
32 * Serialized claim 34 * Serialized claim
33 */ 35 */
@@ -36,12 +38,12 @@ struct Attribute
36 /** 38 /**
37 * Attribute type 39 * Attribute type
38 */ 40 */
39 uint32_t attribute_type; 41 uint32_t attribute_type GNUNET_PACKED;
40 42
41 /** 43 /**
42 * Attribute flag 44 * Attribute flag
43 */ 45 */
44 uint32_t attribute_flag; 46 uint32_t attribute_flag GNUNET_PACKED;
45 47
46 /** 48 /**
47 * Attribute ID 49 * Attribute ID
@@ -49,54 +51,23 @@ struct Attribute
49 struct GNUNET_RECLAIM_Identifier attribute_id; 51 struct GNUNET_RECLAIM_Identifier attribute_id;
50 52
51 /** 53 /**
52 * Attestation ID 54 * Credential ID
53 */ 55 */
54 struct GNUNET_RECLAIM_Identifier attestation_id; 56 struct GNUNET_RECLAIM_Identifier credential_id;
55 57
56 /** 58 /**
57 * Name length 59 * Name length
58 */ 60 */
59 uint32_t name_len; 61 uint32_t name_len GNUNET_PACKED;
60 62
61 /** 63 /**
62 * Data size 64 * Data size
63 */ 65 */
64 uint32_t data_size; 66 uint32_t data_size GNUNET_PACKED;
65 67
66 // followed by data_size Attribute value data 68 // followed by data_size Attribute value data
67}; 69};
68 70
69/** 71GNUNET_NETWORK_STRUCT_BEGIN
70 * Serialized attestation claim
71 */
72struct Attestation
73{
74 /**
75 * Attestation type
76 */
77 uint32_t attestation_type;
78
79 /**
80 * Attestation flag
81 */
82 uint32_t attestation_flag;
83
84 /**
85 * Attestation ID
86 */
87 struct GNUNET_RECLAIM_Identifier attestation_id;
88
89 /**
90 * Name length
91 */
92 uint32_t name_len;
93
94 /**
95 * Data size
96 */
97 uint32_t data_size;
98
99 // followed by data_size Attestation value data
100};
101 72
102#endif 73#endif