Lines Matching refs:result
434 CURLcode result = CURLE_OK; in imap_perform_capability() local
441 result = imap_sendf(data, "CAPABILITY"); in imap_perform_capability()
443 if(!result) in imap_perform_capability()
446 return result; in imap_perform_capability()
458 CURLcode result = imap_sendf(data, "STARTTLS"); in imap_perform_starttls() local
460 if(!result) in imap_perform_starttls()
463 return result; in imap_perform_starttls()
477 CURLcode result; in imap_perform_upgrade_tls() local
481 result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET); in imap_perform_upgrade_tls()
482 if(result) in imap_perform_upgrade_tls()
486 result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &ssldone); in imap_perform_upgrade_tls()
487 if(!result) { in imap_perform_upgrade_tls()
494 result = imap_perform_capability(data, conn); in imap_perform_upgrade_tls()
498 return result; in imap_perform_upgrade_tls()
510 CURLcode result = CURLE_OK; in imap_perform_login() local
519 return result; in imap_perform_login()
527 result = imap_sendf(data, "LOGIN %s %s", user ? user : "", in imap_perform_login()
533 if(!result) in imap_perform_login()
536 return result; in imap_perform_login()
550 CURLcode result = CURLE_OK; in imap_perform_authenticate() local
555 result = imap_sendf(data, "AUTHENTICATE %s %s", mech, ir); in imap_perform_authenticate()
559 result = imap_sendf(data, "AUTHENTICATE %s", mech); in imap_perform_authenticate()
562 return result; in imap_perform_authenticate()
610 CURLcode result = CURLE_OK; in imap_perform_authentication() local
619 return result; in imap_perform_authentication()
623 result = Curl_sasl_start(&imapc->sasl, data, imapc->ir_supported, &progress); in imap_perform_authentication()
625 if(!result) { in imap_perform_authentication()
630 result = imap_perform_login(data, conn); in imap_perform_authentication()
634 result = CURLE_LOGIN_DENIED; in imap_perform_authentication()
638 return result; in imap_perform_authentication()
649 CURLcode result = CURLE_OK; in imap_perform_list() local
654 result = imap_sendf(data, "%s%s", imap->custom, in imap_perform_list()
664 result = imap_sendf(data, "LIST \"%s\" *", mailbox); in imap_perform_list()
669 if(!result) in imap_perform_list()
672 return result; in imap_perform_list()
683 CURLcode result = CURLE_OK; in imap_perform_select() local
705 result = imap_sendf(data, "SELECT %s", mailbox); in imap_perform_select()
709 if(!result) in imap_perform_select()
712 return result; in imap_perform_select()
723 CURLcode result = CURLE_OK; in imap_perform_fetch() local
730 result = imap_sendf(data, "UID FETCH %s BODY[%s]<%s>", in imap_perform_fetch()
734 result = imap_sendf(data, "UID FETCH %s BODY[%s]", in imap_perform_fetch()
740 result = imap_sendf(data, "FETCH %s BODY[%s]<%s>", in imap_perform_fetch()
744 result = imap_sendf(data, "FETCH %s BODY[%s]", in imap_perform_fetch()
751 if(!result) in imap_perform_fetch()
754 return result; in imap_perform_fetch()
765 CURLcode result = CURLE_OK; in imap_perform_append() local
783 result = Curl_mime_prepare_headers(data, &data->set.mimepost, NULL, in imap_perform_append()
786 if(!result) in imap_perform_append()
788 result = Curl_mime_add_header(&data->set.mimepost.curlheaders, in imap_perform_append()
791 if(!result) in imap_perform_append()
792 result = Curl_creader_set_mime(data, &data->set.mimepost); in imap_perform_append()
793 if(result) in imap_perform_append()
794 return result; in imap_perform_append()
800 result = Curl_creader_set_fread(data, data->state.infilesize); in imap_perform_append()
801 if(result) in imap_perform_append()
802 return result; in imap_perform_append()
817 result = imap_sendf(data, "APPEND %s (\\Seen) {%" FMT_OFF_T "}", in imap_perform_append()
822 if(!result) in imap_perform_append()
825 return result; in imap_perform_append()
836 CURLcode result = CURLE_OK; in imap_perform_search() local
846 result = imap_sendf(data, "SEARCH %s", imap->query); in imap_perform_search()
848 if(!result) in imap_perform_search()
851 return result; in imap_perform_search()
863 CURLcode result = imap_sendf(data, "LOGOUT"); in imap_perform_logout() local
865 if(!result) in imap_perform_logout()
868 return result; in imap_perform_logout()
898 CURLcode result = CURLE_OK; in imap_state_capability_resp() local
961 result = imap_perform_starttls(data); in imap_state_capability_resp()
964 result = imap_perform_authentication(data, conn); in imap_state_capability_resp()
967 result = CURLE_USE_SSL_FAILED; in imap_state_capability_resp()
971 result = imap_perform_authentication(data, conn); in imap_state_capability_resp()
973 return result; in imap_state_capability_resp()
981 CURLcode result = CURLE_OK; in imap_state_starttls_resp() local
993 result = CURLE_USE_SSL_FAILED; in imap_state_starttls_resp()
996 result = imap_perform_authentication(data, conn); in imap_state_starttls_resp()
999 result = imap_perform_upgrade_tls(data, conn); in imap_state_starttls_resp()
1001 return result; in imap_state_starttls_resp()
1010 CURLcode result = CURLE_OK; in imap_state_auth_resp() local
1016 result = Curl_sasl_continue(&imapc->sasl, data, imapcode, &progress); in imap_state_auth_resp()
1017 if(!result) in imap_state_auth_resp()
1025 result = imap_perform_login(data, conn); in imap_state_auth_resp()
1028 result = CURLE_LOGIN_DENIED; in imap_state_auth_resp()
1035 return result; in imap_state_auth_resp()
1043 CURLcode result = CURLE_OK; in imap_state_login_resp() local
1048 result = CURLE_LOGIN_DENIED; in imap_state_login_resp()
1054 return result; in imap_state_login_resp()
1062 CURLcode result = CURLE_OK; in imap_state_listsearch_resp() local
1069 result = Curl_client_write(data, CLIENTWRITE_BODY, line, len); in imap_state_listsearch_resp()
1071 result = CURLE_QUOTE_ERROR; in imap_state_listsearch_resp()
1076 return result; in imap_state_listsearch_resp()
1083 CURLcode result = CURLE_OK; in imap_state_select_resp() local
1113 result = CURLE_REMOTE_FILE_NOT_FOUND; in imap_state_select_resp()
1123 result = imap_perform_list(data); in imap_state_select_resp()
1125 result = imap_perform_search(data); in imap_state_select_resp()
1127 result = imap_perform_fetch(data); in imap_state_select_resp()
1132 result = CURLE_LOGIN_DENIED; in imap_state_select_resp()
1135 return result; in imap_state_select_resp()
1143 CURLcode result = CURLE_OK; in imap_state_fetch_resp() local
1192 result = Curl_client_write(data, CLIENTWRITE_BODY, in imap_state_fetch_resp()
1194 if(result) in imap_state_fetch_resp()
1195 return result; in imap_state_fetch_resp()
1228 result = CURLE_WEIRD_SERVER_REPLY; in imap_state_fetch_resp()
1234 return result; in imap_state_fetch_resp()
1242 CURLcode result = CURLE_OK; in imap_state_fetch_final_resp() local
1247 result = CURLE_WEIRD_SERVER_REPLY; in imap_state_fetch_final_resp()
1252 return result; in imap_state_fetch_final_resp()
1259 CURLcode result = CURLE_OK; in imap_state_append_resp() local
1263 result = CURLE_UPLOAD_FAILED; in imap_state_append_resp()
1276 return result; in imap_state_append_resp()
1284 CURLcode result = CURLE_OK; in imap_state_append_final_resp() local
1289 result = CURLE_UPLOAD_FAILED; in imap_state_append_final_resp()
1294 return result; in imap_state_append_final_resp()
1300 CURLcode result = CURLE_OK; in imap_statemachine() local
1317 result = Curl_pp_readresp(data, FIRSTSOCKET, pp, &imapcode, &nread); in imap_statemachine()
1318 if(result) in imap_statemachine()
1319 return result; in imap_statemachine()
1331 result = imap_state_servergreet_resp(data, imapcode, imapc->state); in imap_statemachine()
1335 result = imap_state_capability_resp(data, imapcode, imapc->state); in imap_statemachine()
1339 result = imap_state_starttls_resp(data, imapcode, imapc->state); in imap_statemachine()
1343 result = imap_state_auth_resp(data, conn, imapcode, imapc->state); in imap_statemachine()
1347 result = imap_state_login_resp(data, imapcode, imapc->state); in imap_statemachine()
1352 result = imap_state_listsearch_resp(data, imapcode, imapc->state); in imap_statemachine()
1356 result = imap_state_select_resp(data, imapcode, imapc->state); in imap_statemachine()
1360 result = imap_state_fetch_resp(data, conn, imapcode, imapc->state); in imap_statemachine()
1364 result = imap_state_fetch_final_resp(data, imapcode, imapc->state); in imap_statemachine()
1368 result = imap_state_append_resp(data, imapcode, imapc->state); in imap_statemachine()
1372 result = imap_state_append_final_resp(data, imapcode, imapc->state); in imap_statemachine()
1381 } while(!result && imapc->state != IMAP_STOP && Curl_pp_moredata(pp)); in imap_statemachine()
1383 return result; in imap_statemachine()
1389 CURLcode result = CURLE_OK; in imap_multi_statemach() local
1395 result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &ssldone); in imap_multi_statemach()
1397 if(result || !ssldone) in imap_multi_statemach()
1398 return result; in imap_multi_statemach()
1401 result = Curl_pp_statemach(data, &imapc->pp, FALSE, FALSE); in imap_multi_statemach()
1404 return result; in imap_multi_statemach()
1411 CURLcode result = CURLE_OK; in imap_block_statemach() local
1414 while(imapc->state != IMAP_STOP && !result) in imap_block_statemach()
1415 result = Curl_pp_statemach(data, &imapc->pp, TRUE, disconnecting); in imap_block_statemach()
1417 return result; in imap_block_statemach()
1424 CURLcode result = CURLE_OK; in imap_init() local
1429 result = CURLE_OUT_OF_MEMORY; in imap_init()
1431 return result; in imap_init()
1454 CURLcode result = CURLE_OK; in imap_connect() local
1474 result = imap_parse_url_options(conn); in imap_connect()
1475 if(result) in imap_connect()
1476 return result; in imap_connect()
1484 result = imap_multi_statemach(data, done); in imap_connect()
1486 return result; in imap_connect()
1501 CURLcode result = CURLE_OK; in imap_done() local
1512 result = status; /* use the already set error code */ in imap_done()
1523 result = Curl_pp_sendf(data, &conn->proto.imapc.pp, "%s", ""); in imap_done()
1524 if(!result) in imap_done()
1529 if(!result) in imap_done()
1530 result = imap_block_statemach(data, conn, FALSE); in imap_done()
1547 return result; in imap_done()
1561 CURLcode result = CURLE_OK; in imap_perform() local
1587 result = imap_perform_append(data); in imap_perform()
1590 result = imap_perform_list(data); in imap_perform()
1593 result = imap_perform_fetch(data); in imap_perform()
1596 result = imap_perform_search(data); in imap_perform()
1600 result = imap_perform_select(data); in imap_perform()
1603 result = imap_perform_list(data); in imap_perform()
1605 if(result) in imap_perform()
1606 return result; in imap_perform()
1609 result = imap_multi_statemach(data, dophase_done); in imap_perform()
1616 return result; in imap_perform()
1630 CURLcode result = CURLE_OK; in imap_do() local
1634 result = imap_parse_url_path(data); in imap_do()
1635 if(result) in imap_do()
1636 return result; in imap_do()
1639 result = imap_parse_custom_request(data); in imap_do()
1640 if(result) in imap_do()
1641 return result; in imap_do()
1643 result = imap_regular_transfer(data, done); in imap_do()
1645 return result; in imap_do()
1703 CURLcode result = imap_multi_statemach(data, dophase_done); in imap_doing() local
1705 if(result) in imap_doing()
1708 result = imap_dophase_done(data, FALSE /* not connected */); in imap_doing()
1713 return result; in imap_doing()
1728 CURLcode result = CURLE_OK; in imap_regular_transfer() local
1741 result = imap_perform(data, &connected, dophase_done); in imap_regular_transfer()
1744 if(!result && *dophase_done) in imap_regular_transfer()
1745 result = imap_dophase_done(data, connected); in imap_regular_transfer()
1747 return result; in imap_regular_transfer()
1754 CURLcode result = imap_init(data); in imap_setup_connection() local
1755 if(result) in imap_setup_connection()
1756 return result; in imap_setup_connection()
1774 CURLcode result = CURLE_OK; in imap_sendf() local
1788 result = Curl_dyn_addf(&imapc->dyn, "%s %s", imapc->resptag, fmt); in imap_sendf()
1789 if(!result) { in imap_sendf()
1796 result = Curl_pp_vsendf(data, &imapc->pp, Curl_dyn_ptr(&imapc->dyn), ap); in imap_sendf()
1802 return result; in imap_sendf()
1891 CURLcode result = CURLE_OK; in imap_parse_url_options() local
1896 while(!result && ptr && *ptr) { in imap_parse_url_options()
1915 result = Curl_sasl_parse_url_auth_option(&imapc->sasl, in imap_parse_url_options()
1920 result = CURLE_URL_MALFORMAT; in imap_parse_url_options()
1943 return result; in imap_parse_url_options()
1956 CURLcode result = CURLE_OK; in imap_parse_url_path() local
1971 result = Curl_urldecode(begin, end - begin, &imap->mailbox, NULL, in imap_parse_url_path()
1973 if(result) in imap_parse_url_path()
1974 return result; in imap_parse_url_path()
1994 result = Curl_urldecode(begin, ptr - begin, &name, NULL, in imap_parse_url_path()
1996 if(result) in imap_parse_url_path()
1997 return result; in imap_parse_url_path()
2005 result = Curl_urldecode(begin, ptr - begin, &value, &valuelen, in imap_parse_url_path()
2007 if(result) { in imap_parse_url_path()
2009 return result; in imap_parse_url_path()
2087 CURLcode result = CURLE_OK; in imap_parse_custom_request() local
2093 result = Curl_urldecode(custom, 0, &imap->custom, NULL, REJECT_CTRL); in imap_parse_custom_request()
2096 if(!result) { in imap_parse_custom_request()
2107 result = CURLE_OUT_OF_MEMORY; in imap_parse_custom_request()
2112 return result; in imap_parse_custom_request()