From ee4adf9768a740c3d79b854453eb8bc0f5c14d30 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Sat, 21 Jul 2018 08:00:49 +0200 Subject: add more general HMAC function for JWTs --- src/reclaim/plugin_rest_openid_connect.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/reclaim/plugin_rest_openid_connect.c') diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c index 6aa2cd907..5a34e5b72 100644 --- a/src/reclaim/plugin_rest_openid_connect.c +++ b/src/reclaim/plugin_rest_openid_connect.c @@ -1647,14 +1647,12 @@ token_endpoint (struct GNUNET_REST_RequestHandle *con_handle, GNUNET_free(ticket); return; } - struct GNUNET_CRYPTO_AuthKey jwt_sign_key; struct GNUNET_CRYPTO_EcdsaPublicKey pk; GNUNET_IDENTITY_ego_get_public_key (ego_entry->ego, &pk); - GNUNET_CRYPTO_hash (jwt_secret, strlen (jwt_secret), (struct GNUNET_HashCode*)jwt_sign_key.key); char *id_token = jwt_create_from_list(&ticket->audience, &pk, cl, - &jwt_sign_key); + jwt_secret); //Create random access_token char* access_token_number; -- cgit v1.2.3