From 02066879bd7eb841d01e1359021de3bc3aca11e0 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Wed, 14 Dec 2016 16:20:54 +0100 Subject: -towards type4 --- src/include/gnunet_credential_service.h | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'src/include/gnunet_credential_service.h') diff --git a/src/include/gnunet_credential_service.h b/src/include/gnunet_credential_service.h index ba72b752b..b28d90140 100644 --- a/src/include/gnunet_credential_service.h +++ b/src/include/gnunet_credential_service.h @@ -125,6 +125,46 @@ struct GNUNET_CREDENTIAL_AttributeRecordData { */ }; +/** + * The attribute delegation record +*/ +struct GNUNET_CREDENTIAL_DelegationRecordData { + + uint32_t set_count; + + uint64_t data_size; + + char *data; + + /** + * Followed by the attribute that was delegated to as string + * May be empty + */ +}; + + + +/** + * The attribute delegation record +*/ +struct GNUNET_CREDENTIAL_DelegationSetRecord { + + /** + * Public key of the subject this attribute was delegated to + */ + struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; + + uint32_t subject_attribute_len; + + const char *subject_attribute; + + /** + * Followed by the attribute that was delegated to as string + * May be empty + */ +}; + + /** * A delegation */ -- cgit v1.2.3