diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-02-07 21:15:59 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-02-09 20:38:11 +0100 |
commit | e8ea1f3e34e2a07cbe2fd4725e7362027d0c51c3 (patch) | |
tree | 5b11a525700872147d92d8195615e4352d6d18b1 /src/include/gnunet_reclaim_plugin.h | |
parent | 5f9f9cae1714eb33e0ee9c824f3d88e6aab8cf63 (diff) | |
download | gnunet-e8ea1f3e34e2a07cbe2fd4725e7362027d0c51c3.tar.gz gnunet-e8ea1f3e34e2a07cbe2fd4725e7362027d0c51c3.zip |
add expiration
Diffstat (limited to 'src/include/gnunet_reclaim_plugin.h')
-rw-r--r-- | src/include/gnunet_reclaim_plugin.h | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/src/include/gnunet_reclaim_plugin.h b/src/include/gnunet_reclaim_plugin.h index d42ac9502..992ad0cc3 100644 --- a/src/include/gnunet_reclaim_plugin.h +++ b/src/include/gnunet_reclaim_plugin.h | |||
@@ -166,17 +166,40 @@ typedef const char *(*GNUNET_RECLAIM_AttestationNumberToTypenameFunction) ( | |||
166 | uint32_t type); | 166 | uint32_t type); |
167 | 167 | ||
168 | /** | 168 | /** |
169 | * Function called to convert a type number (i.e. 1) to the | 169 | * Function called to extract attributes from an attestation |
170 | * corresponding type string | ||
171 | * | 170 | * |
172 | * @param cls closure | 171 | * @param cls closure |
173 | * @param type number of a type to convert | 172 | * @param attest the attestation object |
174 | * @return corresponding typestring, NULL on error | 173 | * @return an attribute list |
175 | */ | 174 | */ |
176 | typedef struct GNUNET_RECLAIM_AttributeList *(*GNUNET_RECLAIM_AttestationGetAttributesFunction) ( | 175 | typedef struct GNUNET_RECLAIM_AttributeList *(*GNUNET_RECLAIM_AttestationGetAttributesFunction) ( |
177 | void *cls, | 176 | void *cls, |
178 | const struct GNUNET_RECLAIM_Attestation *attest); | 177 | const struct GNUNET_RECLAIM_Attestation *attest); |
179 | 178 | ||
179 | /** | ||
180 | * Function called to get the issuer of the attestation (as string) | ||
181 | * | ||
182 | * @param cls closure | ||
183 | * @param attest the attestation object | ||
184 | * @return corresponding issuer string | ||
185 | */ | ||
186 | typedef char *(*GNUNET_RECLAIM_AttestationGetIssuerFunction) ( | ||
187 | void *cls, | ||
188 | const struct GNUNET_RECLAIM_Attestation *attest); | ||
189 | |||
190 | /** | ||
191 | * Function called to get the expiration of the attestation | ||
192 | * | ||
193 | * @param cls closure | ||
194 | * @param attest the attestation object | ||
195 | * @param where to write the value | ||
196 | * @return GNUNET_OK if successful | ||
197 | */ | ||
198 | typedef int (*GNUNET_RECLAIM_AttestationGetExpirationFunction) ( | ||
199 | void *cls, | ||
200 | const struct GNUNET_RECLAIM_Attestation *attest, | ||
201 | struct GNUNET_TIME_Absolute *expiration); | ||
202 | |||
180 | 203 | ||
181 | 204 | ||
182 | /** | 205 | /** |
@@ -248,7 +271,15 @@ struct GNUNET_RECLAIM_AttestationPluginFunctions | |||
248 | */ | 271 | */ |
249 | GNUNET_RECLAIM_AttestationGetAttributesFunction get_attributes; | 272 | GNUNET_RECLAIM_AttestationGetAttributesFunction get_attributes; |
250 | 273 | ||
274 | /** | ||
275 | * Attesation issuer. | ||
276 | */ | ||
277 | GNUNET_RECLAIM_AttestationGetIssuerFunction get_issuer; | ||
251 | 278 | ||
279 | /** | ||
280 | * Expiration. | ||
281 | */ | ||
282 | GNUNET_RECLAIM_AttestationGetExpirationFunction get_expiration; | ||
252 | }; | 283 | }; |
253 | 284 | ||
254 | 285 | ||