Lines Matching refs:conn
97 struct connectdata *conn, bool dead);
100 struct connectdata *conn, curl_socket_t *socks);
103 struct connectdata *conn);
104 static CURLcode pop3_parse_url_options(struct connectdata *conn);
194 static void pop3_to_pop3s(struct connectdata *conn) in pop3_to_pop3s() argument
197 conn->handler = &Curl_handler_pop3s; in pop3_to_pop3s()
200 conn->bits.tls_upgraded = TRUE; in pop3_to_pop3s()
262 static bool pop3_endofresp(struct Curl_easy *data, struct connectdata *conn, in pop3_endofresp() argument
265 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_endofresp()
313 char *message = Curl_dyn_ptr(&data->conn->proto.pop3c.pp.recvbuf); in pop3_get_message()
314 size_t len = data->conn->proto.pop3c.pp.nfinal; in pop3_get_message()
347 struct pop3_conn *pop3c = &data->conn->proto.pop3c; in pop3_state()
381 struct connectdata *conn) in pop3_perform_capa() argument
384 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_perform_capa()
406 struct connectdata *conn) in pop3_perform_starttls() argument
409 CURLcode result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s", "STLS"); in pop3_perform_starttls()
424 struct connectdata *conn) in pop3_perform_upgrade_tls() argument
427 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_perform_upgrade_tls()
431 if(!Curl_conn_is_ssl(conn, FIRSTSOCKET)) { in pop3_perform_upgrade_tls()
432 result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET); in pop3_perform_upgrade_tls()
445 pop3_to_pop3s(conn); in pop3_perform_upgrade_tls()
446 result = pop3_perform_capa(data, conn); in pop3_perform_upgrade_tls()
460 struct connectdata *conn) in pop3_perform_user() argument
473 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "USER %s", in pop3_perform_user()
474 conn->user ? conn->user : ""); in pop3_perform_user()
489 struct connectdata *conn) in pop3_perform_apop() argument
492 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_perform_apop()
514 Curl_MD5_update(ctxt, (const unsigned char *) conn->passwd, in pop3_perform_apop()
515 curlx_uztoui(strlen(conn->passwd))); in pop3_perform_apop()
524 result = Curl_pp_sendf(data, &pop3c->pp, "APOP %s %s", conn->user, secret); in pop3_perform_apop()
545 struct pop3_conn *pop3c = &data->conn->proto.pop3c; in pop3_perform_auth()
570 struct pop3_conn *pop3c = &data->conn->proto.pop3c; in pop3_continue_auth()
586 struct pop3_conn *pop3c = &data->conn->proto.pop3c; in pop3_cancel_auth()
602 struct connectdata *conn) in pop3_perform_authentication() argument
605 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_perform_authentication()
628 result = pop3_perform_apop(data, conn); in pop3_perform_authentication()
633 result = pop3_perform_user(data, conn); in pop3_perform_authentication()
653 struct connectdata *conn = data->conn; in pop3_perform_command() local
673 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s %s", in pop3_perform_command()
676 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s", command); in pop3_perform_command()
693 struct connectdata *conn) in pop3_perform_quit() argument
696 CURLcode result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s", "QUIT"); in pop3_perform_quit()
710 struct connectdata *conn = data->conn; in pop3_state_servergreet_resp() local
711 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_state_servergreet_resp()
712 const char *line = Curl_dyn_ptr(&data->conn->proto.pop3c.pp.recvbuf); in pop3_state_servergreet_resp()
713 size_t len = data->conn->proto.pop3c.pp.nfinal; in pop3_state_servergreet_resp()
749 result = pop3_perform_capa(data, conn); in pop3_state_servergreet_resp()
760 struct connectdata *conn = data->conn; in pop3_state_capa_resp() local
761 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_state_capa_resp()
762 const char *line = Curl_dyn_ptr(&data->conn->proto.pop3c.pp.recvbuf); in pop3_state_capa_resp()
763 size_t len = data->conn->proto.pop3c.pp.nfinal; in pop3_state_capa_resp()
823 if(!data->set.use_ssl || Curl_conn_is_ssl(conn, FIRSTSOCKET)) in pop3_state_capa_resp()
824 result = pop3_perform_authentication(data, conn); in pop3_state_capa_resp()
827 result = pop3_perform_starttls(data, conn); in pop3_state_capa_resp()
830 result = pop3_perform_authentication(data, conn); in pop3_state_capa_resp()
842 struct connectdata *conn, in pop3_state_starttls_resp() argument
850 if(data->conn->proto.pop3c.pp.overflow) in pop3_state_starttls_resp()
859 result = pop3_perform_authentication(data, conn); in pop3_state_starttls_resp()
862 result = pop3_perform_upgrade_tls(data, conn); in pop3_state_starttls_resp()
873 struct connectdata *conn = data->conn; in pop3_state_auth_resp() local
874 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_state_auth_resp()
889 result = pop3_perform_apop(data, conn); in pop3_state_auth_resp()
894 result = pop3_perform_user(data, conn); in pop3_state_auth_resp()
932 struct connectdata *conn = data->conn; in pop3_state_user_resp() local
941 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "PASS %s", in pop3_state_user_resp()
942 conn->passwd ? conn->passwd : ""); in pop3_state_user_resp()
973 struct connectdata *conn = data->conn; in pop3_state_command_resp() local
975 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_state_command_resp()
1030 struct connectdata *conn) in pop3_statemachine() argument
1034 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_statemachine()
1041 return pop3_perform_upgrade_tls(data, conn); in pop3_statemachine()
1067 result = pop3_state_starttls_resp(data, conn, pop3code, pop3c->state); in pop3_statemachine()
1110 struct connectdata *conn = data->conn; in pop3_multi_statemach() local
1111 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_multi_statemach()
1113 if((conn->handler->flags & PROTOPT_SSL) && !pop3c->ssldone) { in pop3_multi_statemach()
1128 struct connectdata *conn, in pop3_block_statemach() argument
1132 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_block_statemach()
1156 struct connectdata *conn, curl_socket_t *socks) in pop3_getsock() argument
1158 return Curl_pp_getsock(data, &conn->proto.pop3c.pp, socks); in pop3_getsock()
1174 struct connectdata *conn = data->conn; in pop3_connect() local
1175 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_connect()
1181 connkeep(conn, "POP3 default"); in pop3_connect()
1193 result = pop3_parse_url_options(conn); in pop3_connect()
1226 connclose(data->conn, "POP3 done with bad status"); in pop3_done()
1270 *connected = Curl_conn_is_connected(data->conn, FIRSTSOCKET); in pop3_perform()
1315 struct connectdata *conn, bool dead_connection) in pop3_disconnect() argument
1317 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_disconnect()
1324 if(!dead_connection && conn->bits.protoconnstart) { in pop3_disconnect()
1325 if(!pop3_perform_quit(data, conn)) in pop3_disconnect()
1326 (void)pop3_block_statemach(data, conn, TRUE); /* ignore errors on QUIT */ in pop3_disconnect()
1333 Curl_sasl_cleanup(conn, pop3c->sasl.authused); in pop3_disconnect()
1401 struct connectdata *conn) in pop3_setup_connection() argument
1409 conn->bits.tls_upgraded = FALSE; in pop3_setup_connection()
1420 static CURLcode pop3_parse_url_options(struct connectdata *conn) in pop3_parse_url_options() argument
1423 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_parse_url_options()
1424 const char *ptr = conn->options; in pop3_parse_url_options()
1519 struct connectdata *conn = data->conn; in pop3_write() local
1520 struct pop3_conn *pop3c = &conn->proto.pop3c; in pop3_write()