Macros | Functions | Variables
pop3.c File Reference
#include "curl_setup.h"
#include <curl/curl.h>
#include "urldata.h"
#include "sendf.h"
#include "hostip.h"
#include "progress.h"
#include "transfer.h"
#include "escape.h"
#include "http.h"
#include "socks.h"
#include "pop3.h"
#include "strtoofft.h"
#include "strcase.h"
#include "vtls/vtls.h"
#include "connect.h"
#include "strerror.h"
#include "select.h"
#include "multiif.h"
#include "url.h"
#include "curl_sasl.h"
#include "curl_md5.h"
#include "warnless.h"
#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
Include dependency graph for pop3.c:

Go to the source code of this file.

Macros

#define pop3_to_pop3s(x)   Curl_nop_stmt
 

Functions

CURLcode Curl_pop3_write (struct connectdata *conn, char *str, size_t nread)
 
static CURLcode pop3_block_statemach (struct connectdata *conn)
 
static CURLcode pop3_connect (struct connectdata *conn, bool *done)
 
static CURLcode pop3_continue_auth (struct connectdata *conn, const char *resp)
 
static CURLcode pop3_disconnect (struct connectdata *conn, bool dead)
 
static CURLcode pop3_do (struct connectdata *conn, bool *done)
 
static CURLcode pop3_doing (struct connectdata *conn, bool *dophase_done)
 
static CURLcode pop3_done (struct connectdata *conn, CURLcode status, bool premature)
 
static CURLcode pop3_dophase_done (struct connectdata *conn, bool connected)
 
static bool pop3_endofresp (struct connectdata *conn, char *line, size_t len, int *resp)
 
static void pop3_get_message (char *buffer, char **outptr)
 
static int pop3_getsock (struct connectdata *conn, curl_socket_t *socks, int numsocks)
 
static CURLcode pop3_init (struct connectdata *conn)
 
static CURLcode pop3_multi_statemach (struct connectdata *conn, bool *done)
 
static CURLcode pop3_parse_custom_request (struct connectdata *conn)
 
static CURLcode pop3_parse_url_options (struct connectdata *conn)
 
static CURLcode pop3_parse_url_path (struct connectdata *conn)
 
static CURLcode pop3_perform (struct connectdata *conn, bool *connected, bool *dophase_done)
 
static CURLcode pop3_perform_apop (struct connectdata *conn)
 
static CURLcode pop3_perform_auth (struct connectdata *conn, const char *mech, const char *initresp)
 
static CURLcode pop3_perform_authentication (struct connectdata *conn)
 
static CURLcode pop3_perform_capa (struct connectdata *conn)
 
static CURLcode pop3_perform_command (struct connectdata *conn)
 
static CURLcode pop3_perform_quit (struct connectdata *conn)
 
static CURLcode pop3_perform_starttls (struct connectdata *conn)
 
static CURLcode pop3_perform_upgrade_tls (struct connectdata *conn)
 
static CURLcode pop3_perform_user (struct connectdata *conn)
 
static CURLcode pop3_regular_transfer (struct connectdata *conn, bool *done)
 
static CURLcode pop3_setup_connection (struct connectdata *conn)
 
static CURLcode pop3_state_apop_resp (struct connectdata *conn, int pop3code, pop3state instate)
 
static CURLcode pop3_state_auth_resp (struct connectdata *conn, int pop3code, pop3state instate)
 
static CURLcode pop3_state_capa_resp (struct connectdata *conn, int pop3code, pop3state instate)
 
static CURLcode pop3_state_command_resp (struct connectdata *conn, int pop3code, pop3state instate)
 
static CURLcode pop3_state_pass_resp (struct connectdata *conn, int pop3code, pop3state instate)
 
static CURLcode pop3_state_servergreet_resp (struct connectdata *conn, int pop3code, pop3state instate)
 
static CURLcode pop3_state_starttls_resp (struct connectdata *conn, int pop3code, pop3state instate)
 
