diff options
Diffstat (limited to 'src/credential/plugin_gnsrecord_credential.c')
-rw-r--r-- | src/credential/plugin_gnsrecord_credential.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c index d21185981..1358afdb1 100644 --- a/src/credential/plugin_gnsrecord_credential.c +++ b/src/credential/plugin_gnsrecord_credential.c | |||
@@ -65,12 +65,6 @@ credential_value_to_string (void *cls, | |||
65 | memcpy (&sets, | 65 | memcpy (&sets, |
66 | data, | 66 | data, |
67 | sizeof (sets)); | 67 | sizeof (sets)); |
68 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
69 | "SIZE %llu needed: %llu + %llu\n", | ||
70 | data_size, | ||
71 | GNUNET_ntohll (sets.data_size), | ||
72 | sizeof (sets)); | ||
73 | |||
74 | cdata = data; | 68 | cdata = data; |
75 | struct GNUNET_CREDENTIAL_DelegationSetRecord set[ntohl(sets.set_count)]; | 69 | struct GNUNET_CREDENTIAL_DelegationSetRecord set[ntohl(sets.set_count)]; |
76 | if (GNUNET_OK != GNUNET_CREDENTIAL_delegation_set_deserialize (GNUNET_ntohll (sets.data_size), | 70 | if (GNUNET_OK != GNUNET_CREDENTIAL_delegation_set_deserialize (GNUNET_ntohll (sets.data_size), |
@@ -238,15 +232,8 @@ credential_string_to_value (void *cls, | |||
238 | strlen (subject_pkey), | 232 | strlen (subject_pkey), |
239 | &set[i].subject_key); | 233 | &set[i].subject_key); |
240 | if (2 == matches) { | 234 | if (2 == matches) { |
241 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
242 | "Adding %s (data size %llu)\n", | ||
243 | attr_str, | ||
244 | tmp_data_size); | ||
245 | /*GNUNET_memcpy (&set[1], | ||
246 | attr_str, | ||
247 | strlen (attr_str)+1);*/ | ||
248 | set[i].subject_attribute_len = strlen (attr_str) + 1; | 235 | set[i].subject_attribute_len = strlen (attr_str) + 1; |
249 | set[i].subject_attribute = GNUNET_strdup (attr_str);//(const char*)&set[1]; | 236 | set[i].subject_attribute = GNUNET_strdup (attr_str); |
250 | } | 237 | } |
251 | token = strtok (NULL , ","); | 238 | token = strtok (NULL , ","); |
252 | } | 239 | } |