aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_identity_attribute_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_identity_attribute_lib.h')
-rw-r--r--src/include/gnunet_identity_attribute_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_identity_attribute_lib.h b/src/include/gnunet_identity_attribute_lib.h
index a43b509da..4c765515b 100644
--- a/src/include/gnunet_identity_attribute_lib.h
+++ b/src/include/gnunet_identity_attribute_lib.h
@@ -260,6 +260,20 @@ GNUNET_IDENTITY_ATTRIBUTE_value_to_string (uint32_t type,
260const char* 260const char*
261GNUNET_IDENTITY_ATTRIBUTE_number_to_typename (uint32_t type); 261GNUNET_IDENTITY_ATTRIBUTE_number_to_typename (uint32_t type);
262 262
263
264/**
265 * Create a JWT from attributes
266 *
267 * @param sub_key the public of the subject
268 * @param attrs the attribute list
269 * @param priv_key the key used to sign the JWT
270 * @return a new base64-encoded JWT string.
271 */
272char*
273GNUNET_IDENTITY_ATTRIBUTE_jwt_create_from_list (const struct GNUNET_CRYPTO_EcdsaPublicKey *sub_key,
274 const struct GNUNET_IDENTITY_ATTRIBUTE_ClaimList *attrs,
275 const struct GNUNET_CRYPTO_EcdsaPrivateKey *priv_key);
276
263#if 0 /* keep Emacsens' auto-indent happy */ 277#if 0 /* keep Emacsens' auto-indent happy */
264{ 278{
265#endif 279#endif