diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-06 10:09:21 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-06 10:09:21 +0100 |
commit | 10b2bbf99b0dc611a735ad0a04d3ab5109a090f0 (patch) | |
tree | c7cd07943c91d5a995aaca588259069449cbd7b3 /src/include | |
parent | 8c1425aa729914e0b2695fcab1ce29ea0aebffbb (diff) | |
download | gnunet-10b2bbf99b0dc611a735ad0a04d3ab5109a090f0.tar.gz gnunet-10b2bbf99b0dc611a735ad0a04d3ab5109a090f0.zip |
-add expiration to cred
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_credential_service.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/gnunet_credential_service.h b/src/include/gnunet_credential_service.h index 151587768..a7de3c822 100644 --- a/src/include/gnunet_credential_service.h +++ b/src/include/gnunet_credential_service.h | |||
@@ -83,6 +83,10 @@ struct GNUNET_CREDENTIAL_CredentialRecordData { | |||
83 | */ | 83 | */ |
84 | struct GNUNET_CRYPTO_EcdsaSignature sig; | 84 | struct GNUNET_CRYPTO_EcdsaSignature sig; |
85 | 85 | ||
86 | /** | ||
87 | * Signature meta | ||
88 | */ | ||
89 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | ||
86 | 90 | ||
87 | /** | 91 | /** |
88 | * Public key of the issuer | 92 | * Public key of the issuer |
@@ -250,13 +254,15 @@ GNUNET_CREDENTIAL_remove_delegation (struct GNUNET_CREDENTIAL_Handle *handle, | |||
250 | * @param issuer the ego that should be used to issue the attribute | 254 | * @param issuer the ego that should be used to issue the attribute |
251 | * @param subject the subject of the attribute | 255 | * @param subject the subject of the attribute |
252 | * @param attribute the name of the attribute | 256 | * @param attribute the name of the attribute |
257 | * @param expiration the TTL of the credential | ||
253 | * @return handle to the queued request | 258 | * @return handle to the queued request |
254 | */ | 259 | */ |
255 | struct GNUNET_CREDENTIAL_CredentialRecordData * | 260 | struct GNUNET_CREDENTIAL_CredentialRecordData * |
256 | GNUNET_CREDENTIAL_issue (struct GNUNET_CREDENTIAL_Handle *handle, | 261 | GNUNET_CREDENTIAL_issue (struct GNUNET_CREDENTIAL_Handle *handle, |
257 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, | 262 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *issuer, |
258 | struct GNUNET_CRYPTO_EcdsaPublicKey *subject, | 263 | struct GNUNET_CRYPTO_EcdsaPublicKey *subject, |
259 | const char *attribute); | 264 | const char *attribute, |
265 | struct GNUNET_TIME_Absolute *expiration); | ||
260 | 266 | ||
261 | 267 | ||
262 | /** | 268 | /** |