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 bvremain [B64_BLOCK]
 
uint8_t bvr_len
 
uint8_t data_chunk [DATA_CHUNK_SIZE]
 
SCMd5md5_ctx
 
uint8_t md5 [SC_MD5_LEN]
 
bool has_md5
 
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 186 of file util-decode-mime.h.

Field Documentation

◆ body_begin

int MimeDecParseState::body_begin

Currently at beginning of body

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

Referenced by SMTPProcessDataChunk().

◆ body_end

int MimeDecParseState::body_end

Currently at end of body

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

◆ bvr_len

uint8_t MimeDecParseState::bvr_len

Length of remainder from base64-decoded line

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

◆ bvremain

uint8_t MimeDecParseState::bvremain[B64_BLOCK]

Remainder from base64-decoded line

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

◆ current_line_delimiter_len

uint8_t MimeDecParseState::current_line_delimiter_len

Length of line delimiter

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

◆ data

void* MimeDecParseState::data

Pointer to data specific to the caller

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

Referenced by SMTPProcessDataChunk().

◆ data_chunk

uint8_t MimeDecParseState::data_chunk[DATA_CHUNK_SIZE]

Buffer holding data chunk

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

◆ data_chunk_len

uint32_t MimeDecParseState::data_chunk_len

Length of data chunk

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

◆ DataChunkProcessorFunc

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

Data chunk processing function callback

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

◆ found_child

int MimeDecParseState::found_child

Flag indicating a child entity was found

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

◆ has_md5

bool MimeDecParseState::has_md5

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

◆ hlen

uint32_t MimeDecParseState::hlen

Length of the last known header name

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

◆ hname

uint8_t* MimeDecParseState::hname

Copy of the last known header name

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

◆ hvalue

DataValue* MimeDecParseState::hvalue

Pointer to the incomplete header value list

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

◆ hvlen

uint32_t MimeDecParseState::hvlen

Total length of value list

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

◆ md5

uint8_t MimeDecParseState::md5[SC_MD5_LEN]

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

◆ md5_ctx

SCMd5* MimeDecParseState::md5_ctx

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

◆ msg

MimeDecEntity* MimeDecParseState::msg

Pointer to the top-level message entity

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

Referenced by MimeDecInitParser(), and MimeDecParseFullMsg().

◆ stack

MimeDecStack* MimeDecParseState::stack

Pointer to the top of the entity stack

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

Referenced by MimeDecDeInitParser(), MimeDecInitParser(), and SMTPProcessDataChunk().

◆ state_flag

uint8_t MimeDecParseState::state_flag

Flag representing current state of parser

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

Referenced by MimeDecParseComplete().


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