diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-04 17:39:36 +0100 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-04 17:39:36 +0100 |
commit | 24a0b84d503375bf66b5df932cd18631cc88cf8d (patch) | |
tree | d32c94186abe6612e52942c41dfdccf7991bfc2e /src/include/gnunet_identity_attribute_lib.h | |
parent | 02861d7594513ad336f86ff20162a861489f20b1 (diff) | |
download | gnunet-24a0b84d503375bf66b5df932cd18631cc88cf8d.tar.gz gnunet-24a0b84d503375bf66b5df932cd18631cc88cf8d.zip |
-start jwt
Diffstat (limited to 'src/include/gnunet_identity_attribute_lib.h')
-rw-r--r-- | src/include/gnunet_identity_attribute_lib.h | 14 |
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, | |||
260 | const char* | 260 | const char* |
261 | GNUNET_IDENTITY_ATTRIBUTE_number_to_typename (uint32_t type); | 261 | GNUNET_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 | */ | ||
272 | char* | ||
273 | GNUNET_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 |