diff options
Diffstat (limited to 'src/credential/credential.h')
-rw-r--r-- | src/credential/credential.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/credential/credential.h b/src/credential/credential.h index 3ba8e9c9e..c5c0183cc 100644 --- a/src/credential/credential.h +++ b/src/credential/credential.h | |||
@@ -103,6 +103,82 @@ struct VerifyResultMessage | |||
103 | 103 | ||
104 | }; | 104 | }; |
105 | 105 | ||
106 | struct DelegationRecordData | ||
107 | { | ||
108 | /** | ||
109 | * Subject key | ||
110 | */ | ||
111 | struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; | ||
112 | |||
113 | /** | ||
114 | * Subject attributes | ||
115 | */ | ||
116 | uint32_t subject_attribute_len GNUNET_PACKED; | ||
117 | }; | ||
118 | |||
119 | |||
120 | struct ChainEntry | ||
121 | { | ||
122 | /** | ||
123 | * Issuer key | ||
124 | */ | ||
125 | struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; | ||
126 | |||
127 | /** | ||
128 | * Subject key | ||
129 | */ | ||
130 | struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; | ||
131 | |||
132 | /** | ||
133 | * Issuer attributes | ||
134 | */ | ||
135 | uint32_t issuer_attribute_len GNUNET_PACKED; | ||
136 | |||
137 | /** | ||
138 | * Subject attributes | ||
139 | */ | ||
140 | uint32_t subject_attribute_len GNUNET_PACKED; | ||
141 | }; | ||
142 | |||
143 | |||
144 | struct CredentialEntry | ||
145 | { | ||
146 | |||
147 | /** | ||
148 | * The signature for this credential by the issuer | ||
149 | */ | ||
150 | struct GNUNET_CRYPTO_EcdsaSignature signature; | ||
151 | |||
152 | /** | ||
153 | * Signature meta | ||
154 | */ | ||
155 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | ||
156 | |||
157 | /** | ||
158 | * Public key of the issuer | ||
159 | */ | ||
160 | struct GNUNET_CRYPTO_EcdsaPublicKey issuer_key; | ||
161 | |||
162 | /** | ||
163 | * Public key of the subject this credential was issued to | ||
164 | */ | ||
165 | struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; | ||
166 | |||
167 | /** | ||
168 | * Expiration time of this credential | ||
169 | */ | ||
170 | uint64_t expiration GNUNET_PACKED; | ||
171 | |||
172 | /** | ||
173 | * Issuer attribute length | ||
174 | */ | ||
175 | uint32_t issuer_attribute_len; | ||
176 | |||
177 | /** | ||
178 | * Followed by the attribute string | ||
179 | */ | ||
180 | }; | ||
181 | |||
106 | 182 | ||
107 | GNUNET_NETWORK_STRUCT_END | 183 | GNUNET_NETWORK_STRUCT_END |
108 | 184 | ||