diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-04 16:37:28 +0100 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-04 16:37:28 +0100 |
commit | f485d0399e8ef0c388a321bbad7ae424935752bc (patch) | |
tree | 7b7dcad11af2375c4a0e1904d1dec33bd8a88397 /src/identity-provider | |
parent | b16fa2d88aabb18f222b40136d6ace68ffc104c6 (diff) | |
download | gnunet-f485d0399e8ef0c388a321bbad7ae424935752bc.tar.gz gnunet-f485d0399e8ef0c388a321bbad7ae424935752bc.zip |
-fix makefile
Diffstat (limited to 'src/identity-provider')
-rw-r--r-- | src/identity-provider/gnunet-idp.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/identity-provider/gnunet-idp.c b/src/identity-provider/gnunet-idp.c index 18a5676c0..78da1cb4d 100644 --- a/src/identity-provider/gnunet-idp.c +++ b/src/identity-provider/gnunet-idp.c | |||
@@ -168,6 +168,7 @@ process_attrs (void *cls, | |||
168 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, | 168 | const struct GNUNET_CRYPTO_EcdsaPublicKey *identity, |
169 | const struct GNUNET_IDENTITY_ATTRIBUTE_Claim *attr) | 169 | const struct GNUNET_IDENTITY_ATTRIBUTE_Claim *attr) |
170 | { | 170 | { |
171 | char *claim; | ||
171 | if (NULL == identity) | 172 | if (NULL == identity) |
172 | { | 173 | { |
173 | GNUNET_SCHEDULER_add_now (&do_cleanup, NULL); | 174 | GNUNET_SCHEDULER_add_now (&do_cleanup, NULL); |
@@ -178,8 +179,11 @@ process_attrs (void *cls, | |||
178 | ret = 1; | 179 | ret = 1; |
179 | return; | 180 | return; |
180 | } | 181 | } |
182 | claim = GNUNET_IDENTITY_ATTRIBUTE_claim_to_string (attr->type, | ||
183 | attr->data, | ||
184 | attr->data_size); | ||
181 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, | 185 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, |
182 | "%s: %s\n", attr->name, (char*)attr->data); | 186 | "%s: %s\n", attr->name, claim); |
183 | } | 187 | } |
184 | 188 | ||
185 | 189 | ||
@@ -245,9 +249,9 @@ iter_finished (void *cls) | |||
245 | return; | 249 | return; |
246 | } | 250 | } |
247 | attr = GNUNET_IDENTITY_ATTRIBUTE_claim_new (attr_name, | 251 | attr = GNUNET_IDENTITY_ATTRIBUTE_claim_new (attr_name, |
248 | GNUNET_IDENTITY_ATTRIBUTE_TYPE_STRING, | 252 | GNUNET_IDENTITY_ATTRIBUTE_TYPE_STRING, |
249 | attr_value, | 253 | attr_value, |
250 | strlen (attr_value) + 1); | 254 | strlen (attr_value) + 1); |
251 | idp_op = GNUNET_IDENTITY_PROVIDER_attribute_store (idp_handle, | 255 | idp_op = GNUNET_IDENTITY_PROVIDER_attribute_store (idp_handle, |
252 | pkey, | 256 | pkey, |
253 | attr, | 257 | attr, |