]> granicus.if.org Git - curl/commitdiff
oauth2: Use OAuth 2.0 rather than XOAUTH2 in comments
authorSteve Holme <steve_holme@hotmail.com>
Fri, 4 Sep 2015 05:56:26 +0000 (06:56 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Mon, 9 Nov 2015 22:25:08 +0000 (22:25 +0000)
When referring to OAuth 2.0 we should use the official name rather the
SASL mechanism name.

lib/url.c
lib/urldata.h
src/tool_cfgable.h
src/tool_getparam.c

index 94b906d7797a0ea9a88ed970ed344dbda4b53f1c..89274f769f79c4adb849ca91d4ddd4ea0e00268e 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1700,7 +1700,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
 
   case CURLOPT_XOAUTH2_BEARER:
     /*
-     * XOAUTH2 bearer token to use in the operation
+     * OAuth 2.0 bearer token to use in the operation
      */
     result = setstropt(&data->set.str[STRING_BEARER],
                        va_arg(param, char *));
index 6ddf15e37231ae55b29851f1b54edb47a6195da4..4500623c12446c250e940a158e28b0998d19749e 100644 (file)
@@ -915,7 +915,7 @@ struct connectdata {
   char *passwd;  /* password string, allocated */
   char *options; /* options string, allocated */
 
-  char *xoauth2_bearer; /* bearer token for xoauth2, allocated */
+  char *xoauth2_bearer; /* bearer token for OAuth 2.0, allocated */
 
   char *proxyuser;    /* proxy user name string, allocated */
   char *proxypasswd;  /* proxy password string, allocated */
index 826b7fe1fe35ea4bac8c34518c7c4ab7d2dae72b..c3db4c19153f45ab3fb614f546a76125cbf9b06f 100644 (file)
@@ -208,7 +208,7 @@ struct OperationConfig {
 #ifdef CURLDEBUG
   bool test_event_based;
 #endif
-  char *xoauth2_bearer;           /* XOAUTH2 bearer token */
+  char *xoauth2_bearer;           /* OAuth 2.0 bearer token */
   bool nonpn;                     /* enable/disable TLS NPN extension */
   bool noalpn;                    /* enable/disable TLS ALPN extension */
   char *unix_socket_path;         /* path to Unix domain socket */
index 662c6eea278ee949a52e9244c2c083fae026f70f..c84cc26460fd5df39a8d20f1d1c948cecf9b4f4d 100644 (file)
@@ -495,7 +495,7 @@ ParameterError getparameter(char *flag,    /* f or -long-flag */
       case 'b': /* egd-file */
         GetStr(&config->egd_file, nextarg);
         break;
-      case 'B': /* XOAUTH2 Bearer */
+      case 'B': /* OAuth 2.0 bearer token */
         GetStr(&config->xoauth2_bearer, nextarg);
         break;
       case 'c': /* connect-timeout */