aboutsummaryrefslogtreecommitdiff
path: root/src/bank/mb_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bank/mb_common.c')
-rw-r--r--src/bank/mb_common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bank/mb_common.c b/src/bank/mb_common.c
index d113ddf9..194be386 100644
--- a/src/bank/mb_common.c
+++ b/src/bank/mb_common.c
@@ -55,6 +55,19 @@ TALER_MERCHANT_BANK_setup_auth_ (
GNUNET_free (up);
break;
}
+ case TALER_MERCHANT_BANK_AUTH_BEARER:
+ {
+ if ( (CURLE_OK !=
+ curl_easy_setopt (easy,
+ CURLOPT_HTTPAUTH,
+ CURLAUTH_BEARER)) ||
+ (CURLE_OK !=
+ curl_easy_setopt (easy,
+ CURLOPT_XOAUTH2_BEARER,
+ auth->details.bearer.token)) )
+ ret = GNUNET_SYSERR;
+ break;
+ }
}
return ret;
}