diff options
Diffstat (limited to 'src/identity-provider/gnunet-idp.c')
-rw-r--r-- | src/identity-provider/gnunet-idp.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/identity-provider/gnunet-idp.c b/src/identity-provider/gnunet-idp.c index 88136c124..18a5676c0 100644 --- a/src/identity-provider/gnunet-idp.c +++ b/src/identity-provider/gnunet-idp.c | |||
@@ -119,7 +119,7 @@ static struct GNUNET_IDENTITY_PROVIDER_Ticket ticket; | |||
119 | /** | 119 | /** |
120 | * Attribute list | 120 | * Attribute list |
121 | */ | 121 | */ |
122 | static struct GNUNET_IDENTITY_PROVIDER_AttributeList *attr_list; | 122 | static struct GNUNET_IDENTITY_ATTRIBUTE_ClaimList *attr_list; |
123 | 123 | ||
124 | static void | 124 | static void |
125 | do_cleanup(void *cls) | 125 | do_cleanup(void *cls) |
@@ -166,7 +166,7 @@ store_attr_cont (void *cls, | |||
166 | static void | 166 | static void |
167 | process_attrs (void *cls, | 167 | process_attrs (void *cls, |
168 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, | 168 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, |
169 | const struct GNUNET_IDENTITY_PROVIDER_Attribute *attr) | 169 | const struct GNUNET_IDENTITY_ATTRIBUTE_Claim *attr) |
170 | { | 170 | { |
171 | if (NULL == identity) | 171 | if (NULL == identity) |
172 | { | 172 | { |
@@ -207,7 +207,7 @@ process_rvk (void *cls, int success, const char* msg) | |||
207 | static void | 207 | static void |
208 | iter_finished (void *cls) | 208 | iter_finished (void *cls) |
209 | { | 209 | { |
210 | struct GNUNET_IDENTITY_PROVIDER_Attribute *attr; | 210 | struct GNUNET_IDENTITY_ATTRIBUTE_Claim *attr; |
211 | 211 | ||
212 | attr_iterator = NULL; | 212 | attr_iterator = NULL; |
213 | if (list) | 213 | if (list) |
@@ -244,8 +244,8 @@ iter_finished (void *cls) | |||
244 | NULL); | 244 | NULL); |
245 | return; | 245 | return; |
246 | } | 246 | } |
247 | attr = GNUNET_IDENTITY_PROVIDER_attribute_new (attr_name, | 247 | attr = GNUNET_IDENTITY_ATTRIBUTE_claim_new (attr_name, |
248 | GNUNET_IDENTITY_PROVIDER_AT_STRING, | 248 | GNUNET_IDENTITY_ATTRIBUTE_TYPE_STRING, |
249 | attr_value, | 249 | attr_value, |
250 | strlen (attr_value) + 1); | 250 | strlen (attr_value) + 1); |
251 | idp_op = GNUNET_IDENTITY_PROVIDER_attribute_store (idp_handle, | 251 | idp_op = GNUNET_IDENTITY_PROVIDER_attribute_store (idp_handle, |
@@ -260,9 +260,9 @@ iter_finished (void *cls) | |||
260 | static void | 260 | static void |
261 | iter_cb (void *cls, | 261 | iter_cb (void *cls, |
262 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, | 262 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, |
263 | const struct GNUNET_IDENTITY_PROVIDER_Attribute *attr) | 263 | const struct GNUNET_IDENTITY_ATTRIBUTE_Claim *attr) |
264 | { | 264 | { |
265 | struct GNUNET_IDENTITY_PROVIDER_AttributeListEntry *le; | 265 | struct GNUNET_IDENTITY_ATTRIBUTE_ClaimListEntry *le; |
266 | char *attrs_tmp; | 266 | char *attrs_tmp; |
267 | char *attr_str; | 267 | char *attr_str; |
268 | 268 | ||
@@ -275,11 +275,11 @@ iter_cb (void *cls, | |||
275 | attr_str = strtok (NULL, ","); | 275 | attr_str = strtok (NULL, ","); |
276 | continue; | 276 | continue; |
277 | } | 277 | } |
278 | le = GNUNET_new (struct GNUNET_IDENTITY_PROVIDER_AttributeListEntry); | 278 | le = GNUNET_new (struct GNUNET_IDENTITY_ATTRIBUTE_ClaimListEntry); |
279 | le->attribute = GNUNET_IDENTITY_PROVIDER_attribute_new (attr->name, | 279 | le->claim = GNUNET_IDENTITY_ATTRIBUTE_claim_new (attr->name, |
280 | attr->attribute_type, | 280 | attr->type, |
281 | attr->data, | 281 | attr->data, |
282 | attr->data_size); | 282 | attr->data_size); |
283 | GNUNET_CONTAINER_DLL_insert (attr_list->list_head, | 283 | GNUNET_CONTAINER_DLL_insert (attr_list->list_head, |
284 | attr_list->list_tail, | 284 | attr_list->list_tail, |
285 | le); | 285 | le); |
@@ -321,7 +321,7 @@ ego_cb (void *cls, | |||
321 | sizeof (struct GNUNET_IDENTITY_PROVIDER_Ticket)); | 321 | sizeof (struct GNUNET_IDENTITY_PROVIDER_Ticket)); |
322 | 322 | ||
323 | 323 | ||
324 | attr_list = GNUNET_new (struct GNUNET_IDENTITY_PROVIDER_AttributeList); | 324 | attr_list = GNUNET_new (struct GNUNET_IDENTITY_ATTRIBUTE_ClaimList); |
325 | 325 | ||
326 | attr_iterator = GNUNET_IDENTITY_PROVIDER_get_attributes_start (idp_handle, | 326 | attr_iterator = GNUNET_IDENTITY_PROVIDER_get_attributes_start (idp_handle, |
327 | pkey, | 327 | pkey, |