aboutsummaryrefslogtreecommitdiff
path: root/src/identity-provider/identity_provider.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity-provider/identity_provider.h')
-rw-r--r--src/identity-provider/identity_provider.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/identity-provider/identity_provider.h b/src/identity-provider/identity_provider.h
index 9d2675c35..47d3f0945 100644
--- a/src/identity-provider/identity_provider.h
+++ b/src/identity-provider/identity_provider.h
@@ -173,6 +173,66 @@ struct ExchangeMessage
173 173
174}; 174};
175 175
176/**
177 * Use to store an identity attribute
178 */
179struct AttributeStoreMessage
180{
181 /**
182 * Type: #GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT
183 */
184 struct GNUNET_MessageHeader header;
185
186 /**
187 * Unique identifier for this request (for key collisions).
188 */
189 uint32_t id GNUNET_PACKED;
190
191 /**
192 * The attribute type
193 */
194 uint32_t attribute_type GNUNET_PACKED;
195
196 /**
197 * The length of the attribute name
198 */
199 uint32_t name_len GNUNET_PACKED;
200
201 /**
202 * The length of the attribute value
203 */
204 uint32_t attr_value_len GNUNET_PACKED;
205
206 /**
207 * Identity
208 */
209 struct GNUNET_CRYPTO_EcdsaPrivateKey identity;
210
211 /* followed by the name of attribute as string and value data */
212
213};
214
215/**
216 * Attribute store response message
217 */
218struct AttributeStoreResponseMessage
219{
220 /**
221 * Message header
222 */
223 struct GNUNET_MessageHeader header;
224
225 /**
226 * Unique identifier for this request (for key collisions).
227 */
228 uint32_t id GNUNET_PACKED;
229
230 /**
231 * #GNUNET_SYSERR on failure, #GNUNET_OK on success
232 */
233 int32_t op_result GNUNET_PACKED;
234
235};
176 236
177GNUNET_NETWORK_STRUCT_END 237GNUNET_NETWORK_STRUCT_END
178 238