static CURLcode pop3_state_user_resp (struct connectdata *conn, int pop3code, pop3state instate)
 
static CURLcode pop3_statemach_act (struct connectdata *conn)
 
static void state (struct connectdata *conn, pop3state newstate)
 

Variables

const struct Curl_handler Curl_handler_pop3
 
static const struct SASLproto saslpop3
 

Macro Definition Documentation

#define pop3_to_pop3s (   x)    Curl_nop_stmt

Definition at line 184 of file pop3.c.

Function Documentation

CURLcode Curl_pop3_write ( struct connectdata conn,
char *  str,
size_t  nread 
)

Definition at line 1416 of file pop3.c.

static CURLcode pop3_block_statemach ( struct connectdata conn)
static

Definition at line 1019 of file pop3.c.

static CURLcode pop3_connect ( struct connectdata conn,
bool done 
)
static

Definition at line 1062 of file pop3.c.

static CURLcode pop3_continue_auth ( struct connectdata conn,
const char *  resp 
)
static

Definition at line 482 of file pop3.c.

static CURLcode pop3_disconnect ( struct connectdata conn,
bool  dead 
)
static

Definition at line 1211 of file pop3.c.

static CURLcode pop3_do ( struct connectdata conn,
bool done 
)
static

Definition at line 1183 of file pop3.c.

static CURLcode pop3_doing ( struct connectdata conn,
bool dophase_done 
)
static

Definition at line 1247 of file pop3.c.

static CURLcode pop3_done ( struct connectdata conn,
CURLcode  status,
bool  premature 
)
static

Definition at line 1108 of file pop3.c.

static CURLcode pop3_dophase_done ( struct connectdata conn,
bool  connected 
)
static

Definition at line 1238 of file pop3.c.

static bool pop3_endofresp ( struct connectdata conn,
char *  line,
size_t  len,
int *  resp 
)
static

Definition at line 196 of file pop3.c.

static void pop3_get_message ( char *  buffer,
char **  outptr 
)
static

Definition at line 244 of file pop3.c.

static int pop3_getsock ( struct connectdata conn,
curl_socket_t socks,
int  numsocks 
)
static

Definition at line 1046 of file pop3.c.

static CURLcode pop3_init ( struct connectdata conn)
static

Definition at line 1032 of file pop3.c.

static CURLcode pop3_multi_statemach ( struct connectdata conn,
bool done 
)
static

Definition at line 1002 of file pop3.c.

static CURLcode pop3_parse_custom_request ( struct connectdata conn)
static

Definition at line 1395 of file pop3.c.

static CURLcode pop3_parse_url_options ( struct connectdata conn)
static

Definition at line 1319 of file pop3.c.

static CURLcode pop3_parse_url_path ( struct connectdata conn)
static

Definition at line 1378 of file pop3.c.

static CURLcode pop3_perform ( struct connectdata conn,
bool connected,
bool dophase_done 
)
static

Definition at line 1142 of file pop3.c.

static CURLcode pop3_perform_apop ( struct connectdata conn)
static

Definition at line 406 of file pop3.c.

static CURLcode pop3_perform_auth ( struct connectdata conn,
const char *  mech,
const char *  initresp 
)
static

Definition at line 457 of file pop3.c.

static CURLcode pop3_perform_authentication ( struct connectdata conn)
static

Definition at line 498 of file pop3.c.

static CURLcode pop3_perform_capa ( struct connectdata conn)
static

Definition at line 308 of file pop3.c.

static CURLcode pop3_perform_command ( struct connectdata conn)
static

Definition at line 546 of file pop3.c.

static CURLcode pop3_perform_quit ( struct connectdata conn)
static

Definition at line 586 of file pop3.c.

static CURLcode pop3_perform_starttls ( struct connectdata conn)
static

Definition at line 332 of file pop3.c.

static CURLcode pop3_perform_upgrade_tls ( struct connectdata conn)
static

