diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-14 16:20:54 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-14 16:20:54 +0100 |
commit | 02066879bd7eb841d01e1359021de3bc3aca11e0 (patch) | |
tree | a776dbed35166bb342f9bddb2a0140097ffc0d66 /src/include | |
parent | a80e5610fe689631da94242e05f5ad85b21b6b4d (diff) | |
download | gnunet-02066879bd7eb841d01e1359021de3bc3aca11e0.tar.gz gnunet-02066879bd7eb841d01e1359021de3bc3aca11e0.zip |
-towards type4
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_credential_service.h | 40 |
1 files changed, 40 insertions, 0 deletions
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 | |||
@@ -126,6 +126,46 @@ struct GNUNET_CREDENTIAL_AttributeRecordData { | |||
126 | }; | 126 | }; |
127 | 127 | ||
128 | /** | 128 | /** |
129 | * The attribute delegation record | ||
130 | */ | ||
131 | struct GNUNET_CREDENTIAL_DelegationRecordData { | ||
132 | |||
133 | uint32_t set_count; | ||
134 | |||
135 | uint64_t data_size; | ||
136 | |||
137 | char *data; | ||
138 | |||
139 | /** | ||
140 | * Followed by the attribute that was delegated to as string | ||
141 | * May be empty | ||
142 | */ | ||
143 | }; | ||
144 | |||
145 | |||
146 | |||
147 | /** | ||
148 | * The attribute delegation record | ||
149 | */ | ||
150 | struct GNUNET_CREDENTIAL_DelegationSetRecord { | ||
151 | |||
152 | /** | ||
153 | * Public key of the subject this attribute was delegated to | ||
154 | */ | ||
155 | struct GNUNET_CRYPTO_EcdsaPublicKey subject_key; | ||
156 | |||
157 | uint32_t subject_attribute_len; | ||
158 | |||
159 | const char *subject_attribute; | ||
160 | |||
161 | /** | ||
162 | * Followed by the attribute that was delegated to as string | ||
163 | * May be empty | ||
164 | */ | ||
165 | }; | ||
166 | |||
167 | |||
168 | /** | ||
129 | * A delegation | 169 | * A delegation |
130 | */ | 170 | */ |
131 | struct GNUNET_CREDENTIAL_Delegation { | 171 | struct GNUNET_CREDENTIAL_Delegation { |