aboutsummaryrefslogtreecommitdiffstats
path: root/lib/curl_sasl.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-05-30 00:28:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-30 00:28:07 +0000
commitf035f52daa6e33ea38cb371eccacd5b91958f5a0 (patch)
tree9e228338321c29a79ed20af99d3b2eda7e84f984 /lib/curl_sasl.c
parent3685a4d3467796179daa96d4c9950b4d2cc34c2e (diff)
parentcac3980d6d12690fe9c8aa2ca6bae981c8abb508 (diff)
downloadexternal_curl-f035f52daa6e33ea38cb371eccacd5b91958f5a0.tar.gz
external_curl-f035f52daa6e33ea38cb371eccacd5b91958f5a0.tar.bz2
external_curl-f035f52daa6e33ea38cb371eccacd5b91958f5a0.zip
Merge "Update to 7.59.0 - March 14 2018."
Diffstat (limited to 'lib/curl_sasl.c')
-rw-r--r--lib/curl_sasl.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c
index 550433d6..7052bd91 100644
--- a/lib/curl_sasl.c
+++ b/lib/curl_sasl.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2012 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2012 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -361,15 +361,6 @@ CURLcode Curl_sasl_start(struct SASL *sasl, struct connectdata *conn,
conn->oauth_bearer,
&resp, &len);
}
- else if(enabledmechs & SASL_MECH_LOGIN) {
- mech = SASL_MECH_STRING_LOGIN;
- state1 = SASL_LOGIN;
- state2 = SASL_LOGIN_PASSWD;
- sasl->authused = SASL_MECH_LOGIN;
-
- if(force_ir || data->set.sasl_ir)
- result = Curl_auth_create_login_message(data, conn->user, &resp, &len);
- }
else if(enabledmechs & SASL_MECH_PLAIN) {
mech = SASL_MECH_STRING_PLAIN;
state1 = SASL_PLAIN;
@@ -379,6 +370,15 @@ CURLcode Curl_sasl_start(struct SASL *sasl, struct connectdata *conn,
result = Curl_auth_create_plain_message(data, conn->user, conn->passwd,
&resp, &len);
}
+ else if(enabledmechs & SASL_MECH_LOGIN) {
+ mech = SASL_MECH_STRING_LOGIN;
+ state1 = SASL_LOGIN;
+ state2 = SASL_LOGIN_PASSWD;
+ sasl->authused = SASL_MECH_LOGIN;
+
+ if(force_ir || data->set.sasl_ir)
+ result = Curl_auth_create_login_message(data, conn->user, &resp, &len);
+ }
}
if(!result && mech) {