aboutsummaryrefslogtreecommitdiff
path: root/src/identity-provider
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2016-06-20 09:49:01 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2016-06-20 09:49:01 +0000
commit5767dd4cde4110a302c2c48d8a1ba2b8afe7b0f4 (patch)
tree4277b3df5133871a79e602805b582f78cd13eae5 /src/identity-provider
parent1eb83a1ba0adb2d841ee5de2b12005aab5801995 (diff)
downloadgnunet-5767dd4cde4110a302c2c48d8a1ba2b8afe7b0f4.tar.gz
gnunet-5767dd4cde4110a302c2c48d8a1ba2b8afe7b0f4.zip
- fix warnings
Diffstat (limited to 'src/identity-provider')
-rw-r--r--src/identity-provider/plugin_rest_identity_provider.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/identity-provider/plugin_rest_identity_provider.c b/src/identity-provider/plugin_rest_identity_provider.c
index 89c83639a..207a15cc5 100644
--- a/src/identity-provider/plugin_rest_identity_provider.c
+++ b/src/identity-provider/plugin_rest_identity_provider.c
@@ -342,7 +342,7 @@ do_error (void *cls)
342 GNUNET_asprintf (&json_error, 342 GNUNET_asprintf (&json_error,
343 "{Error while processing request: %s}", 343 "{Error while processing request: %s}",
344 handle->emsg); 344 handle->emsg);
345 resp = GNUNET_REST_create_json_response (json_error); 345 resp = GNUNET_REST_create_response (json_error);
346 handle->proc (handle->proc_cls, resp, handle->response_code); 346 handle->proc (handle->proc_cls, resp, handle->response_code);
347 cleanup_handle (handle); 347 cleanup_handle (handle);
348 GNUNET_free (json_error); 348 GNUNET_free (json_error);
@@ -425,7 +425,7 @@ token_creat_cont (void *cls,
425 425
426 GNUNET_JSONAPI_document_serialize (handle->resp_object, &result_str); 426 GNUNET_JSONAPI_document_serialize (handle->resp_object, &result_str);
427 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str); 427 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str);
428 resp = GNUNET_REST_create_json_response (result_str); 428 resp = GNUNET_REST_create_response (result_str);
429 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); 429 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK);
430 GNUNET_free (result_str); 430 GNUNET_free (result_str);
431 GNUNET_SCHEDULER_add_now (&do_cleanup_handle_delayed, handle); 431 GNUNET_SCHEDULER_add_now (&do_cleanup_handle_delayed, handle);
@@ -467,7 +467,7 @@ issue_token_cont (struct GNUNET_REST_RequestHandle *con,
467 GNUNET_REST_API_NS_IDENTITY_TOKEN_ISSUE)) 467 GNUNET_REST_API_NS_IDENTITY_TOKEN_ISSUE))
468 { 468 {
469 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "URL invalid: %s\n", handle->url); 469 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "URL invalid: %s\n", handle->url);
470 resp = GNUNET_REST_create_json_response (NULL); 470 resp = GNUNET_REST_create_response (NULL);
471 handle->proc (handle->proc_cls, resp, MHD_HTTP_BAD_REQUEST); 471 handle->proc (handle->proc_cls, resp, MHD_HTTP_BAD_REQUEST);
472 cleanup_handle (handle); 472 cleanup_handle (handle);
473 return; 473 return;
@@ -641,7 +641,7 @@ return_token_list (void *cls)
641 641
642 GNUNET_JSONAPI_document_serialize (handle->resp_object, &result_str); 642 GNUNET_JSONAPI_document_serialize (handle->resp_object, &result_str);
643 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str); 643 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str);
644 resp = GNUNET_REST_create_json_response (result_str); 644 resp = GNUNET_REST_create_response (result_str);
645 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); 645 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK);
646 GNUNET_free (result_str); 646 GNUNET_free (result_str);
647 cleanup_handle (handle); 647 cleanup_handle (handle);
@@ -848,7 +848,7 @@ exchange_cont (void *cls,
848 GNUNET_free (token_str); 848 GNUNET_free (token_str);
849 849
850 result = json_dumps (root, JSON_INDENT(1)); 850 result = json_dumps (root, JSON_INDENT(1));
851 resp = GNUNET_REST_create_json_response (result); 851 resp = GNUNET_REST_create_response (result);
852 GNUNET_free (result); 852 GNUNET_free (result);
853 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); 853 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK);
854 cleanup_handle (handle); 854 cleanup_handle (handle);
@@ -954,7 +954,7 @@ options_cont (struct GNUNET_REST_RequestHandle *con_handle,
954 struct RequestHandle *handle = cls; 954 struct RequestHandle *handle = cls;
955 955
956 //For now, independent of path return all options 956 //For now, independent of path return all options
957 resp = GNUNET_REST_create_json_response (NULL); 957 resp = GNUNET_REST_create_response (NULL);
958 MHD_add_response_header (resp, 958 MHD_add_response_header (resp,
959 "Access-Control-Allow-Methods", 959 "Access-Control-Allow-Methods",
960 allow_methods); 960 allow_methods);