Lines Matching refs:result

215   bool result = FALSE;  in smtp_endofresp()  local
229 result = TRUE; in smtp_endofresp()
241 result = TRUE; in smtp_endofresp()
245 return result; in smtp_endofresp()
327 CURLcode result = CURLE_OK; in smtp_perform_ehlo() local
338 result = Curl_pp_sendf(data, &smtpc->pp, "EHLO %s", smtpc->domain); in smtp_perform_ehlo()
340 if(!result) in smtp_perform_ehlo()
343 return result; in smtp_perform_ehlo()
355 CURLcode result = CURLE_OK; in smtp_perform_helo() local
362 result = Curl_pp_sendf(data, &smtpc->pp, "HELO %s", smtpc->domain); in smtp_perform_helo()
364 if(!result) in smtp_perform_helo()
367 return result; in smtp_perform_helo()
380 CURLcode result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, in smtp_perform_starttls() local
383 if(!result) in smtp_perform_starttls()
386 return result; in smtp_perform_starttls()
400 CURLcode result; in smtp_perform_upgrade_tls() local
404 result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET); in smtp_perform_upgrade_tls()
405 if(result) in smtp_perform_upgrade_tls()
409 result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &ssldone); in smtp_perform_upgrade_tls()
410 if(!result) { in smtp_perform_upgrade_tls()
417 result = smtp_perform_ehlo(data); in smtp_perform_upgrade_tls()
421 return result; in smtp_perform_upgrade_tls()
435 CURLcode result = CURLE_OK; in smtp_perform_auth() local
441 result = Curl_pp_sendf(data, &smtpc->pp, "AUTH %s %s", mech, ir); in smtp_perform_auth()
445 result = Curl_pp_sendf(data, &smtpc->pp, "AUTH %s", mech); in smtp_perform_auth()
448 return result; in smtp_perform_auth()
493 CURLcode result = CURLE_OK; in smtp_perform_authentication() local
503 return result; in smtp_perform_authentication()
507 result = Curl_sasl_start(&smtpc->sasl, data, FALSE, &progress); in smtp_perform_authentication()
509 if(!result) { in smtp_perform_authentication()
515 result = CURLE_LOGIN_DENIED; in smtp_perform_authentication()
519 return result; in smtp_perform_authentication()
530 CURLcode result = CURLE_OK; in smtp_perform_command() local
547 result = smtp_parse_address(smtp->rcpt->data, in smtp_perform_command()
549 if(result) in smtp_perform_command()
550 return result; in smtp_perform_command()
560 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, "VRFY %s%s%s%s", 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()
588 if(!result) in smtp_perform_command()
591 return result; in smtp_perform_command()
605 CURLcode result = CURLE_OK; in smtp_perform_mail() local
621 result = smtp_parse_address(data->set.str[STRING_MAIL_FROM], in smtp_perform_mail()
623 if(result) in smtp_perform_mail()
649 result = CURLE_OUT_OF_MEMORY; in smtp_perform_mail()
661 result = smtp_parse_address(data->set.str[STRING_MAIL_AUTH], in smtp_perform_mail()
663 if(result) in smtp_perform_mail()
689 result = CURLE_OUT_OF_MEMORY; in smtp_perform_mail()
702 result = Curl_mime_prepare_headers(data, &data->set.mimepost, NULL, in smtp_perform_mail()
705 if(!result) in smtp_perform_mail()
707 result = Curl_mime_add_header(&data->set.mimepost.curlheaders, in smtp_perform_mail()
710 if(!result) in smtp_perform_mail()
711 result = Curl_creader_set_mime(data, &data->set.mimepost); in smtp_perform_mail()
712 if(result) in smtp_perform_mail()
719 result = Curl_creader_set_fread(data, data->state.infilesize); in smtp_perform_mail()
720 if(result) in smtp_perform_mail()
729 result = CURLE_OUT_OF_MEMORY; in smtp_perform_mail()
752 result = cr_eob_add(data); in smtp_perform_mail()
753 if(result) in smtp_perform_mail()
757 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, in smtp_perform_mail()
772 if(!result) in smtp_perform_mail()
775 return result; in smtp_perform_mail()
787 CURLcode result = CURLE_OK; in smtp_perform_rcpt_to() local
795 result = smtp_parse_address(smtp->rcpt->data, in smtp_perform_rcpt_to()
797 if(result) in smtp_perform_rcpt_to()
798 return result; in smtp_perform_rcpt_to()
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()
813 if(!result) in smtp_perform_rcpt_to()
816 return result; in smtp_perform_rcpt_to()
829 CURLcode result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, "%s", "QUIT"); in smtp_perform_quit() local
831 if(!result) in smtp_perform_quit()
834 return result; in smtp_perform_quit()
842 CURLcode result = CURLE_OK; in smtp_state_servergreet_resp() local
847 result = CURLE_WEIRD_SERVER_REPLY; in smtp_state_servergreet_resp()
850 result = smtp_perform_ehlo(data); in smtp_state_servergreet_resp()
852 return result; in smtp_state_servergreet_resp()
860 CURLcode result = CURLE_OK; in smtp_state_starttls_resp() local
870 result = CURLE_USE_SSL_FAILED; in smtp_state_starttls_resp()
873 result = smtp_perform_authentication(data); in smtp_state_starttls_resp()
876 result = smtp_perform_upgrade_tls(data); in smtp_state_starttls_resp()
878 return result; in smtp_state_starttls_resp()
886 CURLcode result = CURLE_OK; in smtp_state_ehlo_resp() local
896 result = smtp_perform_helo(data, conn); in smtp_state_ehlo_resp()
899 result = CURLE_REMOTE_ACCESS_DENIED; in smtp_state_ehlo_resp()
964 result = smtp_perform_starttls(data, conn); in smtp_state_ehlo_resp()
967 result = smtp_perform_authentication(data); in smtp_state_ehlo_resp()
970 result = CURLE_USE_SSL_FAILED; in smtp_state_ehlo_resp()
974 result = smtp_perform_authentication(data); in smtp_state_ehlo_resp()
979 result = CURLE_WEIRD_SERVER_REPLY; in smtp_state_ehlo_resp()
982 return result; in smtp_state_ehlo_resp()
989 CURLcode result = CURLE_OK; in smtp_state_helo_resp() local
994 result = CURLE_REMOTE_ACCESS_DENIED; in smtp_state_helo_resp()
1000 return result; in smtp_state_helo_resp()
1008 CURLcode result = CURLE_OK; in smtp_state_auth_resp() local
1015 result = Curl_sasl_continue(&smtpc->sasl, data, smtpcode, &progress); in smtp_state_auth_resp()
1016 if(!result) in smtp_state_auth_resp()
1023 result = CURLE_LOGIN_DENIED; in smtp_state_auth_resp()
1029 return result; in smtp_state_auth_resp()
1036 CURLcode result = CURLE_OK; in smtp_state_command_resp() local
1046 result = CURLE_WEIRD_SERVER_REPLY; in smtp_state_command_resp()
1050 result = Curl_client_write(data, CLIENTWRITE_BODY, line, len); in smtp_state_command_resp()
1058 result = smtp_perform_command(data); in smtp_state_command_resp()
1070 return result; in smtp_state_command_resp()
1077 CURLcode result = CURLE_OK; in smtp_state_mail_resp() local
1082 result = CURLE_SEND_ERROR; in smtp_state_mail_resp()
1086 result = smtp_perform_rcpt_to(data); in smtp_state_mail_resp()
1088 return result; in smtp_state_mail_resp()
1096 CURLcode result = CURLE_OK; in smtp_state_rcpt_resp() local
1116 result = CURLE_SEND_ERROR; in smtp_state_rcpt_resp()
1129 result = smtp_perform_rcpt_to(data); in smtp_state_rcpt_resp()
1135 result = CURLE_SEND_ERROR; in smtp_state_rcpt_resp()
1139 result = Curl_pp_sendf(data, &conn->proto.smtpc.pp, "%s", "DATA"); in smtp_state_rcpt_resp()
1141 if(!result) in smtp_state_rcpt_resp()
1147 return result; in smtp_state_rcpt_resp()
1154 CURLcode result = CURLE_OK; in smtp_state_data_resp() local
1159 result = CURLE_SEND_ERROR; in smtp_state_data_resp()
1172 return result; in smtp_state_data_resp()
1181 CURLcode result = CURLE_OK; in smtp_state_postdata_resp() local
1186 result = CURLE_WEIRD_SERVER_REPLY; in smtp_state_postdata_resp()
1191 return result; in smtp_state_postdata_resp()
1197 CURLcode result = CURLE_OK; in smtp_statemachine() local
1214 result = Curl_pp_readresp(data, FIRSTSOCKET, pp, &smtpcode, &nread); in smtp_statemachine()
1215 if(result) in smtp_statemachine()
1216 return result; in smtp_statemachine()
1228 result = smtp_state_servergreet_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1232 result = smtp_state_ehlo_resp(data, conn, smtpcode, smtpc->state); in smtp_statemachine()
1236 result = smtp_state_helo_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1240 result = smtp_state_starttls_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1243 if(!result && (smtpc->state == SMTP_UPGRADETLS)) in smtp_statemachine()
1248 result = smtp_state_auth_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1252 result = smtp_state_command_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1256 result = smtp_state_mail_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1260 result = smtp_state_rcpt_resp(data, conn, smtpcode, smtpc->state); in smtp_statemachine()
1264 result = smtp_state_data_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1268 result = smtp_state_postdata_resp(data, smtpcode, smtpc->state); in smtp_statemachine()
1277 } while(!result && smtpc->state != SMTP_STOP && Curl_pp_moredata(pp)); in smtp_statemachine()
1279 return result; in smtp_statemachine()
1285 CURLcode result = CURLE_OK; in smtp_multi_statemach() local
1291 result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &ssldone); in smtp_multi_statemach()
1293 if(result || !smtpc->ssldone) in smtp_multi_statemach()
1294 return result; in smtp_multi_statemach()
1297 result = Curl_pp_statemach(data, &smtpc->pp, FALSE, FALSE); in smtp_multi_statemach()
1300 return result; in smtp_multi_statemach()
1307 CURLcode result = CURLE_OK; in smtp_block_statemach() local
1310 while(smtpc->state != SMTP_STOP && !result) in smtp_block_statemach()
1311 result = Curl_pp_statemach(data, &smtpc->pp, TRUE, disconnecting); in smtp_block_statemach()
1313 return result; in smtp_block_statemach()
1320 CURLcode result = CURLE_OK; in smtp_init() local
1325 result = CURLE_OUT_OF_MEMORY; in smtp_init()
1327 return result; in smtp_init()
1349 CURLcode result = CURLE_OK; in smtp_connect() local
1368 result = smtp_parse_url_options(conn); in smtp_connect()
1369 if(result) in smtp_connect()
1370 return result; in smtp_connect()
1373 result = smtp_parse_url_path(data); in smtp_connect()
1374 if(result) in smtp_connect()
1375 return result; in smtp_connect()
1380 result = smtp_multi_statemach(data, done); in smtp_connect()
1382 return result; in smtp_connect()
1397 CURLcode result = CURLE_OK; in smtp_done() local
1411 result = status; /* use the already set error code */ in smtp_done()
1419 result = smtp_block_statemach(data, conn, FALSE); in smtp_done()
1425 status, premature, result); in smtp_done()
1426 return result; in smtp_done()
1440 CURLcode result = CURLE_OK; in smtp_perform() local
1469 result = smtp_perform_mail(data); in smtp_perform()
1472 result = smtp_perform_command(data); in smtp_perform()
1474 if(result) in smtp_perform()
1478 result = smtp_multi_statemach(data, dophase_done); in smtp_perform()
1484 result, *connected, *dophase_done); in smtp_perform()
1485 return result; in smtp_perform()
1499 CURLcode result = CURLE_OK; in smtp_do() local
1505 result = smtp_parse_custom_request(data); in smtp_do()
1506 if(result) in smtp_do()
1507 return result; in smtp_do()
1509 result = smtp_regular_transfer(data, done); in smtp_do()
1510 CURL_TRC_SMTP(data, "smtp_do() -> %d, done=%d", result, *done); in smtp_do()
1511 return result; in smtp_do()
1567 CURLcode result = smtp_multi_statemach(data, dophase_done); in smtp_doing() local
1569 if(result) in smtp_doing()
1572 result = smtp_dophase_done(data, FALSE /* not connected */); in smtp_doing()
1577 CURL_TRC_SMTP(data, "smtp_doing() -> %d, done=%d", result, *dophase_done); in smtp_doing()
1578 return result; in smtp_doing()
1593 CURLcode result = CURLE_OK; in smtp_regular_transfer() local
1606 result = smtp_perform(data, &connected, dophase_done); in smtp_regular_transfer()
1609 if(!result && *dophase_done) in smtp_regular_transfer()
1610 result = smtp_dophase_done(data, connected); in smtp_regular_transfer()
1613 result, *dophase_done); in smtp_regular_transfer()
1614 return result; in smtp_regular_transfer()
1620 CURLcode result; in smtp_setup_connection() local
1626 result = smtp_init(data); in smtp_setup_connection()
1627 CURL_TRC_SMTP(data, "smtp_setup_connection() -> %d", result); in smtp_setup_connection()
1628 return result; in smtp_setup_connection()
1639 CURLcode result = CURLE_OK; in smtp_parse_url_options() local
1643 while(!result && ptr && *ptr) { in smtp_parse_url_options()
1656 result = Curl_sasl_parse_url_auth_option(&smtpc->sasl, in smtp_parse_url_options()
1659 result = CURLE_URL_MALFORMAT; in smtp_parse_url_options()
1665 return result; in smtp_parse_url_options()
1702 CURLcode result = CURLE_OK; in smtp_parse_custom_request() local
1708 result = Curl_urldecode(custom, 0, &smtp->custom, NULL, REJECT_CTRL); in smtp_parse_custom_request()
1710 return result; in smtp_parse_custom_request()
1750 CURLcode result = CURLE_OK; in smtp_parse_address() local
1782 return result; in smtp_parse_address()
1825 CURLcode result = CURLE_OK; in cr_eob_read() local
1831 result = Curl_creader_read(data, reader->next, buf, blen, &nread, &eos); in cr_eob_read()
1832 if(result) in cr_eob_read()
1833 return result; in cr_eob_read()
1847 result = Curl_bufq_cwrite(&ctx->buf, buf + start, i - start, &n); in cr_eob_read()
1848 if(result) in cr_eob_read()
1849 return result; in cr_eob_read()
1850 result = Curl_bufq_cwrite(&ctx->buf, ".", 1, &n); in cr_eob_read()
1851 if(result) in cr_eob_read()
1852 return result; in cr_eob_read()
1870 result = Curl_bufq_cwrite(&ctx->buf, buf + start, nread - start, &n); in cr_eob_read()
1871 if(result) in cr_eob_read()
1872 return result; in cr_eob_read()
1893 result = Curl_bufq_cwrite(&ctx->buf, eob, strlen(eob), &n); in cr_eob_read()
1894 if(result) in cr_eob_read()
1895 return result; in cr_eob_read()
1901 result = Curl_bufq_cread(&ctx->buf, buf, blen, pnread); in cr_eob_read()
1912 blen, result, *pnread, *peos)); in cr_eob_read()
1913 return result; in cr_eob_read()
1943 CURLcode result; in cr_eob_add() local
1945 result = Curl_creader_create(&reader, data, &cr_eob, in cr_eob_add()
1947 if(!result) in cr_eob_add()
1948 result = Curl_creader_add(data, reader); in cr_eob_add()
1950 if(result && reader) in cr_eob_add()
1952 return result; in cr_eob_add()