The STARTTLS response code in SMTP, POP3 and IMAP would return
CURLE_LOGIN_DENIED rather than CURLE_USE_SSL_FAILED when SSL/TLS
was not available on the server.
Reported by: Gokhan Sengun
Bug: http://curl.haxx.se/mail/lib-2012-01/0018.html
if(imapcode != 'O') {
failf(data, "STARTTLS denied. %c", imapcode);
- result = CURLE_LOGIN_DENIED;
+ result = CURLE_USE_SSL_FAILED;
}
else {
if(data->state.used_interface == Curl_if_multi) {
if(pop3code != 'O') {
failf(data, "STARTTLS denied. %c", pop3code);
- result = CURLE_LOGIN_DENIED;
+ result = CURLE_USE_SSL_FAILED;
state(conn, POP3_STOP);
}
else {
if(smtpcode != 220) {
if(data->set.use_ssl != CURLUSESSL_TRY) {
failf(data, "STARTTLS denied. %c", smtpcode);
- result = CURLE_LOGIN_DENIED;
+ result = CURLE_USE_SSL_FAILED;
}
else
result = smtp_authenticate(conn);