aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_credential_service.h
diff options
context:
space:
mode:
authorAndreas Ebner <pansy007@googlemail.com>2019-08-25 12:23:33 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-10-07 12:17:29 +0200
commitd4790594a33a4688641f66841f05533b3c0956b9 (patch)
treeee136e65e4154a7d4bb6eb947f19b631329cdce2 /src/include/gnunet_credential_service.h
parent418b7f2cef91e344672edf3926b82a5a3043e9ba (diff)
downloadgnunet-d4790594a33a4688641f66841f05533b3c0956b9.tar.gz
gnunet-d4790594a33a4688641f66841f05533b3c0956b9.zip
Introduction of intermediate result reporting, removed some stuff, new test:
- new message, message type and api function to handle intermediate result reporting - removed GNUNET_SIGNATURE_PURPOSE_CREDENTIAL completely and the one usage that was still around - new test: AND with both parts having a bidirectional forward match
Diffstat (limited to 'src/include/gnunet_credential_service.h')
-rw-r--r--src/include/gnunet_credential_service.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/include/gnunet_credential_service.h b/src/include/gnunet_credential_service.h
index be682c3b5..fdee3b641 100644
--- a/src/include/gnunet_credential_service.h
+++ b/src/include/gnunet_credential_service.h
@@ -259,7 +259,10 @@ typedef void (*GNUNET_CREDENTIAL_CredentialResultProcessor) (void *cls,
259 unsigned int d_count, 259 unsigned int d_count,
260 struct GNUNET_CREDENTIAL_Delegation *delegation_chain, 260 struct GNUNET_CREDENTIAL_Delegation *delegation_chain,
261 unsigned int c_count, 261 unsigned int c_count,
262 struct GNUNET_CREDENTIAL_Delegate *credential); 262 struct GNUNET_CREDENTIAL_Delegate *delegte);
263
264typedef void (*GNUNET_CREDENTIAL_IntermediateResultProcessor) (void *cls,
265 struct GNUNET_CREDENTIAL_Delegation *delegation);
263 266
264/** 267/**
265 * Iterator called on obtained result for an attribute delegation. 268 * Iterator called on obtained result for an attribute delegation.
@@ -309,7 +312,9 @@ GNUNET_CREDENTIAL_verify (struct GNUNET_CREDENTIAL_Handle *handle,
309 const struct GNUNET_CREDENTIAL_Delegate *delegates, 312 const struct GNUNET_CREDENTIAL_Delegate *delegates,
310 enum GNUNET_CREDENTIAL_AlgoDirectionFlags direction, 313 enum GNUNET_CREDENTIAL_AlgoDirectionFlags direction,
311 GNUNET_CREDENTIAL_CredentialResultProcessor proc, 314 GNUNET_CREDENTIAL_CredentialResultProcessor proc,
312 void *proc_cls); 315 void *proc_cls,
316 GNUNET_CREDENTIAL_IntermediateResultProcessor,
317 void *proc2_cls);
313 318
314struct GNUNET_CREDENTIAL_Request* 319struct GNUNET_CREDENTIAL_Request*
315GNUNET_CREDENTIAL_collect (struct GNUNET_CREDENTIAL_Handle *handle, 320GNUNET_CREDENTIAL_collect (struct GNUNET_CREDENTIAL_Handle *handle,
@@ -318,7 +323,9 @@ GNUNET_CREDENTIAL_collect (struct GNUNET_CREDENTIAL_Handle *handle,
318 const struct GNUNET_CRYPTO_EcdsaPrivateKey *subject_key, 323 const struct GNUNET_CRYPTO_EcdsaPrivateKey *subject_key,
319 enum GNUNET_CREDENTIAL_AlgoDirectionFlags direction, 324 enum GNUNET_CREDENTIAL_AlgoDirectionFlags direction,
320 GNUNET_CREDENTIAL_CredentialResultProcessor proc, 325 GNUNET_CREDENTIAL_CredentialResultProcessor proc,
321 void *proc_cls); 326 void *proc_cls,
327 GNUNET_CREDENTIAL_IntermediateResultProcessor,
328 void *proc2_cls);
322 329
323/** 330/**
324 * Delegate an attribute 331 * Delegate an attribute