From e7dcc454c67a2fa9069b6393b7591a3d949049b4 Mon Sep 17 00:00:00 2001 From: "Kyle L. Huff" Date: Sun, 25 Aug 2013 13:18:59 -0400 Subject: curl: added basic SASL XOAUTH2 support Added the ability to specify an XOAUTH2 bearer token [RFC6750] via the --bearer option. Example usage: curl --url "imaps://imap.gmail.com:993/INBOX/;UID=1" --ssl-reqd --bearer ya29.AHES6Z...OMfsHYI --user username@example.com --- src/tool_cfgable.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tool_cfgable.c') diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c index da11f4afe..1c55c296f 100644 --- a/src/tool_cfgable.c +++ b/src/tool_cfgable.c @@ -96,6 +96,8 @@ void free_config_fields(struct Configurable *config) Curl_safefree(config->krblevel); Curl_safefree(config->trace_dump); + Curl_safefree(config->xoauth2_bearer); + config->trace_stream = NULL; /* closed elsewhere when appropriate */ Curl_safefree(config->writeout); -- cgit v1.2.3