diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-07-22 18:02:48 +0200 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-07-22 18:02:48 +0200 |
commit | 96fdc9cacc176d6269e51dbd490de568c2254bb4 (patch) | |
tree | 6bbf0b5de90acc3badd2f96f10df4483e352e02d | |
parent | 8b67e9b5f905ff80ee73300bbb278c00e36b9bca (diff) | |
download | gnunet-96fdc9cacc176d6269e51dbd490de568c2254bb4.tar.gz gnunet-96fdc9cacc176d6269e51dbd490de568c2254bb4.zip |
cleanup
-rw-r--r-- | src/reclaim/plugin_rest_openid_connect.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c index 876e221b5..679d8f7d9 100644 --- a/src/reclaim/plugin_rest_openid_connect.c +++ b/src/reclaim/plugin_rest_openid_connect.c | |||
@@ -984,16 +984,10 @@ get_client_name_result (void *cls, | |||
984 | char *prefix; | 984 | char *prefix; |
985 | ticket_str = GNUNET_STRINGS_data_to_string_alloc (&handle->ticket, | 985 | ticket_str = GNUNET_STRINGS_data_to_string_alloc (&handle->ticket, |
986 | sizeof (struct GNUNET_RECLAIM_Ticket)); | 986 | sizeof (struct GNUNET_RECLAIM_Ticket)); |
987 | //TODO add signature to code payload over nonce and ticket _and_ use jansson here! | ||
988 | //TODO change if more attributes are needed (see max_age) | 987 | //TODO change if more attributes are needed (see max_age) |
989 | code_json_string = build_authz_code (&handle->priv_key, | 988 | code_json_string = build_authz_code (&handle->priv_key, |
990 | &handle->ticket, | 989 | &handle->ticket, |
991 | handle->oidc->nonce); | 990 | handle->oidc->nonce); |
992 | /*GNUNET_asprintf (&code_json_string, "{\"ticket\":\"%s\"%s%s%s}", | ||
993 | ticket_str, | ||
994 | (NULL != handle->oidc->nonce) ? ", \"nonce\":\"" : "", | ||
995 | (NULL != handle->oidc->nonce) ? handle->oidc->nonce : "", | ||
996 | (NULL != handle->oidc->nonce) ? "\"" : "");*/ | ||
997 | code_base64_final_string = base_64_encode(code_json_string); | 991 | code_base64_final_string = base_64_encode(code_json_string); |
998 | tmp = GNUNET_strdup (handle->oidc->redirect_uri); | 992 | tmp = GNUNET_strdup (handle->oidc->redirect_uri); |
999 | redirect_path = strtok (tmp, "/"); | 993 | redirect_path = strtok (tmp, "/"); |