aboutsummaryrefslogtreecommitdiff
path: root/src/identity-provider
diff options
context:
space:
mode:
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-01-03 10:11:40 +0100
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-01-03 10:11:40 +0100
commitfb85cf602c67994646c156aa9e05d2b9aa10816c (patch)
treeed14e694bb1ce9c11e7cebd0aa445ad41f7c2c7e /src/identity-provider
parent7c1f035ed971e12882cd7a65c7d36883842945b1 (diff)
downloadgnunet-fb85cf602c67994646c156aa9e05d2b9aa10816c.tar.gz
gnunet-fb85cf602c67994646c156aa9e05d2b9aa10816c.zip
-move abe functionality out of util; prepare for release
Diffstat (limited to 'src/identity-provider')
-rw-r--r--src/identity-provider/Makefile.am1
-rw-r--r--src/identity-provider/gnunet-service-identity-provider.c77
2 files changed, 40 insertions, 38 deletions
diff --git a/src/identity-provider/Makefile.am b/src/identity-provider/Makefile.am
index 5c5ddaa57..adf6af3b3 100644
--- a/src/identity-provider/Makefile.am
+++ b/src/identity-provider/Makefile.am
@@ -70,6 +70,7 @@ gnunet_service_identity_provider_LDADD = \
70 $(top_builddir)/src/namestore/libgnunetnamestore.la \ 70 $(top_builddir)/src/namestore/libgnunetnamestore.la \
71 $(top_builddir)/src/identity/libgnunetidentity.la \ 71 $(top_builddir)/src/identity/libgnunetidentity.la \
72 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 72 $(top_builddir)/src/statistics/libgnunetstatistics.la \
73 $(top_builddir)/src/abe/libgnunetabe.la \
73 $(top_builddir)/src/credential/libgnunetcredential.la \ 74 $(top_builddir)/src/credential/libgnunetcredential.la \
74 $(top_builddir)/src/identity-attribute/libgnunetidentityattribute.la \ 75 $(top_builddir)/src/identity-attribute/libgnunetidentityattribute.la \
75 libgnunetidentityprovider.la \ 76 libgnunetidentityprovider.la \
diff --git a/src/identity-provider/gnunet-service-identity-provider.c b/src/identity-provider/gnunet-service-identity-provider.c
index a5c178aa5..351308c3a 100644
--- a/src/identity-provider/gnunet-service-identity-provider.c
+++ b/src/identity-provider/gnunet-service-identity-provider.c
@@ -30,6 +30,7 @@
30#include "gnunet_identity_service.h" 30#include "gnunet_identity_service.h"
31#include "gnunet_gnsrecord_lib.h" 31#include "gnunet_gnsrecord_lib.h"
32#include "gnunet_namestore_service.h" 32#include "gnunet_namestore_service.h"
33#include "gnunet_abe_lib.h"
33#include "gnunet_credential_service.h" 34#include "gnunet_credential_service.h"
34#include "gnunet_statistics_service.h" 35#include "gnunet_statistics_service.h"
35#include "gnunet_gns_service.h" 36#include "gnunet_gns_service.h"
@@ -205,7 +206,7 @@ struct TicketIteration
205 */ 206 */
206typedef void 207typedef void
207(*AbeBootstrapResult) (void *cls, 208(*AbeBootstrapResult) (void *cls,
208 struct GNUNET_CRYPTO_AbeMasterKey *abe_key); 209 struct GNUNET_ABE_AbeMasterKey *abe_key);
209 210
210 211
211struct AbeBootstrapHandle 212struct AbeBootstrapHandle
@@ -233,7 +234,7 @@ struct AbeBootstrapHandle
233 /** 234 /**
234 * The issuer egos ABE master key 235 * The issuer egos ABE master key
235 */ 236 */
236 struct GNUNET_CRYPTO_AbeMasterKey *abe_key; 237 struct GNUNET_ABE_AbeMasterKey *abe_key;
237}; 238};
238 239
239/** 240/**
@@ -264,7 +265,7 @@ struct AttributeIterator
264 /** 265 /**
265 * The issuer egos ABE master key 266 * The issuer egos ABE master key
266 */ 267 */
267 struct GNUNET_CRYPTO_AbeMasterKey *abe_key; 268 struct GNUNET_ABE_AbeMasterKey *abe_key;
268 269
269 /** 270 /**
270 * Namestore iterator 271 * Namestore iterator
@@ -355,7 +356,7 @@ struct AttributeStoreHandle
355 /** 356 /**
356 * The issuer egos ABE master key 357 * The issuer egos ABE master key
357 */ 358 */
358 struct GNUNET_CRYPTO_AbeMasterKey *abe_key; 359 struct GNUNET_ABE_AbeMasterKey *abe_key;
359 360
360 /** 361 /**
361 * QueueEntry 362 * QueueEntry
@@ -423,7 +424,7 @@ struct ConsumeTicketHandle
423 /** 424 /**
424 * The ABE key 425 * The ABE key
425 */ 426 */
426 struct GNUNET_CRYPTO_AbeKey *key; 427 struct GNUNET_ABE_AbeKey *key;
427 428
428 /** 429 /**
429 * Attributes 430 * Attributes
@@ -520,7 +521,7 @@ struct TicketRevocationHandle
520 /** 521 /**
521 * The ABE master key 522 * The ABE master key
522 */ 523 */
523 struct GNUNET_CRYPTO_AbeMasterKey *abe_key; 524 struct GNUNET_ABE_AbeMasterKey *abe_key;
524 525
525 /** 526 /**
526 * Offset 527 * Offset
@@ -690,7 +691,7 @@ bootstrap_store_task (void *cls)
690 struct GNUNET_GNSRECORD_Data rd[1]; 691 struct GNUNET_GNSRECORD_Data rd[1];
691 char *key; 692 char *key;
692 693
693 rd[0].data_size = GNUNET_CRYPTO_cpabe_serialize_master_key (abh->abe_key, 694 rd[0].data_size = GNUNET_ABE_cpabe_serialize_master_key (abh->abe_key,
694 (void**)&key); 695 (void**)&key);
695 rd[0].data = key; 696 rd[0].data = key;
696 rd[0].record_type = GNUNET_GNSRECORD_TYPE_ABE_MASTER; 697 rd[0].record_type = GNUNET_GNSRECORD_TYPE_ABE_MASTER;
@@ -730,13 +731,13 @@ bootstrap_abe_result (void *cls,
730 const struct GNUNET_GNSRECORD_Data *rd) 731 const struct GNUNET_GNSRECORD_Data *rd)
731{ 732{
732 struct AbeBootstrapHandle *abh = cls; 733 struct AbeBootstrapHandle *abh = cls;
733 struct GNUNET_CRYPTO_AbeMasterKey *abe_key; 734 struct GNUNET_ABE_AbeMasterKey *abe_key;
734 int i; 735 int i;
735 736
736 for (i=0;i<rd_count;i++) { 737 for (i=0;i<rd_count;i++) {
737 if (GNUNET_GNSRECORD_TYPE_ABE_MASTER != rd[i].record_type) 738 if (GNUNET_GNSRECORD_TYPE_ABE_MASTER != rd[i].record_type)
738 continue; 739 continue;
739 abe_key = GNUNET_CRYPTO_cpabe_deserialize_master_key (rd[i].data, 740 abe_key = GNUNET_ABE_cpabe_deserialize_master_key (rd[i].data,
740 rd[i].data_size); 741 rd[i].data_size);
741 abh->proc (abh->proc_cls, abe_key); 742 abh->proc (abh->proc_cls, abe_key);
742 GNUNET_free (abh); 743 GNUNET_free (abh);
@@ -744,7 +745,7 @@ bootstrap_abe_result (void *cls,
744 } 745 }
745 746
746 //No ABE master found, bootstrapping... 747 //No ABE master found, bootstrapping...
747 abh->abe_key = GNUNET_CRYPTO_cpabe_create_master_key (); 748 abh->abe_key = GNUNET_ABE_cpabe_create_master_key ();
748 GNUNET_SCHEDULER_add_now (&bootstrap_store_task, abh); 749 GNUNET_SCHEDULER_add_now (&bootstrap_store_task, abh);
749} 750}
750 751
@@ -767,7 +768,7 @@ bootstrap_abe (const struct GNUNET_CRYPTO_EcdsaPrivateKey *identity,
767 abh->identity = *identity; 768 abh->identity = *identity;
768 if (GNUNET_YES == recreate) 769 if (GNUNET_YES == recreate)
769 { 770 {
770 abh->abe_key = GNUNET_CRYPTO_cpabe_create_master_key (); 771 abh->abe_key = GNUNET_ABE_cpabe_create_master_key ();
771 GNUNET_SCHEDULER_add_now (&bootstrap_store_task, abh); 772 GNUNET_SCHEDULER_add_now (&bootstrap_store_task, abh);
772 } else { 773 } else {
773 abh->ns_qe = GNUNET_NAMESTORE_records_lookup (ns_handle, 774 abh->ns_qe = GNUNET_NAMESTORE_records_lookup (ns_handle,
@@ -874,7 +875,7 @@ store_ticket_issue_cont (void *cls,
874int 875int
875serialize_abe_keyinfo2 (const struct GNUNET_IDENTITY_PROVIDER_Ticket *ticket, 876serialize_abe_keyinfo2 (const struct GNUNET_IDENTITY_PROVIDER_Ticket *ticket,
876 const struct GNUNET_IDENTITY_ATTRIBUTE_ClaimList *attrs, 877 const struct GNUNET_IDENTITY_ATTRIBUTE_ClaimList *attrs,
877 const struct GNUNET_CRYPTO_AbeKey *rp_key, 878 const struct GNUNET_ABE_AbeKey *rp_key,
878 struct GNUNET_CRYPTO_EcdhePrivateKey **ecdh_privkey, 879 struct GNUNET_CRYPTO_EcdhePrivateKey **ecdh_privkey,
879 char **result) 880 char **result)
880{ 881{
@@ -892,7 +893,7 @@ serialize_abe_keyinfo2 (const struct GNUNET_IDENTITY_PROVIDER_Ticket *ticket,
892 struct GNUNET_HashCode new_key_hash; 893 struct GNUNET_HashCode new_key_hash;
893 ssize_t enc_size; 894 ssize_t enc_size;
894 895
895 size = GNUNET_CRYPTO_cpabe_serialize_key (rp_key, 896 size = GNUNET_ABE_cpabe_serialize_key (rp_key,
896 (void**)&serialized_key); 897 (void**)&serialized_key);
897 attrs_str_len = 0; 898 attrs_str_len = 0;
898 for (le = attrs->list_head; NULL != le; le = le->next) { 899 for (le = attrs->list_head; NULL != le; le = le->next) {
@@ -951,13 +952,13 @@ serialize_abe_keyinfo2 (const struct GNUNET_IDENTITY_PROVIDER_Ticket *ticket,
951 952
952static void 953static void
953issue_ticket_after_abe_bootstrap (void *cls, 954issue_ticket_after_abe_bootstrap (void *cls,
954 struct GNUNET_CRYPTO_AbeMasterKey *abe_key) 955 struct GNUNET_ABE_AbeMasterKey *abe_key)
955{ 956{
956 struct TicketIssueHandle *ih = cls; 957 struct TicketIssueHandle *ih = cls;
957 struct GNUNET_IDENTITY_ATTRIBUTE_ClaimListEntry *le; 958 struct GNUNET_IDENTITY_ATTRIBUTE_ClaimListEntry *le;
958 struct GNUNET_CRYPTO_EcdhePrivateKey *ecdhe_privkey; 959 struct GNUNET_CRYPTO_EcdhePrivateKey *ecdhe_privkey;
959 struct GNUNET_GNSRECORD_Data code_record[1]; 960 struct GNUNET_GNSRECORD_Data code_record[1];
960 struct GNUNET_CRYPTO_AbeKey *rp_key; 961 struct GNUNET_ABE_AbeKey *rp_key;
961 char *code_record_data; 962 char *code_record_data;
962 char **attrs; 963 char **attrs;
963 char *label; 964 char *label;
@@ -983,7 +984,7 @@ issue_ticket_after_abe_bootstrap (void *cls,
983 i++; 984 i++;
984 } 985 }
985 attrs[i] = NULL; 986 attrs[i] = NULL;
986 rp_key = GNUNET_CRYPTO_cpabe_create_key (abe_key, 987 rp_key = GNUNET_ABE_cpabe_create_key (abe_key,
987 attrs); 988 attrs);
988 989
989 //TODO review this wireformat 990 //TODO review this wireformat
@@ -1014,9 +1015,9 @@ issue_ticket_after_abe_bootstrap (void *cls,
1014 GNUNET_free (label); 1015 GNUNET_free (label);
1015 GNUNET_free (attrs); 1016 GNUNET_free (attrs);
1016 GNUNET_free (code_record_data); 1017 GNUNET_free (code_record_data);
1017 GNUNET_CRYPTO_cpabe_delete_key (rp_key, 1018 GNUNET_ABE_cpabe_delete_key (rp_key,
1018 GNUNET_YES); 1019 GNUNET_YES);
1019 GNUNET_CRYPTO_cpabe_delete_master_key (abe_key); 1020 GNUNET_ABE_cpabe_delete_master_key (abe_key);
1020} 1021}
1021 1022
1022 1023
@@ -1091,7 +1092,7 @@ cleanup_revoke_ticket_handle (struct TicketRevocationHandle *handle)
1091 if (NULL != handle->rvk_attrs) 1092 if (NULL != handle->rvk_attrs)
1092 GNUNET_IDENTITY_ATTRIBUTE_list_destroy (handle->rvk_attrs); 1093 GNUNET_IDENTITY_ATTRIBUTE_list_destroy (handle->rvk_attrs);
1093 if (NULL != handle->abe_key) 1094 if (NULL != handle->abe_key)
1094 GNUNET_CRYPTO_cpabe_delete_master_key (handle->abe_key); 1095 GNUNET_ABE_cpabe_delete_master_key (handle->abe_key);
1095 if (NULL != handle->ns_qe) 1096 if (NULL != handle->ns_qe)
1096 GNUNET_NAMESTORE_cancel (handle->ns_qe); 1097 GNUNET_NAMESTORE_cancel (handle->ns_qe);
1097 if (NULL != handle->ns_it) 1098 if (NULL != handle->ns_it)
@@ -1183,7 +1184,7 @@ ticket_reissue_proc (void *cls,
1183 struct GNUNET_IDENTITY_ATTRIBUTE_ClaimListEntry *le_rollover; 1184 struct GNUNET_IDENTITY_ATTRIBUTE_ClaimListEntry *le_rollover;
1184 struct GNUNET_CRYPTO_EcdhePrivateKey *ecdhe_privkey; 1185 struct GNUNET_CRYPTO_EcdhePrivateKey *ecdhe_privkey;
1185 struct GNUNET_GNSRECORD_Data code_record[1]; 1186 struct GNUNET_GNSRECORD_Data code_record[1];
1186 struct GNUNET_CRYPTO_AbeKey *rp_key; 1187 struct GNUNET_ABE_AbeKey *rp_key;
1187 char *code_record_data; 1188 char *code_record_data;
1188 char **attr_arr; 1189 char **attr_arr;
1189 char *label; 1190 char *label;
@@ -1263,7 +1264,7 @@ ticket_reissue_proc (void *cls,
1263 i++; 1264 i++;
1264 } 1265 }
1265 attr_arr[i] = NULL; 1266 attr_arr[i] = NULL;
1266 rp_key = GNUNET_CRYPTO_cpabe_create_key (rh->abe_key, 1267 rp_key = GNUNET_ABE_cpabe_create_key (rh->abe_key,
1267 attr_arr); 1268 attr_arr);
1268 1269
1269 //TODO review this wireformat 1270 //TODO review this wireformat
@@ -1294,7 +1295,7 @@ ticket_reissue_proc (void *cls,
1294 GNUNET_free (label); 1295 GNUNET_free (label);
1295 GNUNET_free (attr_arr); 1296 GNUNET_free (attr_arr);
1296 GNUNET_free (code_record_data); 1297 GNUNET_free (code_record_data);
1297 GNUNET_CRYPTO_cpabe_delete_key (rp_key, GNUNET_YES); 1298 GNUNET_ABE_cpabe_delete_key (rp_key, GNUNET_YES);
1298} 1299}
1299 1300
1300 1301
@@ -1362,7 +1363,7 @@ reenc_next_attribute (struct TicketRevocationHandle *rh)
1362 /** 1363 /**
1363 * Encrypt the attribute value and store in namestore 1364 * Encrypt the attribute value and store in namestore
1364 */ 1365 */
1365 enc_size = GNUNET_CRYPTO_cpabe_encrypt (buf, 1366 enc_size = GNUNET_ABE_cpabe_encrypt (buf,
1366 buf_size, 1367 buf_size,
1367 policy, //Policy 1368 policy, //Policy
1368 rh->abe_key, 1369 rh->abe_key,
@@ -1463,7 +1464,7 @@ process_attributes_to_update (void *cls,
1463 1464
1464static void 1465static void
1465get_ticket_after_abe_bootstrap (void *cls, 1466get_ticket_after_abe_bootstrap (void *cls,
1466 struct GNUNET_CRYPTO_AbeMasterKey *abe_key) 1467 struct GNUNET_ABE_AbeMasterKey *abe_key)
1467{ 1468{
1468 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1469 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1469 "Finished ABE bootstrap\n"); 1470 "Finished ABE bootstrap\n");
@@ -1534,7 +1535,7 @@ static void
1534cleanup_consume_ticket_handle (struct ConsumeTicketHandle *handle) 1535cleanup_consume_ticket_handle (struct ConsumeTicketHandle *handle)
1535{ 1536{
1536 if (NULL != handle->key) 1537 if (NULL != handle->key)
1537 GNUNET_CRYPTO_cpabe_delete_key (handle->key, 1538 GNUNET_ABE_cpabe_delete_key (handle->key,
1538 GNUNET_YES); 1539 GNUNET_YES);
1539 if (NULL != handle->attrs) 1540 if (NULL != handle->attrs)
1540 GNUNET_IDENTITY_ATTRIBUTE_list_destroy (handle->attrs); 1541 GNUNET_IDENTITY_ATTRIBUTE_list_destroy (handle->attrs);
@@ -1603,7 +1604,7 @@ process_parallel_lookup2 (void *cls, uint32_t rd_count,
1603 if (rd->record_type == GNUNET_GNSRECORD_TYPE_ID_ATTR) 1604 if (rd->record_type == GNUNET_GNSRECORD_TYPE_ID_ATTR)
1604 { 1605 {
1605 decrypt_duration = GNUNET_TIME_absolute_get (); 1606 decrypt_duration = GNUNET_TIME_absolute_get ();
1606 attr_len = GNUNET_CRYPTO_cpabe_decrypt (rd->data + sizeof (uint32_t), 1607 attr_len = GNUNET_ABE_cpabe_decrypt (rd->data + sizeof (uint32_t),
1607 rd->data_size - sizeof (uint32_t), 1608 rd->data_size - sizeof (uint32_t),
1608 handle->key, 1609 handle->key,
1609 (void**)&data); 1610 (void**)&data);
@@ -1745,7 +1746,7 @@ process_consume_abe_key (void *cls, uint32_t rd_count,
1745 scopes = GNUNET_strdup (buf); 1746 scopes = GNUNET_strdup (buf);
1746 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1747 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1747 "Scopes %s\n", scopes); 1748 "Scopes %s\n", scopes);
1748 handle->key = GNUNET_CRYPTO_cpabe_deserialize_key ((void*)(buf + strlen (scopes) + 1), 1749 handle->key = GNUNET_ABE_cpabe_deserialize_key ((void*)(buf + strlen (scopes) + 1),
1749 rd->data_size - sizeof (struct GNUNET_CRYPTO_EcdhePublicKey) 1750 rd->data_size - sizeof (struct GNUNET_CRYPTO_EcdhePublicKey)
1750 - strlen (scopes) - 1); 1751 - strlen (scopes) - 1);
1751 1752
@@ -1833,7 +1834,7 @@ cleanup_as_handle (struct AttributeStoreHandle *handle)
1833 if (NULL != handle->claim) 1834 if (NULL != handle->claim)
1834 GNUNET_free (handle->claim); 1835 GNUNET_free (handle->claim);
1835 if (NULL != handle->abe_key) 1836 if (NULL != handle->abe_key)
1836 GNUNET_CRYPTO_cpabe_delete_master_key (handle->abe_key); 1837 GNUNET_ABE_cpabe_delete_master_key (handle->abe_key);
1837 GNUNET_free (handle); 1838 GNUNET_free (handle);
1838} 1839}
1839 1840
@@ -1897,7 +1898,7 @@ attr_store_task (void *cls)
1897 /** 1898 /**
1898 * Encrypt the attribute value and store in namestore 1899 * Encrypt the attribute value and store in namestore
1899 */ 1900 */
1900 enc_size = GNUNET_CRYPTO_cpabe_encrypt (buf, 1901 enc_size = GNUNET_ABE_cpabe_encrypt (buf,
1901 buf_size, 1902 buf_size,
1902 policy, //Policy 1903 policy, //Policy
1903 as_handle->abe_key, 1904 as_handle->abe_key,
@@ -1931,7 +1932,7 @@ attr_store_task (void *cls)
1931 1932
1932static void 1933static void
1933store_after_abe_bootstrap (void *cls, 1934store_after_abe_bootstrap (void *cls,
1934 struct GNUNET_CRYPTO_AbeMasterKey *abe_key) 1935 struct GNUNET_ABE_AbeMasterKey *abe_key)
1935{ 1936{
1936 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1937 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1937 "Finished ABE bootstrap\n"); 1938 "Finished ABE bootstrap\n");
@@ -2001,7 +2002,7 @@ static void
2001cleanup_iter_handle (struct AttributeIterator *ai) 2002cleanup_iter_handle (struct AttributeIterator *ai)
2002{ 2003{
2003 if (NULL != ai->abe_key) 2004 if (NULL != ai->abe_key)
2004 GNUNET_CRYPTO_cpabe_delete_master_key (ai->abe_key); 2005 GNUNET_ABE_cpabe_delete_master_key (ai->abe_key);
2005 GNUNET_CONTAINER_DLL_remove (ai->client->op_head, 2006 GNUNET_CONTAINER_DLL_remove (ai->client->op_head,
2006 ai->client->op_tail, 2007 ai->client->op_tail,
2007 ai); 2008 ai);
@@ -2043,7 +2044,7 @@ attr_iter_cb (void *cls,
2043{ 2044{
2044 struct AttributeIterator *ai = cls; 2045 struct AttributeIterator *ai = cls;
2045 struct AttributeResultMessage *arm; 2046 struct AttributeResultMessage *arm;
2046 struct GNUNET_CRYPTO_AbeKey *key; 2047 struct GNUNET_ABE_AbeKey *key;
2047 struct GNUNET_MQ_Envelope *env; 2048 struct GNUNET_MQ_Envelope *env;
2048 ssize_t msg_extra_len; 2049 ssize_t msg_extra_len;
2049 char* attr_ser; 2050 char* attr_ser;
@@ -2067,14 +2068,14 @@ attr_iter_cb (void *cls,
2067 label, attr_ver); 2068 label, attr_ver);
2068 attrs[0] = policy; 2069 attrs[0] = policy;
2069 attrs[1] = 0; 2070 attrs[1] = 0;
2070 key = GNUNET_CRYPTO_cpabe_create_key (ai->abe_key, 2071 key = GNUNET_ABE_cpabe_create_key (ai->abe_key,
2071 attrs); 2072 attrs);
2072 msg_extra_len = GNUNET_CRYPTO_cpabe_decrypt (rd->data+sizeof (uint32_t), 2073 msg_extra_len = GNUNET_ABE_cpabe_decrypt (rd->data+sizeof (uint32_t),
2073 rd->data_size-sizeof (uint32_t), 2074 rd->data_size-sizeof (uint32_t),
2074 key, 2075 key,
2075 (void**)&attr_ser); 2076 (void**)&attr_ser);
2076 2077
2077 GNUNET_CRYPTO_cpabe_delete_key (key, 2078 GNUNET_ABE_cpabe_delete_key (key,
2078 GNUNET_YES); 2079 GNUNET_YES);
2079 //GNUNET_free (policy); 2080 //GNUNET_free (policy);
2080 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2081 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -2092,14 +2093,14 @@ attr_iter_cb (void *cls,
2092 msg_extra_len); 2093 msg_extra_len);
2093 GNUNET_MQ_send (ai->client->mq, env); 2094 GNUNET_MQ_send (ai->client->mq, env);
2094 GNUNET_free (attr_ser); 2095 GNUNET_free (attr_ser);
2095 GNUNET_CRYPTO_cpabe_delete_master_key (ai->abe_key); 2096 GNUNET_ABE_cpabe_delete_master_key (ai->abe_key);
2096 ai->abe_key = NULL; 2097 ai->abe_key = NULL;
2097} 2098}
2098 2099
2099 2100
2100void 2101void
2101iterate_after_abe_bootstrap (void *cls, 2102iterate_after_abe_bootstrap (void *cls,
2102 struct GNUNET_CRYPTO_AbeMasterKey *abe_key) 2103 struct GNUNET_ABE_AbeMasterKey *abe_key)
2103{ 2104{
2104 struct AttributeIterator *ai = cls; 2105 struct AttributeIterator *ai = cls;
2105 ai->abe_key = abe_key; 2106 ai->abe_key = abe_key;
@@ -2115,7 +2116,7 @@ iterate_after_abe_bootstrap (void *cls,
2115 2116
2116void 2117void
2117iterate_next_after_abe_bootstrap (void *cls, 2118iterate_next_after_abe_bootstrap (void *cls,
2118 struct GNUNET_CRYPTO_AbeMasterKey *abe_key) 2119 struct GNUNET_ABE_AbeMasterKey *abe_key)
2119{ 2120{
2120 struct AttributeIterator *ai = cls; 2121 struct AttributeIterator *ai = cls;
2121 ai->abe_key = abe_key; 2122 ai->abe_key = abe_key;