Merge branch 'master' of taler.net:/var/git/mint
This commit is contained in:
commit
c023cdc96a
@ -343,6 +343,8 @@ handle_deposit_finished (void *cls,
|
|||||||
}
|
}
|
||||||
switch (response_code)
|
switch (response_code)
|
||||||
{
|
{
|
||||||
|
case 0:
|
||||||
|
break;
|
||||||
case MHD_HTTP_OK:
|
case MHD_HTTP_OK:
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
verify_deposit_signature_ok (dh,
|
verify_deposit_signature_ok (dh,
|
||||||
|
@ -574,8 +574,32 @@ keys_completed_cb (void *cls,
|
|||||||
{
|
{
|
||||||
struct KeysRequest *kr = cls;
|
struct KeysRequest *kr = cls;
|
||||||
struct TALER_MINT_Handle *mint = kr->mint;
|
struct TALER_MINT_Handle *mint = kr->mint;
|
||||||
|
long response_code;
|
||||||
|
|
||||||
/* FIXME: might want to check response code? */
|
/* FIXME: might want to check response code? */
|
||||||
|
if (CURLE_OK !=
|
||||||
|
curl_easy_getinfo (eh,
|
||||||
|
CURLINFO_RESPONSE_CODE,
|
||||||
|
&response_code))
|
||||||
|
{
|
||||||
|
/* unexpected error... */
|
||||||
|
GNUNET_break (0);
|
||||||
|
response_code = 0;
|
||||||
|
}
|
||||||
|
switch (response_code) {
|
||||||
|
case 0:
|
||||||
|
kr->errno = 1;
|
||||||
|
break;
|
||||||
|
case MHD_HTTP_OK:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
|
||||||
|
"Mint returned status code %u for /keys\n",
|
||||||
|
response_code);
|
||||||
|
kr->errno = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if ( (0 != kr->eno) ||
|
if ( (0 != kr->eno) ||
|
||||||
(GNUNET_OK !=
|
(GNUNET_OK !=
|
||||||
parse_response_keys_get (kr)) )
|
parse_response_keys_get (kr)) )
|
||||||
|
@ -324,6 +324,8 @@ handle_withdraw_status_finished (void *cls,
|
|||||||
}
|
}
|
||||||
switch (response_code)
|
switch (response_code)
|
||||||
{
|
{
|
||||||
|
case 0:
|
||||||
|
break;
|
||||||
case MHD_HTTP_OK:
|
case MHD_HTTP_OK:
|
||||||
{
|
{
|
||||||
json_t *history;
|
json_t *history;
|
||||||
@ -818,6 +820,8 @@ handle_withdraw_sign_finished (void *cls,
|
|||||||
}
|
}
|
||||||
switch (response_code)
|
switch (response_code)
|
||||||
{
|
{
|
||||||
|
case 0:
|
||||||
|
break;
|
||||||
case MHD_HTTP_OK:
|
case MHD_HTTP_OK:
|
||||||
if (GNUNET_OK !=
|
if (GNUNET_OK !=
|
||||||
withdraw_sign_ok (wsh,
|
withdraw_sign_ok (wsh,
|
||||||
|
Loading…
Reference in New Issue
Block a user