Defines | 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.

Defines

#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

struct Curl_handler Curl_handler_pop3
static struct Curl_handler Curl_handler_pop3_proxy
static struct SASLproto saslpop3

Define Documentation

#define pop3_to_pop3s (   x)    Curl_nop_stmt

Definition at line 233 of file pop3.c.


Function Documentation

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

Definition at line 1490 of file pop3.c.

static CURLcode pop3_block_statemach ( struct connectdata conn) [static]

Definition at line 1068 of file pop3.c.

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

Definition at line 1111 of file pop3.c.

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

Definition at line 531 of file pop3.c.

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

Definition at line 1260 of file pop3.c.

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

Definition at line 1232 of file pop3.c.

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

Definition at line 1296 of file pop3.c.

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

Definition at line 1157 of file pop3.c.

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

Definition at line 1287 of file pop3.c.

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

Definition at line 245 of file pop3.c.

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

Definition at line 293 of file pop3.c.

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

Definition at line 1095 of file pop3.c.

static CURLcode pop3_init ( struct connectdata conn) [static]

Definition at line 1081 of file pop3.c.

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

Definition at line 1051 of file pop3.c.

static CURLcode pop3_parse_custom_request ( struct connectdata conn) [static]

Definition at line 1469 of file pop3.c.

static CURLcode pop3_parse_url_options ( struct connectdata conn) [static]

Definition at line 1393 of file pop3.c.

static CURLcode pop3_parse_url_path ( struct connectdata conn) [static]

Definition at line 1452 of file pop3.c.

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

Definition at line 1191 of file pop3.c.

static CURLcode pop3_perform_apop ( struct connectdata conn) [static]

Definition at line 455 of file pop3.c.

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

Definition at line 506 of file pop3.c.

static CURLcode pop3_perform_authentication ( struct connectdata conn) [static]

Definition at line 547 of file pop3.c.

static CURLcode pop3_perform_capa ( struct connectdata conn) [static]

Definition at line 357 of file pop3.c.

static CURLcode pop3_perform_command ( struct connectdata conn) [static]

Definition at line 595 of file pop3.c.

static CURLcode pop3_perform_quit ( struct connectdata conn) [static]

Definition at line 635 of file pop3.c.

static CURLcode pop3_perform_starttls ( struct connectdata conn) [static]

Definition at line 381 of file pop3.c.

static CURLcode pop3_perform_upgrade_tls ( struct connectdata conn) [static]

Definition at line 400 of file pop3.c.

static CURLcode pop3_perform_user ( struct connectdata conn) [static]

Definition at line 427 of file pop3.c.

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

Definition at line 1320 of file pop3.c.

static CURLcode pop3_setup_connection ( struct connectdata conn) [static]

Definition at line 1346 of file pop3.c.

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

Definition at line 856 of file pop3.c.

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

Definition at line 815 of file pop3.c.

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

Definition at line 701 of file pop3.c.

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

Definition at line 920 of file pop3.c.

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

Definition at line 900 of file pop3.c.

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

Definition at line 649 of file pop3.c.

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

Definition at line 791 of file pop3.c.

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

Definition at line 877 of file pop3.c.

static CURLcode pop3_statemach_act ( struct connectdata conn) [static]

Definition at line 976 of file pop3.c.

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

Definition at line 322 of file pop3.c.


Variable Documentation

struct SASLproto saslpop3 [static]
Initial value:
 {
  "pop",                      
  '*',                        
  '+',                        
  255 - 8,                    
  pop3_perform_auth,          
  pop3_continue_auth,         
  pop3_get_message            
}

Definition at line 213 of file pop3.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09