Skip to content

Commit

Permalink
sasl: remove XOAUTH2 from default enabled authentication mechanism.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Monnerat committed Jan 27, 2015
1 parent ed9a4b9 commit 7b2012f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/curl_sasl.c
Expand Up @@ -1440,8 +1440,7 @@ CURLcode Curl_sasl_start(struct SASL *sasl, struct connectdata *conn,
}
else
#endif
if((((enabledmechs & SASL_MECH_XOAUTH2) &&
sasl->prefmech != SASL_AUTH_DEFAULT)) || conn->xoauth2_bearer) {
if((enabledmechs & SASL_MECH_XOAUTH2) || conn->xoauth2_bearer) {
mech = SASL_MECH_STRING_XOAUTH2;
state1 = SASL_XOAUTH2;
sasl->authused = SASL_MECH_XOAUTH2;
Expand Down
3 changes: 2 additions & 1 deletion lib/curl_sasl.h
Expand Up @@ -52,7 +52,8 @@ struct kerberos5data;
/* Authentication mechanism values */
#define SASL_AUTH_NONE 0
#define SASL_AUTH_ANY ~0U
#define SASL_AUTH_DEFAULT (SASL_AUTH_ANY & ~SASL_MECH_EXTERNAL)
#define SASL_AUTH_DEFAULT (SASL_AUTH_ANY & \
~(SASL_MECH_EXTERNAL | SASL_MECH_XOAUTH2))

/* Authentication mechanism strings */
#define SASL_MECH_STRING_LOGIN "LOGIN"
Expand Down

0 comments on commit 7b2012f

Please sign in to comment.