Definition at line 351 of file pop3.c.

static CURLcode pop3_perform_user ( struct connectdata conn)
static

Definition at line 378 of file pop3.c.

static CURLcode pop3_regular_transfer ( struct connectdata conn,
bool done 
)
static

Definition at line 1271 of file pop3.c.

static CURLcode pop3_setup_connection ( struct connectdata conn)
static

Definition at line 1297 of file pop3.c.

static CURLcode pop3_state_apop_resp ( struct connectdata conn,
int  pop3code,
pop3state  instate 
)
static

Definition at line 807 of file pop3.c.

static CURLcode pop3_state_auth_resp ( struct connectdata conn,
int  pop3code,
pop3state  instate 
)
static

Definition at line 766 of file pop3.c.

static CURLcode pop3_state_capa_resp ( struct connectdata conn,
int  pop3code,
pop3state  instate 
)
static

Definition at line 652 of file pop3.c.

static CURLcode pop3_state_command_resp ( struct connectdata conn,
int  pop3code,
pop3state  instate 
)
static

Definition at line 871 of file pop3.c.

static CURLcode pop3_state_pass_resp ( struct connectdata conn,
int  pop3code,
pop3state  instate 
)
static

Definition at line 851 of file pop3.c.

static CURLcode pop3_state_servergreet_resp ( struct connectdata conn,
int  pop3code,
pop3state  instate 
)
static

Definition at line 600 of file pop3.c.

static CURLcode pop3_state_starttls_resp ( struct connectdata conn,
int  pop3code,
pop3state  instate 
)
static

Definition at line 742 of file pop3.c.

static CURLcode pop3_state_user_resp ( struct connectdata conn,
int  pop3code,
pop3state  instate 
)
static

Definition at line 828 of file pop3.c.

static CURLcode pop3_statemach_act ( struct connectdata conn)
static

Definition at line 927 of file pop3.c.

static void state ( struct connectdata conn,
pop3state  newstate 
)
static

Definition at line 273 of file pop3.c.

Variable Documentation

const struct Curl_handler Curl_handler_pop3
Initial value:
= {
"POP3",
}
static CURLcode pop3_done(struct connectdata *conn, CURLcode status, bool premature)
Definition: pop3.c:1108
static CURLcode pop3_multi_statemach(struct connectdata *conn, bool *done)
Definition: pop3.c:1002
#define PROTOPT_NOURLQUERY
Definition: urldata.h:711
#define ZERO_NULL
Definition: curlx.c:131
static CURLcode pop3_connect(struct connectdata *conn, bool *done)
Definition: pop3.c:1062
static CURLcode pop3_doing(struct connectdata *conn, bool *dophase_done)
Definition: pop3.c:1247
#define PORT_POP3
Definition: urldata.h:41
static CURLcode pop3_setup_connection(struct connectdata *conn)
Definition: pop3.c:1297
static CURLcode pop3_do(struct connectdata *conn, bool *done)
Definition: pop3.c:1183
static int pop3_getsock(struct connectdata *conn, curl_socket_t *socks, int numsocks)
Definition: pop3.c:1046
#define PROTOPT_URLOPTIONS
Definition: urldata.h:717
static CURLcode pop3_disconnect(struct connectdata *conn, bool dead)
Definition: pop3.c:1211
#define CURLPROTO_POP3
Definition: curl.h:858
#define PROTOPT_CLOSEACTION
Definition: urldata.h:702

Definition at line 113 of file pop3.c.

const struct SASLproto saslpop3
static
Initial value:
= {
"pop",
'*',
'+',
255 - 8,
}
static CURLcode pop3_perform_auth(struct connectdata *conn, const char *mech, const char *initresp)
Definition: pop3.c:457
static void pop3_get_message(char *buffer, char **outptr)
Definition: pop3.c:244
static CURLcode pop3_continue_auth(struct connectdata *conn, const char *resp)
Definition: pop3.c:482

Definition at line 164 of file pop3.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17