imap: Fixed exclude of clear text when using auth=* in commit 75cd7fd667
It is not 100% clear whether * should include clear text LOGIN or not from RFC-5092, however, including it is then consistent with current POP3 behaviour where clear text, APOP or SASL may be chosen.
This commit is contained in:
@@ -2334,7 +2334,7 @@ static CURLcode imap_parse_url_options(struct connectdata *conn)
|
|||||||
const char *value = ptr + 1;
|
const char *value = ptr + 1;
|
||||||
|
|
||||||
if(strequal(value, "*")) {
|
if(strequal(value, "*")) {
|
||||||
imapc->preftype = IMAP_TYPE_SASL;
|
imapc->preftype = IMAP_TYPE_ANY;
|
||||||
imapc->prefmech = SASL_AUTH_ANY;
|
imapc->prefmech = SASL_AUTH_ANY;
|
||||||
}
|
}
|
||||||
else if(strequal(value, SASL_MECH_STRING_LOGIN)) {
|
else if(strequal(value, SASL_MECH_STRING_LOGIN)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user