diff options
Diffstat (limited to 'src/identity-provider/plugin_identity_provider_sqlite.c')
-rw-r--r-- | src/identity-provider/plugin_identity_provider_sqlite.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/identity-provider/plugin_identity_provider_sqlite.c b/src/identity-provider/plugin_identity_provider_sqlite.c index c87f30e1c..594e4788d 100644 --- a/src/identity-provider/plugin_identity_provider_sqlite.c +++ b/src/identity-provider/plugin_identity_provider_sqlite.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_identity_provider_service.h" | 28 | #include "gnunet_identity_provider_service.h" |
29 | #include "gnunet_identity_provider_plugin.h" | 29 | #include "gnunet_identity_provider_plugin.h" |
30 | #include "identity_attribute.h" | 30 | #include "gnunet_identity_attribute_lib.h" |
31 | #include "gnunet_sq_lib.h" | 31 | #include "gnunet_sq_lib.h" |
32 | #include <sqlite3.h> | 32 | #include <sqlite3.h> |
33 | 33 | ||
@@ -373,7 +373,7 @@ database_shutdown (struct Plugin *plugin) | |||
373 | static int | 373 | static int |
374 | identity_provider_sqlite_store_ticket (void *cls, | 374 | identity_provider_sqlite_store_ticket (void *cls, |
375 | const struct GNUNET_IDENTITY_PROVIDER_Ticket *ticket, | 375 | const struct GNUNET_IDENTITY_PROVIDER_Ticket *ticket, |
376 | const struct GNUNET_IDENTITY_PROVIDER_AttributeList *attrs) | 376 | const struct GNUNET_IDENTITY_ATTRIBUTE_ClaimList *attrs) |
377 | { | 377 | { |
378 | struct Plugin *plugin = cls; | 378 | struct Plugin *plugin = cls; |
379 | size_t attrs_len; | 379 | size_t attrs_len; |
@@ -402,9 +402,9 @@ identity_provider_sqlite_store_ticket (void *cls, | |||
402 | GNUNET_SQ_reset (plugin->dbh, | 402 | GNUNET_SQ_reset (plugin->dbh, |
403 | plugin->delete_ticket); | 403 | plugin->delete_ticket); |
404 | 404 | ||
405 | attrs_len = attribute_list_serialize_get_size (attrs); | 405 | attrs_len = GNUNET_IDENTITY_ATTRIBUTE_list_serialize_get_size (attrs); |
406 | attrs_ser = GNUNET_malloc (attrs_len); | 406 | attrs_ser = GNUNET_malloc (attrs_len); |
407 | attribute_list_serialize (attrs, | 407 | GNUNET_IDENTITY_ATTRIBUTE_list_serialize (attrs, |
408 | attrs_ser); | 408 | attrs_ser); |
409 | struct GNUNET_SQ_QueryParam sparams[] = { | 409 | struct GNUNET_SQ_QueryParam sparams[] = { |
410 | GNUNET_SQ_query_param_auto_from_type (&ticket->identity), | 410 | GNUNET_SQ_query_param_auto_from_type (&ticket->identity), |
@@ -526,7 +526,7 @@ get_ticket_and_call_iterator (struct Plugin *plugin, | |||
526 | void *iter_cls) | 526 | void *iter_cls) |
527 | { | 527 | { |
528 | struct GNUNET_IDENTITY_PROVIDER_Ticket ticket; | 528 | struct GNUNET_IDENTITY_PROVIDER_Ticket ticket; |
529 | struct GNUNET_IDENTITY_PROVIDER_AttributeList *attrs; | 529 | struct GNUNET_IDENTITY_ATTRIBUTE_ClaimList *attrs; |
530 | int ret; | 530 | int ret; |
531 | int sret; | 531 | int sret; |
532 | size_t attrs_len; | 532 | size_t attrs_len; |
@@ -553,13 +553,13 @@ get_ticket_and_call_iterator (struct Plugin *plugin, | |||
553 | } | 553 | } |
554 | else | 554 | else |
555 | { | 555 | { |
556 | attrs = attribute_list_deserialize (attrs_ser, | 556 | attrs = GNUNET_IDENTITY_ATTRIBUTE_list_deserialize (attrs_ser, |
557 | attrs_len); | 557 | attrs_len); |
558 | if (NULL != iter) | 558 | if (NULL != iter) |
559 | iter (iter_cls, | 559 | iter (iter_cls, |
560 | &ticket, | 560 | &ticket, |
561 | attrs); | 561 | attrs); |
562 | attribute_list_destroy (attrs); | 562 | GNUNET_IDENTITY_ATTRIBUTE_list_destroy (attrs); |
563 | ret = GNUNET_YES; | 563 | ret = GNUNET_YES; |
564 | } | 564 | } |
565 | GNUNET_SQ_cleanup_result (rs); | 565 | GNUNET_SQ_cleanup_result (rs); |