diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_credential_service.h | 15 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 4 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/include/gnunet_credential_service.h b/src/include/gnunet_credential_service.h index 906163c14..d04c0a253 100644 --- a/src/include/gnunet_credential_service.h +++ b/src/include/gnunet_credential_service.h | |||
@@ -235,7 +235,7 @@ GNUNET_CREDENTIAL_disconnect (struct GNUNET_CREDENTIAL_Handle *handle); | |||
235 | * @param c_count the number of credentials found | 235 | * @param c_count the number of credentials found |
236 | * @param credential the credentials | 236 | * @param credential the credentials |
237 | */ | 237 | */ |
238 | typedef void (*GNUNET_CREDENTIAL_VerifyResultProcessor) (void *cls, | 238 | typedef void (*GNUNET_CREDENTIAL_CredentialResultProcessor) (void *cls, |
239 | unsigned int d_count, | 239 | unsigned int d_count, |
240 | struct GNUNET_CREDENTIAL_Delegation *delegation_chain, | 240 | struct GNUNET_CREDENTIAL_Delegation *delegation_chain, |
241 | unsigned int c_count, | 241 | unsigned int c_count, |
@@ -286,10 +286,19 @@ GNUNET_CREDENTIAL_verify (struct GNUNET_CREDENTIAL_Handle *handle, | |||
286 | const struct GNUNET_CRYPTO_EcdsaPublicKey *issuer_key, | 286 | const struct GNUNET_CRYPTO_EcdsaPublicKey *issuer_key, |
287 | const char *issuer_attribute, | 287 | const char *issuer_attribute, |
288 | const struct GNUNET_CRYPTO_EcdsaPublicKey *subject_key, | 288 | const struct GNUNET_CRYPTO_EcdsaPublicKey *subject_key, |
289 | const char *subject_attribute, | 289 | uint32_t credential_count, |
290 | GNUNET_CREDENTIAL_VerifyResultProcessor proc, | 290 | const struct GNUNET_CREDENTIAL_Credential *credentials, |
291 | GNUNET_CREDENTIAL_CredentialResultProcessor proc, | ||
291 | void *proc_cls); | 292 | void *proc_cls); |
292 | 293 | ||
294 | struct GNUNET_CREDENTIAL_Request* | ||
295 | GNUNET_CREDENTIAL_collect (struct GNUNET_CREDENTIAL_Handle *handle, | ||
296 | const struct GNUNET_CRYPTO_EcdsaPublicKey *issuer_key, | ||
297 | const char *issuer_attribute, | ||
298 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *subject_key, | ||
299 | GNUNET_CREDENTIAL_CredentialResultProcessor proc, | ||
300 | void *proc_cls); | ||
301 | |||
293 | /** | 302 | /** |
294 | * Delegate an attribute | 303 | * Delegate an attribute |
295 | * | 304 | * |
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 596196311..cf26f1727 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -2616,6 +2616,10 @@ extern "C" | |||
2616 | 2616 | ||
2617 | #define GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT 972 | 2617 | #define GNUNET_MESSAGE_TYPE_CREDENTIAL_VERIFY_RESULT 972 |
2618 | 2618 | ||
2619 | #define GNUNET_MESSAGE_TYPE_CREDENTIAL_COLLECT 973 | ||
2620 | |||
2621 | #define GNUNET_MESSAGE_TYPE_CREDENTIAL_COLLECT_RESULT 974 | ||
2622 | |||
2619 | /******************************************************************************/ | 2623 | /******************************************************************************/ |
2620 | 2624 | ||
2621 | 2625 | ||