• Home
  • Raw
  • Download

Lines Matching refs:smtpc

198   struct smtp_conn *smtpc = &conn->proto.smtpc;  in smtp_endofresp()  local
223 (smtpc->state == SMTP_EHLO || smtpc->state == SMTP_COMMAND)) { in smtp_endofresp()
275 struct smtp_conn *smtpc = &conn->proto.smtpc; in state() local
295 if(smtpc->state != newstate) in state()
297 (void *)smtpc, names[smtpc->state], names[newstate]); in state()
300 smtpc->state = newstate; in state()
313 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_perform_ehlo() local
315 smtpc->sasl.authmechs = SASL_AUTH_NONE; /* No known auth. mechanism yet */ in smtp_perform_ehlo()
316 smtpc->sasl.authused = SASL_AUTH_NONE; /* Clear the authentication mechanism in smtp_perform_ehlo()
318 smtpc->tls_supported = FALSE; /* Clear the TLS capability */ in smtp_perform_ehlo()
319 smtpc->auth_supported = FALSE; /* Clear the AUTH capability */ in smtp_perform_ehlo()
322 result = Curl_pp_sendf(&smtpc->pp, "EHLO %s", smtpc->domain); in smtp_perform_ehlo()
339 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_perform_helo() local
341 smtpc->sasl.authused = SASL_AUTH_NONE; /* No authentication mechanism used in smtp_perform_helo()
345 result = Curl_pp_sendf(&smtpc->pp, "HELO %s", smtpc->domain); in smtp_perform_helo()
364 result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "STARTTLS"); in smtp_perform_starttls()
381 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_perform_upgrade_tls() local
384 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &smtpc->ssldone); in smtp_perform_upgrade_tls()
387 if(smtpc->state != SMTP_UPGRADETLS) in smtp_perform_upgrade_tls()
390 if(smtpc->ssldone) { in smtp_perform_upgrade_tls()
411 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_perform_auth() local
415 result = Curl_pp_sendf(&smtpc->pp, "AUTH %s %s", mech, initresp); in smtp_perform_auth()
419 result = Curl_pp_sendf(&smtpc->pp, "AUTH %s", mech); in smtp_perform_auth()
433 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_continue_auth() local
435 return Curl_pp_sendf(&smtpc->pp, "%s", resp); in smtp_continue_auth()
448 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_perform_authentication() local
453 if(!smtpc->auth_supported || in smtp_perform_authentication()
454 !Curl_sasl_can_authenticate(&smtpc->sasl, conn)) { in smtp_perform_authentication()
460 result = Curl_sasl_start(&smtpc->sasl, conn, FALSE, &progress); in smtp_perform_authentication()
489 result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s %s", in smtp_perform_command()
494 result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", in smtp_perform_command()
531 if(data->set.str[STRING_MAIL_AUTH] && conn->proto.smtpc.sasl.authused) { in smtp_perform_mail()
578 if(conn->proto.smtpc.size_supported && data->state.infilesize > 0) { in smtp_perform_mail()
591 result = Curl_pp_sendf(&conn->proto.smtpc.pp, in smtp_perform_mail()
594 result = Curl_pp_sendf(&conn->proto.smtpc.pp, in smtp_perform_mail()
597 result = Curl_pp_sendf(&conn->proto.smtpc.pp, in smtp_perform_mail()
600 result = Curl_pp_sendf(&conn->proto.smtpc.pp, in smtp_perform_mail()
628 result = Curl_pp_sendf(&conn->proto.smtpc.pp, "RCPT TO:%s", in smtp_perform_rcpt_to()
631 result = Curl_pp_sendf(&conn->proto.smtpc.pp, "RCPT TO:<%s>", in smtp_perform_rcpt_to()
650 result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "QUIT"); in smtp_perform_quit()
708 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_state_ehlo_resp() local
728 smtpc->tls_supported = TRUE; in smtp_state_ehlo_resp()
732 smtpc->size_supported = TRUE; in smtp_state_ehlo_resp()
736 smtpc->auth_supported = TRUE; in smtp_state_ehlo_resp()
768 smtpc->sasl.authmechs |= mechbit; in smtp_state_ehlo_resp()
778 if(smtpc->tls_supported) in smtp_state_ehlo_resp()
824 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_state_auth_resp() local
829 result = Curl_sasl_continue(&smtpc->sasl, conn, smtpcode, &progress); in smtp_state_auth_resp()
934 result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "DATA"); in smtp_state_rcpt_resp()
996 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_statemach_act() local
997 struct pingpong *pp = &smtpc->pp; in smtp_statemach_act()
1001 if(smtpc->state == SMTP_UPGRADETLS) in smtp_statemach_act()
1015 if(smtpc->state != SMTP_QUIT && smtpcode != 1) in smtp_statemach_act()
1022 switch(smtpc->state) { in smtp_statemach_act()
1024 result = smtp_state_servergreet_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1028 result = smtp_state_ehlo_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1032 result = smtp_state_helo_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1036 result = smtp_state_starttls_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1040 result = smtp_state_auth_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1044 result = smtp_state_command_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1048 result = smtp_state_mail_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1052 result = smtp_state_rcpt_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1056 result = smtp_state_data_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1060 result = smtp_state_postdata_resp(conn, smtpcode, smtpc->state); in smtp_statemach_act()
1070 } while(!result && smtpc->state != SMTP_STOP && Curl_pp_moredata(pp)); in smtp_statemach_act()
1079 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_multi_statemach() local
1081 if((conn->handler->flags & PROTOPT_SSL) && !smtpc->ssldone) { in smtp_multi_statemach()
1082 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &smtpc->ssldone); in smtp_multi_statemach()
1083 if(result || !smtpc->ssldone) in smtp_multi_statemach()
1087 result = Curl_pp_statemach(&smtpc->pp, FALSE, FALSE); in smtp_multi_statemach()
1088 *done = (smtpc->state == SMTP_STOP) ? TRUE : FALSE; in smtp_multi_statemach()
1097 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_block_statemach() local
1099 while(smtpc->state != SMTP_STOP && !result) in smtp_block_statemach()
1100 result = Curl_pp_statemach(&smtpc->pp, TRUE, disconnecting); in smtp_block_statemach()
1124 return Curl_pp_getsock(&conn->proto.smtpc.pp, socks, numsocks); in smtp_getsock()
1140 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_connect() local
1141 struct pingpong *pp = &smtpc->pp; in smtp_connect()
1155 Curl_sasl_init(&smtpc->sasl, &saslsmtp); in smtp_connect()
1193 struct pingpong *pp = &conn->proto.smtpc.pp; in smtp_done()
1358 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_disconnect() local
1366 if(!dead_connection && smtpc->pp.conn && smtpc->pp.conn->bits.protoconnstart) in smtp_disconnect()
1371 Curl_pp_disconnect(&smtpc->pp); in smtp_disconnect()
1374 Curl_sasl_cleanup(conn, smtpc->sasl.authused); in smtp_disconnect()
1377 Curl_safefree(smtpc->domain); in smtp_disconnect()
1471 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_parse_url_options() local
1474 smtpc->sasl.resetprefs = TRUE; in smtp_parse_url_options()
1489 result = Curl_sasl_parse_url_auth_option(&smtpc->sasl, in smtp_parse_url_options()
1511 struct smtp_conn *smtpc = &conn->proto.smtpc; in smtp_parse_url_path() local
1524 return Curl_urldecode(conn->data, path, 0, &smtpc->domain, NULL, TRUE); in smtp_parse_url_path()