mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 22:15:13 -05:00
pop3: Re-factored the final POP3_AUTH constant
Changed the final POP3_AUTH constant to POP3_AUTH_FINAL for consistency with the response function.
This commit is contained in:
parent
13006f3de9
commit
afad1ce753
12
lib/pop3.c
12
lib/pop3.c
@ -676,7 +676,7 @@ static CURLcode pop3_state_auth_plain_resp(struct connectdata *conn,
|
|||||||
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", plainauth);
|
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", plainauth);
|
||||||
|
|
||||||
if(!result)
|
if(!result)
|
||||||
state(conn, POP3_AUTH);
|
state(conn, POP3_AUTH_FINAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Curl_safefree(plainauth);
|
Curl_safefree(plainauth);
|
||||||
@ -750,7 +750,7 @@ static CURLcode pop3_state_auth_login_password_resp(struct connectdata *conn,
|
|||||||
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", authpasswd);
|
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", authpasswd);
|
||||||
|
|
||||||
if(!result)
|
if(!result)
|
||||||
state(conn, POP3_AUTH);
|
state(conn, POP3_AUTH_FINAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Curl_safefree(authpasswd);
|
Curl_safefree(authpasswd);
|
||||||
@ -805,7 +805,7 @@ static CURLcode pop3_state_auth_cram_resp(struct connectdata *conn,
|
|||||||
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", rplyb64);
|
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", rplyb64);
|
||||||
|
|
||||||
if(!result)
|
if(!result)
|
||||||
state(conn, POP3_AUTH);
|
state(conn, POP3_AUTH_FINAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Curl_safefree(rplyb64);
|
Curl_safefree(rplyb64);
|
||||||
@ -875,7 +875,7 @@ static CURLcode pop3_state_auth_digest_resp_resp(struct connectdata *conn,
|
|||||||
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "");
|
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "");
|
||||||
|
|
||||||
if(!result)
|
if(!result)
|
||||||
state(conn, POP3_AUTH);
|
state(conn, POP3_AUTH_FINAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -951,7 +951,7 @@ static CURLcode pop3_state_auth_ntlm_type2msg_resp(struct connectdata *conn,
|
|||||||
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", type3msg);
|
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", type3msg);
|
||||||
|
|
||||||
if(!result)
|
if(!result)
|
||||||
state(conn, POP3_AUTH);
|
state(conn, POP3_AUTH_FINAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
Curl_safefree(type3msg);
|
Curl_safefree(type3msg);
|
||||||
@ -1215,7 +1215,7 @@ static CURLcode pop3_statemach_act(struct connectdata *conn)
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case POP3_AUTH:
|
case POP3_AUTH_FINAL:
|
||||||
result = pop3_state_auth_final_resp(conn, pop3code, pop3c->state);
|
result = pop3_state_auth_final_resp(conn, pop3code, pop3c->state);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ typedef enum {
|
|||||||
POP3_AUTH_DIGESTMD5_RESP,
|
POP3_AUTH_DIGESTMD5_RESP,
|
||||||
POP3_AUTH_NTLM,
|
POP3_AUTH_NTLM,
|
||||||
POP3_AUTH_NTLM_TYPE2MSG,
|
POP3_AUTH_NTLM_TYPE2MSG,
|
||||||
POP3_AUTH,
|
POP3_AUTH_FINAL,
|
||||||
POP3_APOP,
|
POP3_APOP,
|
||||||
POP3_USER,
|
POP3_USER,
|
||||||
POP3_PASS,
|
POP3_PASS,
|
||||||
|
Loading…
Reference in New Issue
Block a user