Lines Matching refs:conn

96                                 struct connectdata *conn, bool dead);
99 struct connectdata *conn, curl_socket_t *socks);
102 struct connectdata *conn);
103 static CURLcode smtp_parse_url_options(struct connectdata *conn);
191 static void smtp_to_smtps(struct connectdata *conn) in smtp_to_smtps() argument
194 conn->handler = &Curl_handler_smtps; in smtp_to_smtps()
197 conn->bits.tls_upgraded = TRUE; in smtp_to_smtps()
211 static bool smtp_endofresp(struct Curl_easy *data, struct connectdata *conn, in smtp_endofresp() argument
214 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_endofresp()
256 char *message = Curl_dyn_ptr(&data->conn->proto.smtpc.pp.recvbuf); in smtp_get_message()
257 size_t len = data->conn->proto.smtpc.pp.nfinal; in smtp_get_message()
290 struct smtp_conn *smtpc = &data->conn->proto.smtpc; in smtp_state()
328 struct connectdata *conn = data->conn; in smtp_perform_ehlo() local
329 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_perform_ehlo()
353 struct connectdata *conn) in smtp_perform_helo() argument
356 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_perform_helo()
377 struct connectdata *conn) in smtp_perform_starttls() argument
380 CURLcode result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, in smtp_perform_starttls()
398 struct connectdata *conn = data->conn; in smtp_perform_upgrade_tls() local
399 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_perform_upgrade_tls()
403 if(!Curl_conn_is_ssl(conn, FIRSTSOCKET)) { in smtp_perform_upgrade_tls()
404 result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET); in smtp_perform_upgrade_tls()
416 smtp_to_smtps(conn); in smtp_perform_upgrade_tls()
436 struct smtp_conn *smtpc = &data->conn->proto.smtpc; in smtp_perform_auth()
461 struct smtp_conn *smtpc = &data->conn->proto.smtpc; in smtp_continue_auth()
477 struct smtp_conn *smtpc = &data->conn->proto.smtpc; in smtp_cancel_auth()
494 struct connectdata *conn = data->conn; in smtp_perform_authentication() local
495 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_perform_authentication()
531 struct connectdata *conn = data->conn; in smtp_perform_command() local
554 utf8 = (conn->proto.smtpc.utf8_supported) && in smtp_perform_command()
560 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, "VRFY %s%s%s%s", in smtp_perform_command()
572 utf8 = (conn->proto.smtpc.utf8_supported) && in smtp_perform_command()
576 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, in smtp_perform_command()
584 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, "%s", in smtp_perform_command()
606 struct connectdata *conn = data->conn; in smtp_perform_mail() local
628 utf8 = (conn->proto.smtpc.utf8_supported) && in smtp_perform_mail()
654 if(data->set.str[STRING_MAIL_AUTH] && conn->proto.smtpc.sasl.authused) { in smtp_perform_mail()
668 if((!utf8) && (conn->proto.smtpc.utf8_supported) && in smtp_perform_mail()
725 if(conn->proto.smtpc.size_supported && data->state.infilesize > 0) { in smtp_perform_mail()
738 if(conn->proto.smtpc.utf8_supported && !utf8) { in smtp_perform_mail()
757 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, in smtp_perform_mail()
788 struct connectdata *conn = data->conn; in smtp_perform_rcpt_to() local
802 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, "RCPT TO:<%s@%s>", in smtp_perform_rcpt_to()
807 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, "RCPT TO:<%s>", in smtp_perform_rcpt_to()
826 struct connectdata *conn) in smtp_perform_quit() argument
829 CURLcode result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, "%s", "QUIT"); in smtp_perform_quit()
864 if(data->conn->proto.smtpc.pp.overflow) in smtp_state_starttls_resp()
883 struct connectdata *conn, int smtpcode, in smtp_state_ehlo_resp() argument
887 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_state_ehlo_resp()
895 || Curl_conn_is_ssl(conn, FIRSTSOCKET)) in smtp_state_ehlo_resp()
896 result = smtp_perform_helo(data, conn); in smtp_state_ehlo_resp()
960 if(data->set.use_ssl && !Curl_conn_is_ssl(conn, FIRSTSOCKET)) { in smtp_state_ehlo_resp()
964 result = smtp_perform_starttls(data, conn); in smtp_state_ehlo_resp()
1009 struct connectdata *conn = data->conn; in smtp_state_auth_resp() local
1010 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_state_auth_resp()
1038 char *line = Curl_dyn_ptr(&data->conn->proto.smtpc.pp.recvbuf); in smtp_state_command_resp()
1039 size_t len = data->conn->proto.smtpc.pp.nfinal; in smtp_state_command_resp()
1093 struct connectdata *conn, int smtpcode, in smtp_state_rcpt_resp() argument
1139 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, "%s", "DATA"); in smtp_state_rcpt_resp()
1195 struct connectdata *conn) in smtp_statemachine() argument
1199 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_statemachine()
1232 result = smtp_state_ehlo_resp(data, conn, smtpcode, smtpc->state); in smtp_statemachine()
1260 result = smtp_state_rcpt_resp(data, conn, smtpcode, smtpc->state); in smtp_statemachine()
1286 struct connectdata *conn = data->conn; in smtp_multi_statemach() local
1287 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_multi_statemach()
1289 if((conn->handler->flags & PROTOPT_SSL) && !smtpc->ssldone) { in smtp_multi_statemach()
1304 struct connectdata *conn, in smtp_block_statemach() argument
1308 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_block_statemach()
1332 struct connectdata *conn, curl_socket_t *socks) in smtp_getsock() argument
1334 return Curl_pp_getsock(data, &conn->proto.smtpc.pp, socks); in smtp_getsock()
1350 struct connectdata *conn = data->conn; in smtp_connect() local
1351 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_connect()
1357 connkeep(conn, "SMTP default"); in smtp_connect()
1368 result = smtp_parse_url_options(conn); in smtp_connect()
1398 struct connectdata *conn = data->conn; in smtp_done() local
1410 connclose(conn, "SMTP done with bad status"); /* marked for closure */ in smtp_done()
1419 result = smtp_block_statemach(data, conn, FALSE); in smtp_done()
1480 *connected = Curl_conn_is_connected(data->conn, FIRSTSOCKET); in smtp_perform()
1501 DEBUGASSERT(data->conn); in smtp_do()
1522 struct connectdata *conn, in smtp_disconnect() argument
1525 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_disconnect()
1532 if(!dead_connection && conn->bits.protoconnstart) { in smtp_disconnect()
1533 if(!smtp_perform_quit(data, conn)) in smtp_disconnect()
1534 (void)smtp_block_statemach(data, conn, TRUE); /* ignore errors on QUIT */ in smtp_disconnect()
1541 Curl_sasl_cleanup(conn, smtpc->sasl.authused); in smtp_disconnect()
1618 struct connectdata *conn) in smtp_setup_connection() argument
1623 conn->bits.tls_upgraded = FALSE; in smtp_setup_connection()
1637 static CURLcode smtp_parse_url_options(struct connectdata *conn) in smtp_parse_url_options() argument
1640 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_parse_url_options()
1641 const char *ptr = conn->options; in smtp_parse_url_options()
1677 struct connectdata *conn = data->conn; in smtp_parse_url_path() local
1678 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_parse_url_path()