aboutsummaryrefslogtreecommitdiff
path: root/src/credential/credential_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/credential/credential_api.c')
-rw-r--r--src/credential/credential_api.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/credential/credential_api.c b/src/credential/credential_api.c
index cae670206..860504e61 100644
--- a/src/credential/credential_api.c
+++ b/src/credential/credential_api.c
@@ -216,8 +216,9 @@ handle_result (void *cls,
216 struct GNUNET_CREDENTIAL_Request *vr; 216 struct GNUNET_CREDENTIAL_Request *vr;
217 size_t mlen = ntohs (vr_msg->header.size) - sizeof (*vr_msg); 217 size_t mlen = ntohs (vr_msg->header.size) - sizeof (*vr_msg);
218 uint32_t d_count = ntohl (vr_msg->d_count); 218 uint32_t d_count = ntohl (vr_msg->d_count);
219 uint32_t c_count = ntohl (vr_msg->c_count);
219 struct GNUNET_CREDENTIAL_Delegation d_chain[d_count]; 220 struct GNUNET_CREDENTIAL_Delegation d_chain[d_count];
220 struct GNUNET_CREDENTIAL_Credential cred; 221 struct GNUNET_CREDENTIAL_Credential creds[c_count];
221 GNUNET_CREDENTIAL_VerifyResultProcessor proc; 222 GNUNET_CREDENTIAL_VerifyResultProcessor proc;
222 void *proc_cls; 223 void *proc_cls;
223 224
@@ -239,18 +240,21 @@ handle_result (void *cls,
239 (const char*) &vr_msg[1], 240 (const char*) &vr_msg[1],
240 d_count, 241 d_count,
241 d_chain, 242 d_chain,
242 &cred)); 243 c_count,
244 creds));
243 if (GNUNET_NO == ntohl (vr_msg->cred_found)) 245 if (GNUNET_NO == ntohl (vr_msg->cred_found))
244 { 246 {
245 proc (proc_cls, 247 proc (proc_cls,
246 0, 248 0,
247 NULL, 249 NULL,
250 0,
248 NULL); // TODO 251 NULL); // TODO
249 } else { 252 } else {
250 proc (proc_cls, 253 proc (proc_cls,
251 d_count, 254 d_count,
252 d_chain, 255 d_chain,
253 &cred); 256 c_count,
257 creds);
254 } 258 }
255} 259}
256 260