diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2018-09-28 08:33:58 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2018-09-28 08:33:58 +0200 |
commit | 6b4ba60da04f3fd799007b3f1890bf156a60d406 (patch) | |
tree | de88c401c7cfa096fb5d9b99e200fa54385906b8 /src/rest-plugins | |
parent | ec50a665dc884f7997419d0351ae8ade9c1aeabe (diff) | |
download | gnunet-6b4ba60da04f3fd799007b3f1890bf156a60d406.tar.gz gnunet-6b4ba60da04f3fd799007b3f1890bf156a60d406.zip |
fix
Diffstat (limited to 'src/rest-plugins')
-rw-r--r-- | src/rest-plugins/plugin_rest_openid_connect.c | 5 | ||||
-rw-r--r-- | src/rest-plugins/plugin_rest_reclaim.c | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/rest-plugins/plugin_rest_openid_connect.c b/src/rest-plugins/plugin_rest_openid_connect.c index 6456458a6..2bb60efce 100644 --- a/src/rest-plugins/plugin_rest_openid_connect.c +++ b/src/rest-plugins/plugin_rest_openid_connect.c | |||
@@ -1381,7 +1381,6 @@ check_authorization (struct RequestHandle *handle, | |||
1381 | if (0 != strcmp ("Basic", credentials)) | 1381 | if (0 != strcmp ("Basic", credentials)) |
1382 | { | 1382 | { |
1383 | handle->emsg=GNUNET_strdup("invalid_client"); | 1383 | handle->emsg=GNUNET_strdup("invalid_client"); |
1384 | handle->edesc = GNUNET_strdup ("1"); | ||
1385 | handle->response_code = MHD_HTTP_UNAUTHORIZED; | 1384 | handle->response_code = MHD_HTTP_UNAUTHORIZED; |
1386 | return GNUNET_SYSERR; | 1385 | return GNUNET_SYSERR; |
1387 | } | 1386 | } |
@@ -1389,7 +1388,6 @@ check_authorization (struct RequestHandle *handle, | |||
1389 | if (NULL == credentials) | 1388 | if (NULL == credentials) |
1390 | { | 1389 | { |
1391 | handle->emsg=GNUNET_strdup("invalid_client"); | 1390 | handle->emsg=GNUNET_strdup("invalid_client"); |
1392 | handle->edesc = GNUNET_strdup ("2"); | ||
1393 | handle->response_code = MHD_HTTP_UNAUTHORIZED; | 1391 | handle->response_code = MHD_HTTP_UNAUTHORIZED; |
1394 | return GNUNET_SYSERR; | 1392 | return GNUNET_SYSERR; |
1395 | } | 1393 | } |
@@ -1408,7 +1406,6 @@ check_authorization (struct RequestHandle *handle, | |||
1408 | { | 1406 | { |
1409 | GNUNET_free_non_null(basic_authorization); | 1407 | GNUNET_free_non_null(basic_authorization); |
1410 | handle->emsg=GNUNET_strdup("invalid_client"); | 1408 | handle->emsg=GNUNET_strdup("invalid_client"); |
1411 | handle->edesc = GNUNET_strdup ("Wrong username"); | ||
1412 | handle->response_code = MHD_HTTP_UNAUTHORIZED; | 1409 | handle->response_code = MHD_HTTP_UNAUTHORIZED; |
1413 | return GNUNET_SYSERR; | 1410 | return GNUNET_SYSERR; |
1414 | } | 1411 | } |
@@ -1417,7 +1414,6 @@ check_authorization (struct RequestHandle *handle, | |||
1417 | { | 1414 | { |
1418 | GNUNET_free_non_null(basic_authorization); | 1415 | GNUNET_free_non_null(basic_authorization); |
1419 | handle->emsg=GNUNET_strdup("invalid_client"); | 1416 | handle->emsg=GNUNET_strdup("invalid_client"); |
1420 | handle->edesc = GNUNET_strdup (client_id); | ||
1421 | handle->response_code = MHD_HTTP_UNAUTHORIZED; | 1417 | handle->response_code = MHD_HTTP_UNAUTHORIZED; |
1422 | return GNUNET_SYSERR; | 1418 | return GNUNET_SYSERR; |
1423 | } | 1419 | } |
@@ -1431,7 +1427,6 @@ check_authorization (struct RequestHandle *handle, | |||
1431 | { | 1427 | { |
1432 | GNUNET_free_non_null(basic_authorization); | 1428 | GNUNET_free_non_null(basic_authorization); |
1433 | GNUNET_free(expected_pass); | 1429 | GNUNET_free(expected_pass); |
1434 | handle->edesc = GNUNET_strdup (pass); | ||
1435 | handle->emsg=GNUNET_strdup("invalid_client"); | 1430 | handle->emsg=GNUNET_strdup("invalid_client"); |
1436 | handle->response_code = MHD_HTTP_UNAUTHORIZED; | 1431 | handle->response_code = MHD_HTTP_UNAUTHORIZED; |
1437 | return GNUNET_SYSERR; | 1432 | return GNUNET_SYSERR; |
diff --git a/src/rest-plugins/plugin_rest_reclaim.c b/src/rest-plugins/plugin_rest_reclaim.c index 208c7470e..ccc2d894b 100644 --- a/src/rest-plugins/plugin_rest_reclaim.c +++ b/src/rest-plugins/plugin_rest_reclaim.c | |||
@@ -587,6 +587,7 @@ add_attribute_cont (struct GNUNET_REST_RequestHandle *con_handle, | |||
587 | return; | 587 | return; |
588 | } | 588 | } |
589 | handle->idp = GNUNET_RECLAIM_connect (cfg); | 589 | handle->idp = GNUNET_RECLAIM_connect (cfg); |
590 | exp = GNUNET_TIME_UNIT_HOURS; | ||
590 | handle->idp_op = GNUNET_RECLAIM_attribute_store (handle->idp, | 591 | handle->idp_op = GNUNET_RECLAIM_attribute_store (handle->idp, |
591 | identity_priv, | 592 | identity_priv, |
592 | attribute, | 593 | attribute, |