aboutsummaryrefslogtreecommitdiff
path: root/src/abd/plugin_gnsrecord_abd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/abd/plugin_gnsrecord_abd.c')
-rw-r--r--src/abd/plugin_gnsrecord_abd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/abd/plugin_gnsrecord_abd.c b/src/abd/plugin_gnsrecord_abd.c
index 25dc20152..24cf6a3aa 100644
--- a/src/abd/plugin_gnsrecord_abd.c
+++ b/src/abd/plugin_gnsrecord_abd.c
@@ -77,7 +77,7 @@ abd_value_to_string (void *cls,
77 for (i = 0; i < ntohl (sets.set_count); i++) 77 for (i = 0; i < ntohl (sets.set_count); i++)
78 { 78 {
79 subject_pkey = 79 subject_pkey =
80 GNUNET_CRYPTO_ecdsa_public_key_to_string (&set[i].subject_key); 80 GNUNET_IDENTITY_public_key_to_string (&set[i].subject_key);
81 81
82 if (0 == set[i].subject_attribute_len) 82 if (0 == set[i].subject_attribute_len)
83 { 83 {
@@ -158,7 +158,7 @@ abd_string_to_value (void *cls,
158 { 158 {
159 struct GNUNET_ABD_DelegationRecord *sets; 159 struct GNUNET_ABD_DelegationRecord *sets;
160 char attr_str[253 + 1]; 160 char attr_str[253 + 1];
161 char subject_pkey[52 + 1]; 161 char subject_pkey[58 + 1];
162 char *token; 162 char *token;
163 char *tmp_str; 163 char *tmp_str;
164 int matches = 0; 164 int matches = 0;
@@ -207,8 +207,7 @@ abd_string_to_value (void *cls,
207 matches = sscanf (token, "%s %s", subject_pkey, attr_str); 207 matches = sscanf (token, "%s %s", subject_pkey, attr_str);
208 208
209 // sets the public key for the set entry 209 // sets the public key for the set entry
210 GNUNET_CRYPTO_ecdsa_public_key_from_string (subject_pkey, 210 GNUNET_IDENTITY_public_key_from_string (subject_pkey,
211 strlen (subject_pkey),
212 &set[i].subject_key); 211 &set[i].subject_key);
213 212
214 // If not just key, also set subject attribute (Not A.a <- B but A.a <- B.b) 213 // If not just key, also set subject attribute (Not A.a <- B but A.a <- B.b)