Loading lib/imap.c +8 −10 Original line number Diff line number Diff line Loading @@ -557,15 +557,13 @@ static CURLcode imap_perform_login(struct connectdata *conn) /*********************************************************************** * * imap_perform_authenticate() * imap_perform_authentication() * * Sends an AUTHENTICATE command allowing the client to login with the * appropriate SASL authentication mechanism. * * Additionally, the function will perform fallback to the LOGIN command * should a common mechanism not be available between the client and server. * Initiates the authentication sequence, with the appropriate SASL * authentication mechanism, falling back to clear text should a common * mechanism not be available between the client and server. */ static CURLcode imap_perform_authenticate(struct connectdata *conn) static CURLcode imap_perform_authentication(struct connectdata *conn) { CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; Loading Loading @@ -949,14 +947,14 @@ static CURLcode imap_state_capability_resp(struct connectdata *conn, result = imap_perform_starttls(conn); else if(data->set.use_ssl == CURLUSESSL_TRY) /* Fallback and carry on with authentication */ result = imap_perform_authenticate(conn); result = imap_perform_authentication(conn); else { failf(data, "STARTTLS not supported."); result = CURLE_USE_SSL_FAILED; } } else result = imap_perform_authenticate(conn); result = imap_perform_authentication(conn); } else result = imap_perform_login(conn); Loading @@ -980,7 +978,7 @@ static CURLcode imap_state_starttls_resp(struct connectdata *conn, result = CURLE_USE_SSL_FAILED; } else result = imap_perform_authenticate(conn); result = imap_perform_authentication(conn); } else result = imap_perform_upgrade_tls(conn); Loading lib/pop3.c +8 −10 Original line number Diff line number Diff line Loading @@ -574,15 +574,13 @@ static CURLcode pop3_perform_apop(struct connectdata *conn) /*********************************************************************** * * pop3_perform_authenticate() * pop3_perform_authentication() * * Sends an AUTH command allowing the client to login with the appropriate * SASL authentication mechanism. * * Additionally, the function will perform fallback to APOP and USER commands * should a common mechanism not be available between the client and server. * Initiates the authentication sequence, with the appropriate SASL * authentication mechanism, falling back to APOP and clear text should a * common mechanism not be available between the client and server. */ static CURLcode pop3_perform_authenticate(struct connectdata *conn) static CURLcode pop3_perform_authentication(struct connectdata *conn) { CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; Loading Loading @@ -809,14 +807,14 @@ static CURLcode pop3_state_capa_resp(struct connectdata *conn, int pop3code, result = pop3_perform_starttls(conn); else if(data->set.use_ssl == CURLUSESSL_TRY) /* Fallback and carry on with authentication */ result = pop3_perform_authenticate(conn); result = pop3_perform_authentication(conn); else { failf(data, "STLS not supported."); result = CURLE_USE_SSL_FAILED; } } else result = pop3_perform_authenticate(conn); result = pop3_perform_authentication(conn); return result; } Loading @@ -837,7 +835,7 @@ static CURLcode pop3_state_starttls_resp(struct connectdata *conn, result = CURLE_USE_SSL_FAILED; } else result = pop3_perform_authenticate(conn); result = pop3_perform_authentication(conn); } else result = pop3_perform_upgrade_tls(conn); Loading lib/smtp.c +7 −7 Original line number Diff line number Diff line Loading @@ -430,12 +430,12 @@ static CURLcode smtp_perform_upgrade_tls(struct connectdata *conn) /*********************************************************************** * * smtp_perform_authenticate() * smtp_perform_authentication() * * Sends an AUTH command allowing the client to login with the appropriate * SASL authentication mechanism. * Initiates the authentication sequence, with the appropriate SASL * authentication mechanism. */ static CURLcode smtp_perform_authenticate(struct connectdata *conn) static CURLcode smtp_perform_authentication(struct connectdata *conn) { CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; Loading Loading @@ -738,7 +738,7 @@ static CURLcode smtp_state_starttls_resp(struct connectdata *conn, result = CURLE_USE_SSL_FAILED; } else result = smtp_perform_authenticate(conn); result = smtp_perform_authentication(conn); } else result = smtp_perform_upgrade_tls(conn); Loading Loading @@ -835,14 +835,14 @@ static CURLcode smtp_state_ehlo_resp(struct connectdata *conn, int smtpcode, result = smtp_perform_starttls(conn); else if(data->set.use_ssl == CURLUSESSL_TRY) /* Fallback and carry on with authentication */ result = smtp_perform_authenticate(conn); result = smtp_perform_authentication(conn); else { failf(data, "STARTTLS not supported."); result = CURLE_USE_SSL_FAILED; } } else result = smtp_perform_authenticate(conn); result = smtp_perform_authentication(conn); } } Loading Loading
lib/imap.c +8 −10 Original line number Diff line number Diff line Loading @@ -557,15 +557,13 @@ static CURLcode imap_perform_login(struct connectdata *conn) /*********************************************************************** * * imap_perform_authenticate() * imap_perform_authentication() * * Sends an AUTHENTICATE command allowing the client to login with the * appropriate SASL authentication mechanism. * * Additionally, the function will perform fallback to the LOGIN command * should a common mechanism not be available between the client and server. * Initiates the authentication sequence, with the appropriate SASL * authentication mechanism, falling back to clear text should a common * mechanism not be available between the client and server. */ static CURLcode imap_perform_authenticate(struct connectdata *conn) static CURLcode imap_perform_authentication(struct connectdata *conn) { CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; Loading Loading @@ -949,14 +947,14 @@ static CURLcode imap_state_capability_resp(struct connectdata *conn, result = imap_perform_starttls(conn); else if(data->set.use_ssl == CURLUSESSL_TRY) /* Fallback and carry on with authentication */ result = imap_perform_authenticate(conn); result = imap_perform_authentication(conn); else { failf(data, "STARTTLS not supported."); result = CURLE_USE_SSL_FAILED; } } else result = imap_perform_authenticate(conn); result = imap_perform_authentication(conn); } else result = imap_perform_login(conn); Loading @@ -980,7 +978,7 @@ static CURLcode imap_state_starttls_resp(struct connectdata *conn, result = CURLE_USE_SSL_FAILED; } else result = imap_perform_authenticate(conn); result = imap_perform_authentication(conn); } else result = imap_perform_upgrade_tls(conn); Loading
lib/pop3.c +8 −10 Original line number Diff line number Diff line Loading @@ -574,15 +574,13 @@ static CURLcode pop3_perform_apop(struct connectdata *conn) /*********************************************************************** * * pop3_perform_authenticate() * pop3_perform_authentication() * * Sends an AUTH command allowing the client to login with the appropriate * SASL authentication mechanism. * * Additionally, the function will perform fallback to APOP and USER commands * should a common mechanism not be available between the client and server. * Initiates the authentication sequence, with the appropriate SASL * authentication mechanism, falling back to APOP and clear text should a * common mechanism not be available between the client and server. */ static CURLcode pop3_perform_authenticate(struct connectdata *conn) static CURLcode pop3_perform_authentication(struct connectdata *conn) { CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; Loading Loading @@ -809,14 +807,14 @@ static CURLcode pop3_state_capa_resp(struct connectdata *conn, int pop3code, result = pop3_perform_starttls(conn); else if(data->set.use_ssl == CURLUSESSL_TRY) /* Fallback and carry on with authentication */ result = pop3_perform_authenticate(conn); result = pop3_perform_authentication(conn); else { failf(data, "STLS not supported."); result = CURLE_USE_SSL_FAILED; } } else result = pop3_perform_authenticate(conn); result = pop3_perform_authentication(conn); return result; } Loading @@ -837,7 +835,7 @@ static CURLcode pop3_state_starttls_resp(struct connectdata *conn, result = CURLE_USE_SSL_FAILED; } else result = pop3_perform_authenticate(conn); result = pop3_perform_authentication(conn); } else result = pop3_perform_upgrade_tls(conn); Loading
lib/smtp.c +7 −7 Original line number Diff line number Diff line Loading @@ -430,12 +430,12 @@ static CURLcode smtp_perform_upgrade_tls(struct connectdata *conn) /*********************************************************************** * * smtp_perform_authenticate() * smtp_perform_authentication() * * Sends an AUTH command allowing the client to login with the appropriate * SASL authentication mechanism. * Initiates the authentication sequence, with the appropriate SASL * authentication mechanism. */ static CURLcode smtp_perform_authenticate(struct connectdata *conn) static CURLcode smtp_perform_authentication(struct connectdata *conn) { CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; Loading Loading @@ -738,7 +738,7 @@ static CURLcode smtp_state_starttls_resp(struct connectdata *conn, result = CURLE_USE_SSL_FAILED; } else result = smtp_perform_authenticate(conn); result = smtp_perform_authentication(conn); } else result = smtp_perform_upgrade_tls(conn); Loading Loading @@ -835,14 +835,14 @@ static CURLcode smtp_state_ehlo_resp(struct connectdata *conn, int smtpcode, result = smtp_perform_starttls(conn); else if(data->set.use_ssl == CURLUSESSL_TRY) /* Fallback and carry on with authentication */ result = smtp_perform_authenticate(conn); result = smtp_perform_authentication(conn); else { failf(data, "STARTTLS not supported."); result = CURLE_USE_SSL_FAILED; } } else result = smtp_perform_authenticate(conn); result = smtp_perform_authentication(conn); } } Loading