Defines | Functions | Variables
smtp.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 "smtp.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_gethostname.h"
#include "curl_sasl.h"
#include "warnless.h"
#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
Include dependency graph for smtp.c:

Go to the source code of this file.

Defines

#define smtp_to_smtps(x)   Curl_nop_stmt

Functions

CURLcode Curl_smtp_escape_eob (struct connectdata *conn, const ssize_t nread)
static CURLcode smtp_block_statemach (struct connectdata *conn)
static CURLcode smtp_connect (struct connectdata *conn, bool *done)
static CURLcode smtp_continue_auth (struct connectdata *conn, const char *resp)
static CURLcode smtp_disconnect (struct connectdata *conn, bool dead)
static CURLcode smtp_do (struct connectdata *conn, bool *done)
static CURLcode smtp_doing (struct connectdata *conn, bool *dophase_done)
static CURLcode smtp_done (struct connectdata *conn, CURLcode status, bool premature)
static CURLcode smtp_dophase_done (struct connectdata *conn, bool connected)
static bool smtp_endofresp (struct connectdata *conn, char *line, size_t len, int *resp)
static void smtp_get_message (char *buffer, char **outptr)
static int smtp_getsock (struct connectdata *conn, curl_socket_t *socks, int numsocks)
static CURLcode smtp_init (struct connectdata *conn)
static CURLcode smtp_multi_statemach (struct connectdata *conn, bool *done)
static CURLcode smtp_parse_custom_request (struct connectdata *conn)
static CURLcode smtp_parse_url_options (struct connectdata *conn)
static CURLcode smtp_parse_url_path (struct connectdata *conn)
static CURLcode smtp_perform (struct connectdata *conn, bool *connected, bool *dophase_done)
static CURLcode smtp_perform_auth (struct connectdata *conn, const char *mech, const char *initresp)
static CURLcode smtp_perform_authentication (struct connectdata *conn)
static CURLcode smtp_perform_command (struct connectdata *conn)
static CURLcode smtp_perform_ehlo (struct connectdata *conn)
static CURLcode smtp_perform_helo (struct connectdata *conn)
static CURLcode smtp_perform_mail (struct connectdata *conn)
static CURLcode smtp_perform_quit (struct connectdata *conn)
static CURLcode smtp_perform_rcpt_to (struct connectdata *conn)
static CURLcode smtp_perform_starttls (struct connectdata *conn)
static CURLcode smtp_perform_upgrade_tls (struct connectdata *conn)
static CURLcode smtp_regular_transfer (struct connectdata *conn, bool *done)
static CURLcode smtp_setup_connection (struct connectdata *conn)
static CURLcode smtp_state_auth_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_state_command_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_state_data_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_state_ehlo_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_state_helo_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_state_mail_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_state_postdata_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_state_rcpt_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_state_servergreet_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_state_starttls_resp (struct connectdata *conn, int smtpcode, smtpstate instate)
static CURLcode smtp_statemach_act (struct connectdata *conn)
static void state (struct connectdata *conn, smtpstate newstate)

Variables

struct Curl_handler Curl_handler_smtp
static struct Curl_handler Curl_handler_smtp_proxy
static struct SASLproto saslsmtp

Define Documentation

#define smtp_to_smtps (   x)    Curl_nop_stmt

Definition at line 232 of file smtp.c.


Function Documentation

CURLcode Curl_smtp_escape_eob ( struct connectdata conn,
const ssize_t  nread 
)

Definition at line 1572 of file smtp.c.

static CURLcode smtp_block_statemach ( struct connectdata conn) [static]

Definition at line 1098 of file smtp.c.

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

Definition at line 1141 of file smtp.c.

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

Definition at line 468 of file smtp.c.

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

Definition at line 1354 of file smtp.c.

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

Definition at line 1331 of file smtp.c.

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

Definition at line 1395 of file smtp.c.

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

Definition at line 1191 of file smtp.c.

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

Definition at line 1381 of file smtp.c.

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

Definition at line 243 of file smtp.c.

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

Definition at line 281 of file smtp.c.

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

Definition at line 1125 of file smtp.c.

static CURLcode smtp_init ( struct connectdata conn) [static]

Definition at line 1111 of file smtp.c.

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

Definition at line 1081 of file smtp.c.

static CURLcode smtp_parse_custom_request ( struct connectdata conn) [static]

Definition at line 1558 of file smtp.c.

static CURLcode smtp_parse_url_options ( struct connectdata conn) [static]

Definition at line 1493 of file smtp.c.

static CURLcode smtp_parse_url_path ( struct connectdata conn) [static]

Definition at line 1532 of file smtp.c.

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

Definition at line 1280 of file smtp.c.

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

Definition at line 443 of file smtp.c.

static CURLcode smtp_perform_authentication ( struct connectdata conn) [static]

Definition at line 482 of file smtp.c.

static CURLcode smtp_perform_command ( struct connectdata conn) [static]

Definition at line 518 of file smtp.c.

static CURLcode smtp_perform_ehlo ( struct connectdata conn) [static]

Definition at line 347 of file smtp.c.

static CURLcode smtp_perform_helo ( struct connectdata conn) [static]

Definition at line 373 of file smtp.c.

static CURLcode smtp_perform_mail ( struct connectdata conn) [static]

Definition at line 547 of file smtp.c.

static CURLcode smtp_perform_quit ( struct connectdata conn) [static]

Definition at line 650 of file smtp.c.

static CURLcode smtp_perform_rcpt_to ( struct connectdata conn) [static]

Definition at line 625 of file smtp.c.

static CURLcode smtp_perform_starttls ( struct connectdata conn) [static]

Definition at line 396 of file smtp.c.

static CURLcode smtp_perform_upgrade_tls ( struct connectdata conn) [static]

Definition at line 415 of file smtp.c.

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

Definition at line 1419 of file smtp.c.

static CURLcode smtp_setup_connection ( struct connectdata conn) [static]

Definition at line 1445 of file smtp.c.

static CURLcode smtp_state_auth_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 823 of file smtp.c.

static CURLcode smtp_state_command_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 852 of file smtp.c.

static CURLcode smtp_state_data_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 950 of file smtp.c.

static CURLcode smtp_state_ehlo_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 708 of file smtp.c.

static CURLcode smtp_state_helo_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 803 of file smtp.c.

static CURLcode smtp_state_mail_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 898 of file smtp.c.

static CURLcode smtp_state_postdata_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 978 of file smtp.c.

static CURLcode smtp_state_rcpt_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 918 of file smtp.c.

static CURLcode smtp_state_servergreet_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 664 of file smtp.c.

static CURLcode smtp_state_starttls_resp ( struct connectdata conn,
int  smtpcode,
smtpstate  instate 
) [static]

Definition at line 684 of file smtp.c.

static CURLcode smtp_statemach_act ( struct connectdata conn) [static]

Definition at line 995 of file smtp.c.

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

Definition at line 310 of file smtp.c.


Variable Documentation

struct SASLproto saslsmtp [static]
Initial value:
 {
  "smtp",                     
  334,                        
  235,                        
  512 - 8,                    
  smtp_perform_auth,          
  smtp_continue_auth,         
  smtp_get_message            
}

Definition at line 212 of file smtp.c.



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