static const char * const names[]={
"STOP",
"SERVERGREET",
+ "STARTTLS",
"AUTH",
"USER",
"PASS",
- "STARTTLS",
"COMMAND",
"QUIT",
/* LAST */
result = pop3_state_servergreet_resp(conn, pop3code, pop3c->state);
break;
+ case POP3_STARTTLS:
+ result = pop3_state_starttls_resp(conn, pop3code, pop3c->state);
+ break;
+
case POP3_AUTH:
result = pop3_state_auth_resp(conn);
break;
result = pop3_state_pass_resp(conn, pop3code, pop3c->state);
break;
- case POP3_STARTTLS:
- result = pop3_state_starttls_resp(conn, pop3code, pop3c->state);
- break;
-
case POP3_COMMAND:
result = pop3_state_command_resp(conn, pop3code, pop3c->state);
break;
* pop3_parse_url_path()
*
* Parse the URL path into separate path components.
- *
*/
static CURLcode pop3_parse_url_path(struct connectdata *conn)
{
Curl_pgrsSetUploadSize(data, 0);
Curl_pgrsSetDownloadSize(data, 0);
- result = pop3_perform(conn,
- &connected, /* have we connected after PASV/PORT */
- dophase_done); /* all commands in the DO-phase done? */
+ result = pop3_perform(conn, &connected, dophase_done);
if(CURLE_OK == result) {
return CURLE_OK;
}
-/*
- * This function scans the body after the end-of-body and writes everything
- * until the end is found.
- */
-CURLcode Curl_pop3_write(struct connectdata *conn,
- char *str,
- size_t nread)
+/* This function scans the body after the end-of-body and writes everything
+ until the end is found */
+CURLcode Curl_pop3_write(struct connectdata *conn, char *str, size_t nread)
{
/* This code could be made into a special function in the handler struct */
CURLcode result = CURLE_OK;
/* We have a full match so the transfer is done, however we must transfer
the CRLF at the start of the EOB as this is considered to be part of the
message as per RFC-1939, sect. 3 */
- result = Curl_client_write(conn, CLIENTWRITE_BODY, (char*)POP3_EOB, 2);
+ result = Curl_client_write(conn, CLIENTWRITE_BODY, (char *)POP3_EOB, 2);
k->keepon &= ~KEEP_RECV;
pop3c->eob = 0;