"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mime/file_mime_process.h" between
snort3-3.1.31.0.tar.gz and snort3-3.1.32.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

file_mime_process.h  (snort3-3.1.31.0):file_mime_process.h  (snort3-3.1.32.0)
skipping to change at line 102 skipping to change at line 102
MimeDataPafInfo mime_boundary; MimeDataPafInfo mime_boundary;
const DecodeConfig* decode_conf = nullptr; const DecodeConfig* decode_conf = nullptr;
MailLogConfig* log_config = nullptr; MailLogConfig* log_config = nullptr;
MailLogState* log_state = nullptr; MailLogState* log_state = nullptr;
MimeStats* mime_stats = nullptr; MimeStats* mime_stats = nullptr;
FilenameState filename_state = CONT_DISP_FILENAME_PARAM_NAME; FilenameState filename_state = CONT_DISP_FILENAME_PARAM_NAME;
std::string filename; std::string filename;
bool continue_inspecting_file = true; bool continue_inspecting_file = true;
// This counter is not an accurate count of files; used only for creating a unique mime_file_id // This counter is not an accurate count of files; used only for creating a unique mime_file_id
uint32_t file_counter = 0; uint32_t file_counter = 0;
uint32_t file_process_offset = 0; uint32_t file_offset = 0;
uint64_t session_base_file_id = 0; uint64_t session_base_file_id = 0;
uint64_t current_file_cache_file_id = 0; uint64_t current_file_cache_file_id = 0;
uint64_t current_multiprocessing_file_id = 0; uint64_t current_multiprocessing_file_id = 0;
const uint8_t* uri; const uint8_t* uri;
const int32_t uri_length; const int32_t uri_length;
uint64_t get_file_cache_file_id(); uint64_t get_file_cache_file_id();
uint64_t get_multiprocessing_file_id(); uint64_t get_multiprocessing_file_id();
void mime_file_process(Packet* p, const uint8_t* data, int data_size, void mime_file_process(Packet* p, const uint8_t* data, int data_size,
FilePosition position, bool upload); FilePosition position, bool upload);
void reset_part_state(); void reset_part_state();
// SMTP, IMAP, POP might have different implementation for this // Individual service inspectors may have different implementations for thes e
virtual int handle_header_line(const uint8_t*, const uint8_t*, int, Packet*) { return 0; } virtual int handle_header_line(const uint8_t*, const uint8_t*, int, Packet*) { return 0; }
virtual int normalize_data(const uint8_t*, const uint8_t*, Packet*) { return 0; } virtual int normalize_data(const uint8_t*, const uint8_t*, Packet*) { return 0; }
virtual void decode_alert() { } virtual void decode_alert() { }
virtual void decompress_alert() { } virtual void decompress_alert() { }
virtual void reset_state(Flow*) { } virtual void reset_state(Flow*) { }
virtual bool is_end_of_data(Flow*) { return false; } virtual bool is_end_of_data(Flow*) { return false; }
void reset_mime_state(); void reset_mime_state();
void setup_attachment_processing(); void setup_attachment_processing();
const uint8_t* process_mime_header(Packet*, const uint8_t* ptr, const uint8_ t* data_end_marker); const uint8_t* process_mime_header(Packet*, const uint8_t* ptr, const uint8_ t* data_end_marker);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)