• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/lib/

Lines Matching refs:pop3c

238   struct pop3_conn *pop3c = &conn->proto.pop3c;
248 if(pop3c->state == POP3_CAPA) {
306 struct pop3_conn *pop3c = &conn->proto.pop3c;
334 if(pop3c->state != newstate)
336 (void *)pop3c, names[pop3c->state], names[newstate]);
339 pop3c->state = newstate;
352 struct pop3_conn *pop3c = &conn->proto.pop3c;
354 pop3c->authmechs = 0; /* No known authentication mechanisms yet */
355 pop3c->authused = 0; /* Clear the authentication mechanism used */
356 pop3c->tls_supported = FALSE; /* Clear the TLS capability */
359 result = Curl_pp_sendf(&pop3c->pp, "%s", "CAPA");
378 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", "STLS");
395 struct pop3_conn *pop3c = &conn->proto.pop3c;
398 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &pop3c->ssldone);
401 if(pop3c->state != POP3_UPGRADETLS)
404 if(pop3c->ssldone) {
432 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "USER %s",
450 struct pop3_conn *pop3c = &conn->proto.pop3c;
469 Curl_MD5_update(ctxt, (const unsigned char *) pop3c->apoptimestamp,
470 curlx_uztoui(strlen(pop3c->apoptimestamp)));
482 result = Curl_pp_sendf(&pop3c->pp, "APOP %s %s", conn->user, secret);
504 struct pop3_conn *pop3c = &conn->proto.pop3c;
508 result = Curl_pp_sendf(&pop3c->pp, "AUTH %s %s", mech, initresp);
515 result = Curl_pp_sendf(&pop3c->pp, "AUTH %s", mech);
535 struct pop3_conn *pop3c = &conn->proto.pop3c;
551 if(pop3c->authtypes & POP3_TYPE_SASL)
556 if(mech && (pop3c->preftype & POP3_TYPE_SASL)) {
563 else if((pop3c->authtypes & POP3_TYPE_APOP) &&
564 (pop3c->preftype & POP3_TYPE_APOP))
568 else if((pop3c->authtypes & POP3_TYPE_CLEARTEXT) &&
569 (pop3c->preftype & POP3_TYPE_CLEARTEXT))
608 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s %s",
612 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s",
633 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", "QUIT");
648 struct pop3_conn *pop3c = &conn->proto.pop3c;
671 pop3c->apoptimestamp = (char *)calloc(1, timestamplen + 1);
673 if(!pop3c->apoptimestamp)
677 memcpy(pop3c->apoptimestamp, line + i, timestamplen);
678 pop3c->apoptimestamp[timestamplen] = '\0';
681 pop3c->authtypes |= POP3_TYPE_APOP;
699 struct pop3_conn *pop3c = &conn->proto.pop3c;
710 pop3c->tls_supported = TRUE;
714 pop3c->authtypes |= POP3_TYPE_CLEARTEXT;
718 pop3c->authtypes |= POP3_TYPE_SASL;
745 pop3c->authmechs |= SASL_MECH_LOGIN;
747 pop3c->authmechs |= SASL_MECH_PLAIN;
749 pop3c->authmechs |= SASL_MECH_CRAM_MD5;
751 pop3c->authmechs |= SASL_MECH_DIGEST_MD5;
753 pop3c->authmechs |= SASL_MECH_GSSAPI;
755 pop3c->authmechs |= SASL_MECH_EXTERNAL;
757 pop3c->authmechs |= SASL_MECH_NTLM;
759 pop3c->authmechs |= SASL_MECH_XOAUTH2;
769 if(pop3c->tls_supported)
785 pop3c->authtypes |= POP3_TYPE_CLEARTEXT;
839 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", plainauth);
873 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", authuser);
907 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", authpasswd);
946 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", "*");
957 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", rplyb64);
1001 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", "*");
1013 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", rplyb64);
1041 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", "");
1075 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", type1msg);
1112 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", "*");
1124 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", type3msg);
1160 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "%s", xoauth);
1179 struct pop3_conn *pop3c = &conn->proto.pop3c;
1190 pop3c->authmechs ^= pop3c->authused;
1206 else if((pop3c->authtypes & POP3_TYPE_APOP) &&
1207 (pop3c->preftype & POP3_TYPE_APOP))
1211 else if((pop3c->authtypes & POP3_TYPE_CLEARTEXT) &&
1212 (pop3c->preftype & POP3_TYPE_CLEARTEXT))
1283 result = Curl_pp_sendf(&conn->proto.pop3c.pp, "PASS %s",
1319 struct pop3_conn *pop3c = &conn->proto.pop3c;
1320 struct pingpong *pp = &pop3c->pp;
1333 pop3c->eob = 2;
1337 pop3c->strip = 2;
1373 struct pop3_conn *pop3c = &conn->proto.pop3c;
1374 struct pingpong *pp = &pop3c->pp;
1378 if(pop3c->state == POP3_UPGRADETLS)
1395 switch(pop3c->state) {
1397 result = pop3_state_servergreet_resp(conn, pop3code, pop3c->state);
1401 result = pop3_state_capa_resp(conn, pop3code, pop3c->state);
1405 result = pop3_state_starttls_resp(conn, pop3code, pop3c->state);
1409 result = pop3_state_auth_plain_resp(conn, pop3code, pop3c->state);
1413 result = pop3_state_auth_login_resp(conn, pop3code, pop3c->state);
1418 pop3c->state);
1423 result = pop3_state_auth_cram_resp(conn, pop3code, pop3c->state);
1427 result = pop3_state_auth_digest_resp(conn, pop3code, pop3c->state);
1431 result = pop3_state_auth_digest_resp_resp(conn, pop3code, pop3c->state);
1437 result = pop3_state_auth_ntlm_resp(conn, pop3code, pop3c->state);
1442 pop3c->state);
1447 result = pop3_state_auth_xoauth2_resp(conn, pop3code, pop3c->state);
1451 result = pop3_state_auth_cancel_resp(conn, pop3code, pop3c->state);
1455 result = pop3_state_auth_final_resp(conn, pop3code, pop3c->state);
1460 result = pop3_state_apop_resp(conn, pop3code, pop3c->state);
1465 result = pop3_state_user_resp(conn, pop3code, pop3c->state);
1469 result = pop3_state_pass_resp(conn, pop3code, pop3c->state);
1473 result = pop3_state_command_resp(conn, pop3code, pop3c->state);
1483 } while(!result && pop3c->state != POP3_STOP && Curl_pp_moredata(pp));
1492 struct pop3_conn *pop3c = &conn->proto.pop3c;
1494 if((conn->handler->flags & PROTOPT_SSL) && !pop3c->ssldone) {
1495 result = Curl_ssl_connect_nonblocking(conn, FIRSTSOCKET, &pop3c->ssldone);
1496 if(result || !pop3c->ssldone)
1500 result = Curl_pp_statemach(&pop3c->pp, FALSE);
1501 *done = (pop3c->state == POP3_STOP) ? TRUE : FALSE;
1509 struct pop3_conn *pop3c = &conn->proto.pop3c;
1511 while(pop3c->state != POP3_STOP && !result)
1512 result = Curl_pp_statemach(&pop3c->pp, TRUE);
1536 return Curl_pp_getsock(&conn->proto.pop3c.pp, socks, numsocks);
1552 struct pop3_conn *pop3c = &conn->proto.pop3c;
1553 struct pingpong *pp = &pop3c->pp;
1567 pop3c->preftype = POP3_TYPE_ANY;
1568 pop3c->prefmech = SASL_AUTH_ANY;
1704 struct pop3_conn *pop3c = &conn->proto.pop3c;
1712 if(!dead_connection && pop3c->pp.conn && pop3c->pp.conn->bits.protoconnstart)
1717 Curl_pp_disconnect(&pop3c->pp);
1720 Curl_sasl_cleanup(conn, pop3c->authused);
1723 Curl_safefree(pop3c->apoptimestamp);
1834 struct pop3_conn *pop3c = &conn->proto.pop3c;
1851 pop3c->preftype = POP3_TYPE_NONE;
1852 pop3c->prefmech = SASL_AUTH_NONE;
1861 pop3c->preftype = POP3_TYPE_ANY;
1862 pop3c->prefmech = SASL_AUTH_ANY;
1865 pop3c->preftype = POP3_TYPE_APOP;
1866 pop3c->prefmech = SASL_AUTH_NONE;
1869 pop3c->preftype = POP3_TYPE_SASL;
1870 pop3c->prefmech |= SASL_MECH_LOGIN;
1873 pop3c->preftype = POP3_TYPE_SASL;
1874 pop3c->prefmech |= SASL_MECH_PLAIN;
1877 pop3c->preftype = POP3_TYPE_SASL;
1878 pop3c->prefmech |= SASL_MECH_CRAM_MD5;
1881 pop3c->preftype = POP3_TYPE_SASL;
1882 pop3c->prefmech |= SASL_MECH_DIGEST_MD5;
1885 pop3c->preftype = POP3_TYPE_SASL;
1886 pop3c->prefmech |= SASL_MECH_GSSAPI;
1889 pop3c->preftype = POP3_TYPE_SASL;
1890 pop3c->prefmech |= SASL_MECH_NTLM;
1893 pop3c->preftype = POP3_TYPE_SASL;
1894 pop3c->prefmech |= SASL_MECH_XOAUTH2;
1957 struct pop3_conn *pop3c = &conn->proto.pop3c;
1962 if((pop3c->authmechs & SASL_MECH_DIGEST_MD5) &&
1963 (pop3c->prefmech & SASL_MECH_DIGEST_MD5)) {
1966 pop3c->authused = SASL_MECH_DIGEST_MD5;
1968 else if((pop3c->authmechs & SASL_MECH_CRAM_MD5) &&
1969 (pop3c->prefmech & SASL_MECH_CRAM_MD5)) {
1972 pop3c->authused = SASL_MECH_CRAM_MD5;
1977 if((pop3c->authmechs & SASL_MECH_NTLM) &&
1978 (pop3c->prefmech & SASL_MECH_NTLM)) {
1982 pop3c->authused = SASL_MECH_NTLM;
1991 if(((pop3c->authmechs & SASL_MECH_XOAUTH2) &&
1992 (pop3c->prefmech & SASL_MECH_XOAUTH2) &&
1993 (pop3c->prefmech != SASL_AUTH_ANY)) || conn->xoauth2_bearer) {
1997 pop3c->authused = SASL_MECH_XOAUTH2;
2004 else if((pop3c->authmechs & SASL_MECH_LOGIN) &&
2005 (pop3c->prefmech & SASL_MECH_LOGIN)) {
2009 pop3c->authused = SASL_MECH_LOGIN;
2014 else if((pop3c->authmechs & SASL_MECH_PLAIN) &&
2015 (pop3c->prefmech & SASL_MECH_PLAIN)) {
2019 pop3c->authused = SASL_MECH_PLAIN;
2043 struct pop3_conn *pop3c = &conn->proto.pop3c;
2054 size_t prev = pop3c->eob;
2058 if(pop3c->eob == 0) {
2059 pop3c->eob++;
2072 else if(pop3c->eob == 3)
2073 pop3c->eob++;
2077 pop3c->eob = 1;
2081 if(pop3c->eob == 1 || pop3c->eob == 4)
2082 pop3c->eob++;
2086 pop3c->eob = 0;
2090 if(pop3c->eob == 2)
2091 pop3c->eob++;
2092 else if(pop3c->eob == 3) {
2095 pop3c->eob = 0;
2100 pop3c->eob = 0;
2104 pop3c->eob = 0;
2109 if(prev && prev >= pop3c->eob) {
2113 while(prev && pop3c->strip) {
2115 pop3c->strip--;
2133 if(pop3c->eob == POP3_EOB_LEN) {
2140 pop3c->eob = 0;
2145 if(pop3c->eob)