suricata
|
Structure contains the current state of the MIME parser. More...
#include <util-decode-mime.h>
Data Fields | |
MimeDecEntity * | msg |
MimeDecStack * | stack |
uint8_t * | hname |
uint32_t | hlen |
uint32_t | hvlen |
DataValue * | hvalue |
uint8_t | bvremain [B64_BLOCK] |
uint8_t | bvr_len |
uint8_t | data_chunk [DATA_CHUNK_SIZE] |
SCMd5 * | md5_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) |
Structure contains the current state of the MIME parser.
Definition at line 185 of file util-decode-mime.h.
int MimeDecParseState::body_begin |
Currently at beginning of body
Definition at line 201 of file util-decode-mime.h.
Referenced by SMTPProcessDataChunk().
int MimeDecParseState::body_end |
Currently at end of body
Definition at line 202 of file util-decode-mime.h.
uint8_t MimeDecParseState::bvr_len |
Length of remainder from base64-decoded line
Definition at line 193 of file util-decode-mime.h.
uint8_t MimeDecParseState::bvremain[B64_BLOCK] |
Remainder from base64-decoded line
Definition at line 192 of file util-decode-mime.h.
uint8_t MimeDecParseState::current_line_delimiter_len |
Length of line delimiter
Definition at line 203 of file util-decode-mime.h.
void* MimeDecParseState::data |
Pointer to data specific to the caller
Definition at line 204 of file util-decode-mime.h.
Referenced by SMTPProcessDataChunk().
uint8_t MimeDecParseState::data_chunk[DATA_CHUNK_SIZE] |
Buffer holding data chunk
Definition at line 194 of file util-decode-mime.h.
uint32_t MimeDecParseState::data_chunk_len |
Length of data chunk
Definition at line 199 of file util-decode-mime.h.
int(* MimeDecParseState::DataChunkProcessorFunc) (const uint8_t *chunk, uint32_t len, struct MimeDecParseState *state) |
Data chunk processing function callback
Definition at line 205 of file util-decode-mime.h.
int MimeDecParseState::found_child |
Flag indicating a child entity was found
Definition at line 200 of file util-decode-mime.h.
bool MimeDecParseState::has_md5 |
Definition at line 197 of file util-decode-mime.h.
uint32_t MimeDecParseState::hlen |
Length of the last known header name
Definition at line 189 of file util-decode-mime.h.
uint8_t* MimeDecParseState::hname |
Copy of the last known header name
Definition at line 188 of file util-decode-mime.h.
DataValue* MimeDecParseState::hvalue |
Pointer to the incomplete header value list
Definition at line 191 of file util-decode-mime.h.
uint32_t MimeDecParseState::hvlen |
Total length of value list
Definition at line 190 of file util-decode-mime.h.
uint8_t MimeDecParseState::md5[SC_MD5_LEN] |
Definition at line 196 of file util-decode-mime.h.
SCMd5* MimeDecParseState::md5_ctx |
Definition at line 195 of file util-decode-mime.h.
MimeDecEntity* MimeDecParseState::msg |
Pointer to the top-level message entity
Definition at line 186 of file util-decode-mime.h.
Referenced by MimeDecInitParser(), and MimeDecParseFullMsg().
MimeDecStack* MimeDecParseState::stack |
Pointer to the top of the entity stack
Definition at line 187 of file util-decode-mime.h.
Referenced by MimeDecInitParser(), and SMTPProcessDataChunk().
uint8_t MimeDecParseState::state_flag |
Flag representing current state of parser
Definition at line 198 of file util-decode-mime.h.
Referenced by MimeDecParseComplete().