summaryrefslogtreecommitdiff
path: root/src/tool_cfgable.h
diff options
context:
space:
mode:
authorKyle L. Huff <kyle.huff@curetheitch.com>2013-08-25 13:18:59 -0400
committerSteve Holme <steve_holme@hotmail.com>2013-08-26 20:43:02 +0100
commite7dcc454c67a2fa9069b6393b7591a3d949049b4 (patch)
treef629a458a38efa7cb5b22fad0fd492f95009745a /src/tool_cfgable.h
parent84789e12fb1d6d22532bd2ce7bfae3a160648a60 (diff)
downloadcurl-e7dcc454c67a2fa9069b6393b7591a3d949049b4.tar.gz
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
Diffstat (limited to 'src/tool_cfgable.h')
-rw-r--r--src/tool_cfgable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_cfgable.h b/src/tool_cfgable.h
index 144552e84..a12bdcd32 100644
--- a/src/tool_cfgable.h
+++ b/src/tool_cfgable.h
@@ -208,6 +208,7 @@ struct Configurable {
#ifdef CURLDEBUG
bool test_event_based;
#endif
+ char *xoauth2_bearer; /* XOAUTH2 bearer token */
}; /* struct Configurable */
void free_config_fields(struct Configurable *config);