diff options
Diffstat (limited to 'src/reclaim')
-rw-r--r-- | src/reclaim/gnunet-did.c | 1 | ||||
-rw-r--r-- | src/reclaim/oidc_helper.c | 3 | ||||
-rw-r--r-- | src/reclaim/plugin_rest_openid_connect.c | 14 |
3 files changed, 8 insertions, 10 deletions
diff --git a/src/reclaim/gnunet-did.c b/src/reclaim/gnunet-did.c index b2b4e9321..25f571520 100644 --- a/src/reclaim/gnunet-did.c +++ b/src/reclaim/gnunet-did.c | |||
@@ -179,7 +179,6 @@ print_did_document ( | |||
179 | static void | 179 | static void |
180 | resolve_did () | 180 | resolve_did () |
181 | { | 181 | { |
182 | struct GNUNET_IDENTITY_PublicKey pkey; | ||
183 | 182 | ||
184 | if (did == NULL) | 183 | if (did == NULL) |
185 | { | 184 | { |
diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c index 647ebe302..90c33375f 100644 --- a/src/reclaim/oidc_helper.c +++ b/src/reclaim/oidc_helper.c | |||
@@ -367,7 +367,6 @@ generate_id_token_body (const struct GNUNET_IDENTITY_PublicKey *aud_key, | |||
367 | const struct GNUNET_TIME_Relative *expiration_time, | 367 | const struct GNUNET_TIME_Relative *expiration_time, |
368 | const char *nonce) | 368 | const char *nonce) |
369 | { | 369 | { |
370 | struct GNUNET_HashCode signature; | ||
371 | struct GNUNET_TIME_Absolute exp_time; | 370 | struct GNUNET_TIME_Absolute exp_time; |
372 | struct GNUNET_TIME_Absolute time_now; | 371 | struct GNUNET_TIME_Absolute time_now; |
373 | json_t *body; | 372 | json_t *body; |
@@ -497,8 +496,6 @@ OIDC_generate_id_token_hmac (const struct GNUNET_IDENTITY_PublicKey *aud_key, | |||
497 | const char *secret_key) | 496 | const char *secret_key) |
498 | { | 497 | { |
499 | struct GNUNET_HashCode signature; | 498 | struct GNUNET_HashCode signature; |
500 | struct GNUNET_TIME_Absolute exp_time; | ||
501 | struct GNUNET_TIME_Absolute time_now; | ||
502 | char *header; | 499 | char *header; |
503 | char *header_base64; | 500 | char *header_base64; |
504 | char *body_str; | 501 | char *body_str; |
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c index 7bb249c68..4ead538ec 100644 --- a/src/reclaim/plugin_rest_openid_connect.c +++ b/src/reclaim/plugin_rest_openid_connect.c | |||
@@ -2467,9 +2467,10 @@ consume_ticket (void *cls, | |||
2467 | &cache_key); | 2467 | &cache_key); |
2468 | if (NULL != cached_code) | 2468 | if (NULL != cached_code) |
2469 | { | 2469 | { |
2470 | GNUNET_CONTAINER_multihashmap_remove (oidc_code_cache, | 2470 | GNUNET_assert (GNUNET_YES == |
2471 | &cache_key, | 2471 | GNUNET_CONTAINER_multihashmap_remove (oidc_code_cache, |
2472 | cached_code); | 2472 | &cache_key, |
2473 | cached_code)); | ||
2473 | GNUNET_free (cached_code); | 2474 | GNUNET_free (cached_code); |
2474 | } | 2475 | } |
2475 | 2476 | ||
@@ -2562,9 +2563,10 @@ consume_fail (void *cls) | |||
2562 | /** | 2563 | /** |
2563 | * Remove the cached item | 2564 | * Remove the cached item |
2564 | */ | 2565 | */ |
2565 | GNUNET_CONTAINER_multihashmap_remove (oidc_code_cache, | 2566 | GNUNET_assert (GNUNET_YES == |
2566 | &cache_key, | 2567 | GNUNET_CONTAINER_multihashmap_remove (oidc_code_cache, |
2567 | cached_code); | 2568 | &cache_key, |
2569 | cached_code)); | ||
2568 | 2570 | ||
2569 | // decode code | 2571 | // decode code |
2570 | if (GNUNET_OK != OIDC_parse_authz_code (&handle->ticket.audience, | 2572 | if (GNUNET_OK != OIDC_parse_authz_code (&handle->ticket.audience, |