Lines Matching refs:result
383 CURLcode result = CURLE_OK; in pop3_perform_capa() local
391 result = Curl_pp_sendf(data, &pop3c->pp, "%s", "CAPA"); in pop3_perform_capa()
393 if(!result) in pop3_perform_capa()
396 return result; in pop3_perform_capa()
409 CURLcode result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s", "STLS"); in pop3_perform_starttls() local
411 if(!result) in pop3_perform_starttls()
414 return result; in pop3_perform_starttls()
428 CURLcode result; in pop3_perform_upgrade_tls() local
432 result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET); in pop3_perform_upgrade_tls()
433 if(result) in pop3_perform_upgrade_tls()
437 result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &ssldone); in pop3_perform_upgrade_tls()
439 if(!result) { in pop3_perform_upgrade_tls()
446 result = pop3_perform_capa(data, conn); in pop3_perform_upgrade_tls()
450 return result; in pop3_perform_upgrade_tls()
462 CURLcode result = CURLE_OK; in pop3_perform_user() local
469 return result; in pop3_perform_user()
473 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "USER %s", in pop3_perform_user()
475 if(!result) in pop3_perform_user()
478 return result; in pop3_perform_user()
491 CURLcode result = CURLE_OK; in pop3_perform_apop() local
503 return result; in pop3_perform_apop()
524 result = Curl_pp_sendf(data, &pop3c->pp, "APOP %s %s", conn->user, secret); in pop3_perform_apop()
526 if(!result) in pop3_perform_apop()
529 return result; in pop3_perform_apop()
544 CURLcode result = CURLE_OK; in pop3_perform_auth() local
550 result = Curl_pp_sendf(data, &pop3c->pp, "AUTH %s %s", mech, ir); in pop3_perform_auth()
554 result = Curl_pp_sendf(data, &pop3c->pp, "AUTH %s", mech); in pop3_perform_auth()
557 return result; in pop3_perform_auth()
604 CURLcode result = CURLE_OK; in pop3_perform_authentication() local
612 return result; in pop3_perform_authentication()
617 result = Curl_sasl_start(&pop3c->sasl, data, FALSE, &progress); in pop3_perform_authentication()
619 if(!result) in pop3_perform_authentication()
624 if(!result && progress == SASL_IDLE) { 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()
637 result = CURLE_LOGIN_DENIED; in pop3_perform_authentication()
641 return result; in pop3_perform_authentication()
652 CURLcode result = CURLE_OK; 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()
678 if(!result) { in pop3_perform_command()
683 return result; in pop3_perform_command()
696 CURLcode result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s", "QUIT"); in pop3_perform_quit() local
698 if(!result) in pop3_perform_quit()
701 return result; in pop3_perform_quit()
709 CURLcode result = CURLE_OK; in pop3_state_servergreet_resp() local
719 result = CURLE_WEIRD_SERVER_REPLY; in pop3_state_servergreet_resp()
748 if(!result) in pop3_state_servergreet_resp()
749 result = pop3_perform_capa(data, conn); in pop3_state_servergreet_resp()
752 return result; in pop3_state_servergreet_resp()
759 CURLcode result = CURLE_OK; in pop3_state_capa_resp() local
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()
833 result = CURLE_USE_SSL_FAILED; in pop3_state_capa_resp()
837 return result; in pop3_state_capa_resp()
846 CURLcode result = CURLE_OK; in pop3_state_starttls_resp() local
856 result = CURLE_USE_SSL_FAILED; 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()
864 return result; in pop3_state_starttls_resp()
872 CURLcode result = CURLE_OK; in pop3_state_auth_resp() local
879 result = Curl_sasl_continue(&pop3c->sasl, data, pop3code, &progress); in pop3_state_auth_resp()
880 if(!result) 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()
897 result = CURLE_LOGIN_DENIED; in pop3_state_auth_resp()
904 return result; in pop3_state_auth_resp()
912 CURLcode result = CURLE_OK; in pop3_state_apop_resp() local
917 result = CURLE_LOGIN_DENIED; in pop3_state_apop_resp()
923 return result; in pop3_state_apop_resp()
931 CURLcode result = CURLE_OK; in pop3_state_user_resp() local
937 result = CURLE_LOGIN_DENIED; in pop3_state_user_resp()
941 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "PASS %s", in pop3_state_user_resp()
943 if(!result) in pop3_state_user_resp()
946 return result; in pop3_state_user_resp()
953 CURLcode result = CURLE_OK; in pop3_state_pass_resp() local
958 result = CURLE_LOGIN_DENIED; in pop3_state_pass_resp()
964 return result; in pop3_state_pass_resp()
972 CURLcode result = CURLE_OK; in pop3_state_command_resp() local
1009 result = pop3_write(data, Curl_dyn_ptr(&pp->recvbuf), in pop3_state_command_resp()
1011 if(result) in pop3_state_command_resp()
1012 return result; in pop3_state_command_resp()
1026 return result; in pop3_state_command_resp()
1032 CURLcode result = CURLE_OK; in pop3_statemachine() local
1049 result = Curl_pp_readresp(data, FIRSTSOCKET, pp, &pop3code, &nread); in pop3_statemachine()
1050 if(result) in pop3_statemachine()
1051 return result; in pop3_statemachine()
1059 result = pop3_state_servergreet_resp(data, pop3code, pop3c->state); in pop3_statemachine()
1063 result = pop3_state_capa_resp(data, pop3code, pop3c->state); in pop3_statemachine()
1067 result = pop3_state_starttls_resp(data, conn, pop3code, pop3c->state); in pop3_statemachine()
1071 result = pop3_state_auth_resp(data, pop3code, pop3c->state); in pop3_statemachine()
1076 result = pop3_state_apop_resp(data, pop3code, pop3c->state); in pop3_statemachine()
1081 result = pop3_state_user_resp(data, pop3code, pop3c->state); in pop3_statemachine()
1085 result = pop3_state_pass_resp(data, pop3code, pop3c->state); in pop3_statemachine()
1089 result = pop3_state_command_resp(data, pop3code, pop3c->state); in pop3_statemachine()
1101 } while(!result && pop3c->state != POP3_STOP && Curl_pp_moredata(pp)); in pop3_statemachine()
1103 return result; in pop3_statemachine()
1109 CURLcode result = CURLE_OK; in pop3_multi_statemach() local
1115 result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &ssldone); in pop3_multi_statemach()
1117 if(result || !pop3c->ssldone) in pop3_multi_statemach()
1118 return result; in pop3_multi_statemach()
1121 result = Curl_pp_statemach(data, &pop3c->pp, FALSE, FALSE); in pop3_multi_statemach()
1124 return result; in pop3_multi_statemach()
1131 CURLcode result = CURLE_OK; in pop3_block_statemach() local
1134 while(pop3c->state != POP3_STOP && !result) in pop3_block_statemach()
1135 result = Curl_pp_statemach(data, &pop3c->pp, TRUE, disconnecting); in pop3_block_statemach()
1137 return result; in pop3_block_statemach()
1144 CURLcode result = CURLE_OK; in pop3_init() local
1149 result = CURLE_OUT_OF_MEMORY; in pop3_init()
1151 return result; in pop3_init()
1173 CURLcode result = CURLE_OK; in pop3_connect() local
1193 result = pop3_parse_url_options(conn); in pop3_connect()
1194 if(result) in pop3_connect()
1195 return result; in pop3_connect()
1200 result = pop3_multi_statemach(data, done); in pop3_connect()
1202 return result; in pop3_connect()
1217 CURLcode result = CURLE_OK; in pop3_done() local
1227 result = status; /* use the already set error code */ in pop3_done()
1237 return result; in pop3_done()
1251 CURLcode result = CURLE_OK; in pop3_perform() local
1264 result = pop3_perform_command(data); in pop3_perform()
1265 if(result) in pop3_perform()
1266 return result; in pop3_perform()
1269 result = pop3_multi_statemach(data, dophase_done); in pop3_perform()
1275 return result; in pop3_perform()
1289 CURLcode result = CURLE_OK; in pop3_do() local
1293 result = pop3_parse_url_path(data); in pop3_do()
1294 if(result) in pop3_do()
1295 return result; in pop3_do()
1298 result = pop3_parse_custom_request(data); in pop3_do()
1299 if(result) in pop3_do()
1300 return result; in pop3_do()
1302 result = pop3_regular_transfer(data, done); in pop3_do()
1304 return result; in pop3_do()
1353 CURLcode result = pop3_multi_statemach(data, dophase_done); in pop3_doing() local
1355 if(result) in pop3_doing()
1358 result = pop3_dophase_done(data, FALSE /* not connected */); in pop3_doing()
1363 return result; in pop3_doing()
1378 CURLcode result = CURLE_OK; in pop3_regular_transfer() local
1391 result = pop3_perform(data, &connected, dophase_done); in pop3_regular_transfer()
1394 if(!result && *dophase_done) in pop3_regular_transfer()
1395 result = pop3_dophase_done(data, connected); in pop3_regular_transfer()
1397 return result; in pop3_regular_transfer()
1404 CURLcode result = pop3_init(data); in pop3_setup_connection() local
1405 if(result) in pop3_setup_connection()
1406 return result; in pop3_setup_connection()
1422 CURLcode result = CURLE_OK; in pop3_parse_url_options() local
1426 while(!result && ptr && *ptr) { in pop3_parse_url_options()
1439 result = Curl_sasl_parse_url_auth_option(&pop3c->sasl, in pop3_parse_url_options()
1442 if(result && strncasecompare(value, "+APOP", ptr - value)) { in pop3_parse_url_options()
1445 result = CURLE_OK; in pop3_parse_url_options()
1449 result = CURLE_URL_MALFORMAT; in pop3_parse_url_options()
1468 return result; in pop3_parse_url_options()
1495 CURLcode result = CURLE_OK; in pop3_parse_custom_request() local
1501 result = Curl_urldecode(custom, 0, &pop3->custom, NULL, REJECT_CTRL); in pop3_parse_custom_request()
1503 return result; in pop3_parse_custom_request()
1517 CURLcode result = CURLE_OK; in pop3_write() local
1541 result = Curl_client_write(data, CLIENTWRITE_BODY, &str[last], in pop3_write()
1544 if(result) in pop3_write()
1545 return result; in pop3_write()
1600 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)POP3_EOB, in pop3_write()
1604 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)POP3_EOB, in pop3_write()
1608 result = CURLE_OK; in pop3_write()
1611 if(result) in pop3_write()
1612 return result; in pop3_write()
1624 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)POP3_EOB, 2); in pop3_write()
1629 return result; in pop3_write()
1637 result = Curl_client_write(data, CLIENTWRITE_BODY, &str[last], in pop3_write()
1641 return result; in pop3_write()