suricata
MimeDecParseState Struct Reference

Structure contains the current state of the MIME parser. More...

#include <util-decode-mime.h>

Collaboration diagram for MimeDecParseState:

Data Fields

MimeDecEntitymsg
 
MimeDecStackstack
 
uint8_t * hname
 
uint32_t hlen
 
uint32_t hvlen
 
DataValuehvalue
 
uint8_t linerem [LINEREM_SIZE]
 
uint16_t linerem_len
 
uint8_t bvremain [B64_BLOCK]
 
uint8_t bvr_len
 
uint8_t data_chunk [DATA_CHUNK_SIZE]
 
uint8_t state_flag
 
uint32_t data_chunk_len
 
int found_child
 
int body_begin
 
int body_end
 
uint8_t current_line_delimiter_len
 
void * data
 
int(* DataChunkProcessorFunc )(const uint8_t *chunk, uint32_t len, struct MimeDecParseState *state)
 

Detailed Description

Structure contains the current state of the MIME parser.

Definition at line 187 of file util-decode-mime.h.

Field Documentation

int MimeDecParseState::body_begin

Currently at beginning of body

Definition at line 206 of file util-decode-mime.h.

Referenced by MimeDecAddEntity(), MimeDecParseFullMsg(), SMTPParserCleanup(), and SMTPProcessDataChunk().

int MimeDecParseState::body_end

Currently at end of body

Definition at line 207 of file util-decode-mime.h.

Referenced by MimeDecAddEntity(), MimeDecParseFullMsg(), SMTPParserCleanup(), and SMTPProcessDataChunk().

uint8_t MimeDecParseState::bvr_len

Length of remainder from base64-decoded line

Definition at line 197 of file util-decode-mime.h.

Referenced by MimeDecAddEntity().

uint8_t MimeDecParseState::bvremain[B64_BLOCK]

Remainder from base64-decoded line

Definition at line 196 of file util-decode-mime.h.

Referenced by MimeDecAddEntity().

uint8_t MimeDecParseState::current_line_delimiter_len

Length of line delimiter

Definition at line 208 of file util-decode-mime.h.

Referenced by MimeDecAddEntity(), MimeDecParseFullMsg(), and MimeDecParseLine().

void* MimeDecParseState::data

Pointer to data specific to the caller

Definition at line 209 of file util-decode-mime.h.

Referenced by LiveDeviceListClean(), MimeDecInitParser(), MimeDecParseFullMsg(), SMTPParserCleanup(), and SMTPProcessDataChunk().

uint8_t MimeDecParseState::data_chunk[DATA_CHUNK_SIZE]

Buffer holding data chunk

Definition at line 198 of file util-decode-mime.h.

Referenced by MimeDecAddEntity().

uint32_t MimeDecParseState::data_chunk_len

Length of data chunk

Definition at line 204 of file util-decode-mime.h.

Referenced by MimeDecAddEntity().

int(* MimeDecParseState::DataChunkProcessorFunc) (const uint8_t *chunk, uint32_t len, struct MimeDecParseState *state)

Data chunk processing function callback

Definition at line 210 of file util-decode-mime.h.

Referenced by MimeDecAddEntity(), and MimeDecInitParser().

int MimeDecParseState::found_child

Flag indicating a child entity was found

Definition at line 205 of file util-decode-mime.h.

Referenced by MimeDecAddEntity().

uint32_t MimeDecParseState::hlen

Length of the last known header name

Definition at line 191 of file util-decode-mime.h.

Referenced by MimeDecAddEntity().

uint8_t* MimeDecParseState::hname

Copy of the last known header name

Definition at line 190 of file util-decode-mime.h.

Referenced by MimeDecAddEntity(), and MimeDecDeInitParser().

DataValue* MimeDecParseState::hvalue

Pointer to the incomplete header value list

Definition at line 193 of file util-decode-mime.h.

Referenced by MimeDecAddEntity(), and MimeDecDeInitParser().

uint32_t MimeDecParseState::hvlen

Total length of value list

Definition at line 192 of file util-decode-mime.h.

Referenced by MimeDecAddEntity().

uint8_t MimeDecParseState::linerem[LINEREM_SIZE]

Remainder from previous line (for URL extraction)

Definition at line 194 of file util-decode-mime.h.

uint16_t MimeDecParseState::linerem_len

Length of remainder from previous line

Definition at line 195 of file util-decode-mime.h.

Referenced by MimeDecAddEntity().

MimeDecEntity* MimeDecParseState::msg
MimeDecStack* MimeDecParseState::stack
uint8_t MimeDecParseState::state_flag

Flag representing current state of parser

Definition at line 203 of file util-decode-mime.h.

Referenced by MimeDecAddEntity(), MimeDecInitParser(), MimeDecParseComplete(), MimeDecParseLine(), MimeDecParseStateGetStatus(), and SMTPProcessDataChunk().


The documentation for this struct was generated from the following file: