aboutsummaryrefslogtreecommitdiff
path: root/src/include
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
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')
-rw-r--r--src/include/gnunet_credential_service.h13
-rw-r--r--src/include/gnunet_protocols.h2
-rw-r--r--src/include/gnunet_signatures.h6
3 files changed, 13 insertions, 8 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
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index c932c44d0..4ca1ad47a 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -2726,6 +2726,8 @@ extern "C" {
2726 2726
2727#define GNUNET_MESSAGE_TYPE_CREDENTIAL_COLLECT_RESULT 984 2727#define GNUNET_MESSAGE_TYPE_CREDENTIAL_COLLECT_RESULT 984
2728 2728
2729#define GNUNET_MESSAGE_TYPE_CREDENTIAL_INTERMEDIATE_RESULT 985
2730
2729/******************************************************************************/ 2731/******************************************************************************/
2730 2732
2731 2733
diff --git a/src/include/gnunet_signatures.h b/src/include/gnunet_signatures.h
index 1d6d5a229..a00e0372d 100644
--- a/src/include/gnunet_signatures.h
+++ b/src/include/gnunet_signatures.h
@@ -188,7 +188,7 @@ extern "C"
188/** 188/**
189 * Signature for a GNUnet credential 189 * Signature for a GNUnet credential
190 */ 190 */
191#define GNUNET_SIGNATURE_PURPOSE_CREDENTIAL 28 191#define GNUNET_SIGNATURE_PURPOSE_DELEGATE 28
192 192
193/** 193/**
194 * Signature by a peer affirming that this is one of its 194 * Signature by a peer affirming that this is one of its
@@ -241,10 +241,6 @@ extern "C"
241 */ 241 */
242#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR 37 242#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR 37
243 243
244/**
245 * Signature for a GNUnet delegate
246 */
247#define GNUNET_SIGNATURE_PURPOSE_DELEGATE 38
248 244
249#if 0 /* keep Emacsens' auto-indent happy */ 245#if 0 /* keep Emacsens' auto-indent happy */
250{ 246{