Lines Matching refs:result
325 CURLcode result = CURLE_OK;
333 result = Curl_pp_sendf(data, &pop3c->pp, "%s", "CAPA");
335 if(!result)
338 return result;
351 CURLcode result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s", "STLS");
353 if(!result)
356 return result;
370 CURLcode result;
374 result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET);
375 if(result)
379 result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &ssldone);
381 if(!result) {
388 result = pop3_perform_capa(data, conn);
392 return result;
404 CURLcode result = CURLE_OK;
411 return result;
415 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "USER %s",
417 if(!result)
420 return result;
433 CURLcode result = CURLE_OK;
445 return result;
466 result = Curl_pp_sendf(data, &pop3c->pp, "APOP %s %s", conn->user, secret);
468 if(!result)
471 return result;
486 CURLcode result = CURLE_OK;
492 result = Curl_pp_sendf(data, &pop3c->pp, "AUTH %s %s", mech, ir);
496 result = Curl_pp_sendf(data, &pop3c->pp, "AUTH %s", mech);
499 return result;
546 CURLcode result = CURLE_OK;
554 return result;
559 result = Curl_sasl_start(&pop3c->sasl, data, FALSE, &progress);
561 if(!result)
566 if(!result && progress == SASL_IDLE) {
570 result = pop3_perform_apop(data, conn);
575 result = pop3_perform_user(data, conn);
579 result = CURLE_LOGIN_DENIED;
583 return result;
594 CURLcode result = CURLE_OK;
612 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s %s",
616 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s",
620 if(!result)
623 return result;
636 CURLcode result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "%s", "QUIT");
638 if(!result)
641 return result;
649 CURLcode result = CURLE_OK;
659 result = CURLE_WEIRD_SERVER_REPLY;
688 if(!result)
689 result = pop3_perform_capa(data, conn);
692 return result;
699 CURLcode result = CURLE_OK;
764 result = pop3_perform_authentication(data, conn);
767 result = pop3_perform_starttls(data, conn);
770 result = pop3_perform_authentication(data, conn);
773 result = CURLE_USE_SSL_FAILED;
777 return result;
786 CURLcode result = CURLE_OK;
796 result = CURLE_USE_SSL_FAILED;
799 result = pop3_perform_authentication(data, conn);
802 result = pop3_perform_upgrade_tls(data, conn);
804 return result;
812 CURLcode result = CURLE_OK;
819 result = Curl_sasl_continue(&pop3c->sasl, data, pop3code, &progress);
820 if(!result)
829 result = pop3_perform_apop(data, conn);
834 result = pop3_perform_user(data, conn);
837 result = CURLE_LOGIN_DENIED;
844 return result;
852 CURLcode result = CURLE_OK;
857 result = CURLE_LOGIN_DENIED;
863 return result;
871 CURLcode result = CURLE_OK;
877 result = CURLE_LOGIN_DENIED;
881 result = Curl_pp_sendf(data, &conn->proto.pop3c.pp, "PASS %s",
883 if(!result)
886 return result;
893 CURLcode result = CURLE_OK;
898 result = CURLE_LOGIN_DENIED;
904 return result;
912 CURLcode result = CURLE_OK;
949 result = Curl_pop3_write(data, Curl_dyn_ptr(&pp->recvbuf),
951 if(result)
952 return result;
966 return result;
972 CURLcode result = CURLE_OK;
990 result = Curl_pp_readresp(data, sock, pp, &pop3code, &nread);
991 if(result)
992 return result;
1000 result = pop3_state_servergreet_resp(data, pop3code, pop3c->state);
1004 result = pop3_state_capa_resp(data, pop3code, pop3c->state);
1008 result = pop3_state_starttls_resp(data, conn, pop3code, pop3c->state);
1012 result = pop3_state_auth_resp(data, pop3code, pop3c->state);
1017 result = pop3_state_apop_resp(data, pop3code, pop3c->state);
1022 result = pop3_state_user_resp(data, pop3code, pop3c->state);
1026 result = pop3_state_pass_resp(data, pop3code, pop3c->state);
1030 result = pop3_state_command_resp(data, pop3code, pop3c->state);
1042 } while(!result && pop3c->state != POP3_STOP && Curl_pp_moredata(pp));
1044 return result;
1050 CURLcode result = CURLE_OK;
1056 result = Curl_conn_connect(data, FIRSTSOCKET, FALSE, &ssldone);
1058 if(result || !pop3c->ssldone)
1059 return result;
1062 result = Curl_pp_statemach(data, &pop3c->pp, FALSE, FALSE);
1065 return result;
1072 CURLcode result = CURLE_OK;
1075 while(pop3c->state != POP3_STOP && !result)
1076 result = Curl_pp_statemach(data, &pop3c->pp, TRUE, disconnecting);
1078 return result;
1085 CURLcode result = CURLE_OK;
1090 result = CURLE_OUT_OF_MEMORY;
1092 return result;
1114 CURLcode result = CURLE_OK;
1134 result = pop3_parse_url_options(conn);
1135 if(result)
1136 return result;
1141 result = pop3_multi_statemach(data, done);
1143 return result;
1158 CURLcode result = CURLE_OK;
1168 result = status; /* use the already set error code */
1178 return result;
1192 CURLcode result = CURLE_OK;
1205 result = pop3_perform_command(data);
1206 if(result)
1207 return result;
1210 result = pop3_multi_statemach(data, dophase_done);
1216 return result;
1230 CURLcode result = CURLE_OK;
1234 result = pop3_parse_url_path(data);
1235 if(result)
1236 return result;
1239 result = pop3_parse_custom_request(data);
1240 if(result)
1241 return result;
1243 result = pop3_regular_transfer(data, done);
1245 return result;
1294 CURLcode result = pop3_multi_statemach(data, dophase_done);
1296 if(result)
1299 result = pop3_dophase_done(data, FALSE /* not connected */);
1304 return result;
1319 CURLcode result = CURLE_OK;
1332 result = pop3_perform(data, &connected, dophase_done);
1335 if(!result && *dophase_done)
1336 result = pop3_dophase_done(data, connected);
1338 return result;
1345 CURLcode result = pop3_init(data);
1346 if(result)
1347 return result;
1363 CURLcode result = CURLE_OK;
1367 while(!result && ptr && *ptr) {
1380 result = Curl_sasl_parse_url_auth_option(&pop3c->sasl,
1383 if(result && strncasecompare(value, "+APOP", ptr - value)) {
1386 result = CURLE_OK;
1390 result = CURLE_URL_MALFORMAT;
1409 return result;
1436 CURLcode result = CURLE_OK;
1442 result = Curl_urldecode(custom, 0, &pop3->custom, NULL, REJECT_CTRL);
1444 return result;
1457 CURLcode result = CURLE_OK;
1480 result = Curl_client_write(data, CLIENTWRITE_BODY, &str[last],
1483 if(result)
1484 return result;
1539 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)POP3_EOB,
1543 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)POP3_EOB,
1547 result = CURLE_OK;
1550 if(result)
1551 return result;
1563 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)POP3_EOB, 2);
1568 return result;
1576 result = Curl_client_write(data, CLIENTWRITE_BODY, &str[last],
1580 return result;