aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/jwt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/jwt.h')
-rw-r--r--src/reclaim/jwt.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/reclaim/jwt.h b/src/reclaim/jwt.h
index 39b4e2f3c..12ff85b01 100644
--- a/src/reclaim/jwt.h
+++ b/src/reclaim/jwt.h
@@ -1,10 +1,23 @@
1#ifndef JWT_H 1#ifndef JWT_H
2#define JWT_H 2#define JWT_H
3 3
4/**
5 * Create a JWT from attributes
6 *
7 * @param aud_key the public of the audience
8 * @param sub_key the public key of the subject
9 * @param attrs the attribute list
10 * @param expiration_time the validity of the token
11 * @param nonce the nonce, may be NULL
12 * @param secret_key the key used to sign the JWT
13 * @return a new base64-encoded JWT string.
14 */
4char* 15char*
5jwt_create_from_list (const struct GNUNET_CRYPTO_EcdsaPublicKey *aud_key, 16jwt_create_from_list (const struct GNUNET_CRYPTO_EcdsaPublicKey *aud_key,
6 const struct GNUNET_CRYPTO_EcdsaPublicKey *sub_key, 17 const struct GNUNET_CRYPTO_EcdsaPublicKey *sub_key,
7 const struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs, 18 const struct GNUNET_RECLAIM_ATTRIBUTE_ClaimList *attrs,
8 const char* secret_key); 19 const struct GNUNET_TIME_Relative *expiration_time,
20 const char *nonce,
21 const char *secret_key);
9 22
10#endif 23#endif