aboutsummaryrefslogtreecommitdiff
path: root/src/identity-provider/identity_provider_api.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-04-10 11:26:46 +0200
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-04-10 11:26:46 +0200
commitb1af3dcf2ad69264883a398ab431fa99c7135f79 (patch)
treeaed788ced81305b7cc7ed361c33fa9bb386bd087 /src/identity-provider/identity_provider_api.c
parente331d5f6dfb406f9c56d4b3cb69b671b317d6992 (diff)
downloadgnunet-b1af3dcf2ad69264883a398ab431fa99c7135f79.tar.gz
gnunet-b1af3dcf2ad69264883a398ab431fa99c7135f79.zip
add attribute expiration
Diffstat (limited to 'src/identity-provider/identity_provider_api.c')
-rw-r--r--src/identity-provider/identity_provider_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/identity-provider/identity_provider_api.c b/src/identity-provider/identity_provider_api.c
index e993a1ac7..21ce6e3d6 100644
--- a/src/identity-provider/identity_provider_api.c
+++ b/src/identity-provider/identity_provider_api.c
@@ -908,6 +908,7 @@ GNUNET_IDENTITY_PROVIDER_disconnect (struct GNUNET_IDENTITY_PROVIDER_Handle *h)
908 * @param h handle to the identity provider 908 * @param h handle to the identity provider
909 * @param pkey private key of the identity 909 * @param pkey private key of the identity
910 * @param attr the attribute value 910 * @param attr the attribute value
911 * @param exp_interval the relative expiration interval for the attribute
911 * @param cont continuation to call when done 912 * @param cont continuation to call when done
912 * @param cont_cls closure for @a cont 913 * @param cont_cls closure for @a cont
913 * @return handle to abort the request 914 * @return handle to abort the request
@@ -916,6 +917,7 @@ struct GNUNET_IDENTITY_PROVIDER_Operation *
916GNUNET_IDENTITY_PROVIDER_attribute_store (struct GNUNET_IDENTITY_PROVIDER_Handle *h, 917GNUNET_IDENTITY_PROVIDER_attribute_store (struct GNUNET_IDENTITY_PROVIDER_Handle *h,
917 const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, 918 const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey,
918 const struct GNUNET_IDENTITY_ATTRIBUTE_Claim *attr, 919 const struct GNUNET_IDENTITY_ATTRIBUTE_Claim *attr,
920 const struct GNUNET_TIME_Relative *exp_interval,
919 GNUNET_IDENTITY_PROVIDER_ContinuationWithStatus cont, 921 GNUNET_IDENTITY_PROVIDER_ContinuationWithStatus cont,
920 void *cont_cls) 922 void *cont_cls)
921{ 923{
@@ -937,6 +939,7 @@ GNUNET_IDENTITY_PROVIDER_attribute_store (struct GNUNET_IDENTITY_PROVIDER_Handle
937 GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_ATTRIBUTE_STORE); 939 GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_ATTRIBUTE_STORE);
938 sam->identity = *pkey; 940 sam->identity = *pkey;
939 sam->id = htonl (op->r_id); 941 sam->id = htonl (op->r_id);
942 sam->exp = GNUNET_htonll (exp_interval->rel_value_us);
940 943
941 GNUNET_IDENTITY_ATTRIBUTE_serialize (attr, 944 GNUNET_IDENTITY_ATTRIBUTE_serialize (attr,
942 (char*)&sam[1]); 945 (char*)&sam[1]);