diff options
Diffstat (limited to 'src/reclaim/reclaim_attribute.c')
-rw-r--r-- | src/reclaim/reclaim_attribute.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/reclaim/reclaim_attribute.c b/src/reclaim/reclaim_attribute.c index 971bfce23..2217987ac 100644 --- a/src/reclaim/reclaim_attribute.c +++ b/src/reclaim/reclaim_attribute.c | |||
@@ -222,7 +222,7 @@ GNUNET_RECLAIM_attribute_value_to_string (uint32_t type, | |||
222 | * Create a new attribute. | 222 | * Create a new attribute. |
223 | * | 223 | * |
224 | * @param attr_name the attribute name | 224 | * @param attr_name the attribute name |
225 | * @param attestation attestation ID of the attribute (maybe NULL) | 225 | * @param credential credential ID of the attribute (maybe NULL) |
226 | * @param type the attribute type | 226 | * @param type the attribute type |
227 | * @param data the attribute value | 227 | * @param data the attribute value |
228 | * @param data_size the attribute value size | 228 | * @param data_size the attribute value size |
@@ -231,7 +231,7 @@ GNUNET_RECLAIM_attribute_value_to_string (uint32_t type, | |||
231 | struct GNUNET_RECLAIM_Attribute * | 231 | struct GNUNET_RECLAIM_Attribute * |
232 | GNUNET_RECLAIM_attribute_new (const char *attr_name, | 232 | GNUNET_RECLAIM_attribute_new (const char *attr_name, |
233 | const struct | 233 | const struct |
234 | GNUNET_RECLAIM_Identifier *attestation, | 234 | GNUNET_RECLAIM_Identifier *credential, |
235 | uint32_t type, | 235 | uint32_t type, |
236 | const void *data, | 236 | const void *data, |
237 | size_t data_size) | 237 | size_t data_size) |
@@ -244,8 +244,8 @@ GNUNET_RECLAIM_attribute_new (const char *attr_name, | |||
244 | 244 | ||
245 | attr = GNUNET_malloc (sizeof(struct GNUNET_RECLAIM_Attribute) | 245 | attr = GNUNET_malloc (sizeof(struct GNUNET_RECLAIM_Attribute) |
246 | + strlen (attr_name_tmp) + 1 + data_size); | 246 | + strlen (attr_name_tmp) + 1 + data_size); |
247 | if (NULL != attestation) | 247 | if (NULL != credential) |
248 | attr->attestation = *attestation; | 248 | attr->credential = *credential; |
249 | attr->type = type; | 249 | attr->type = type; |
250 | attr->data_size = data_size; | 250 | attr->data_size = data_size; |
251 | attr->flag = 0; | 251 | attr->flag = 0; |
@@ -272,7 +272,7 @@ void | |||
272 | GNUNET_RECLAIM_attribute_list_add ( | 272 | GNUNET_RECLAIM_attribute_list_add ( |
273 | struct GNUNET_RECLAIM_AttributeList *al, | 273 | struct GNUNET_RECLAIM_AttributeList *al, |
274 | const char *attr_name, | 274 | const char *attr_name, |
275 | const struct GNUNET_RECLAIM_Identifier *attestation, | 275 | const struct GNUNET_RECLAIM_Identifier *credential, |
276 | uint32_t type, | 276 | uint32_t type, |
277 | const void *data, | 277 | const void *data, |
278 | size_t data_size) | 278 | size_t data_size) |
@@ -281,7 +281,7 @@ GNUNET_RECLAIM_attribute_list_add ( | |||
281 | 281 | ||
282 | ale = GNUNET_new (struct GNUNET_RECLAIM_AttributeListEntry); | 282 | ale = GNUNET_new (struct GNUNET_RECLAIM_AttributeListEntry); |
283 | ale->attribute = | 283 | ale->attribute = |
284 | GNUNET_RECLAIM_attribute_new (attr_name, attestation, | 284 | GNUNET_RECLAIM_attribute_new (attr_name, credential, |
285 | type, data, data_size); | 285 | type, data, data_size); |
286 | GNUNET_CONTAINER_DLL_insert (al->list_head, | 286 | GNUNET_CONTAINER_DLL_insert (al->list_head, |
287 | al->list_tail, | 287 | al->list_tail, |
@@ -403,7 +403,7 @@ GNUNET_RECLAIM_attribute_list_dup ( | |||
403 | { | 403 | { |
404 | result_ale->attribute = | 404 | result_ale->attribute = |
405 | GNUNET_RECLAIM_attribute_new (ale->attribute->name, | 405 | GNUNET_RECLAIM_attribute_new (ale->attribute->name, |
406 | &ale->attribute->attestation, | 406 | &ale->attribute->credential, |
407 | ale->attribute->type, | 407 | ale->attribute->type, |
408 | ale->attribute->data, | 408 | ale->attribute->data, |
409 | ale->attribute->data_size); | 409 | ale->attribute->data_size); |
@@ -478,7 +478,7 @@ GNUNET_RECLAIM_attribute_serialize ( | |||
478 | attr_ser->attribute_type = htons (attr->type); | 478 | attr_ser->attribute_type = htons (attr->type); |
479 | attr_ser->attribute_flag = htonl (attr->flag); | 479 | attr_ser->attribute_flag = htonl (attr->flag); |
480 | attr_ser->attribute_id = attr->id; | 480 | attr_ser->attribute_id = attr->id; |
481 | attr_ser->attestation_id = attr->attestation; | 481 | attr_ser->credential_id = attr->credential; |
482 | name_len = strlen (attr->name); | 482 | name_len = strlen (attr->name); |
483 | attr_ser->name_len = htons (name_len); | 483 | attr_ser->name_len = htons (name_len); |
484 | write_ptr = (char *) &attr_ser[1]; | 484 | write_ptr = (char *) &attr_ser[1]; |
@@ -530,7 +530,7 @@ GNUNET_RECLAIM_attribute_deserialize (const char *data, size_t data_size, | |||
530 | attribute->type = ntohs (attr_ser->attribute_type); | 530 | attribute->type = ntohs (attr_ser->attribute_type); |
531 | attribute->flag = ntohl (attr_ser->attribute_flag); | 531 | attribute->flag = ntohl (attr_ser->attribute_flag); |
532 | attribute->id = attr_ser->attribute_id; | 532 | attribute->id = attr_ser->attribute_id; |
533 | attribute->attestation = attr_ser->attestation_id; | 533 | attribute->credential = attr_ser->credential_id; |
534 | attribute->data_size = data_len; | 534 | attribute->data_size = data_len; |
535 | 535 | ||
536 | write_ptr = (char *) &attribute[1]; | 536 | write_ptr = (char *) &attribute[1]; |