"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http2_inspect/http2_hpack.cc" between
snort3-3.1.29.0.tar.gz and snort3-3.1.30.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.

http2_hpack.cc  (snort3-3.1.29.0):http2_hpack.cc  (snort3-3.1.30.0)
skipping to change at line 33 skipping to change at line 33
#include "http2_hpack.h" #include "http2_hpack.h"
#include "service_inspectors/http_inspect/http_field.h" #include "service_inspectors/http_inspect/http_field.h"
#include "service_inspectors/http_inspect/http_test_manager.h" #include "service_inspectors/http_inspect/http_test_manager.h"
#include "http2_enum.h" #include "http2_enum.h"
#include "http2_flow_data.h" #include "http2_flow_data.h"
#include "http2_start_line.h" #include "http2_start_line.h"
using namespace HttpCommon;
using namespace Http2Enums; using namespace Http2Enums;
#include "http2_varlen_int_decode_impl.h"
#include "http2_varlen_string_decode_impl.h"
using namespace HttpCommon;
Http2HpackIntDecode Http2HpackDecoder::decode_int7(7); Http2HpackIntDecode Http2HpackDecoder::decode_int7(7);
Http2HpackIntDecode Http2HpackDecoder::decode_int6(6); Http2HpackIntDecode Http2HpackDecoder::decode_int6(6);
Http2HpackIntDecode Http2HpackDecoder::decode_int5(5); Http2HpackIntDecode Http2HpackDecoder::decode_int5(5);
Http2HpackIntDecode Http2HpackDecoder::decode_int4(4); Http2HpackIntDecode Http2HpackDecoder::decode_int4(4);
Http2HpackStringDecode Http2HpackDecoder::decode_string; Http2HpackStringDecode Http2HpackDecoder::decode_string;
bool Http2HpackDecoder::write_decoded_headers(const uint8_t* in_buffer, const ui nt32_t in_length, bool Http2HpackDecoder::write_decoded_headers(const uint8_t* in_buffer, const ui nt32_t in_length,
uint8_t* decoded_header_buffer, uint32_t decoded_header_length, uint32_t& by tes_written) uint8_t* decoded_header_buffer, uint32_t decoded_header_length, uint32_t& by tes_written)
{ {
skipping to change at line 69 skipping to change at line 72
} }
bool Http2HpackDecoder::decode_string_literal(const uint8_t* encoded_header_buff er, bool Http2HpackDecoder::decode_string_literal(const uint8_t* encoded_header_buff er,
const uint32_t encoded_header_length, uint32_t& bytes_consumed, const uint32_t encoded_header_length, uint32_t& bytes_consumed,
uint8_t* decoded_header_buffer, const uint32_t decoded_header_length, uint8_t* decoded_header_buffer, const uint32_t decoded_header_length,
uint32_t& bytes_written, Field& field) uint32_t& bytes_written, Field& field)
{ {
bytes_written = 0; bytes_written = 0;
bytes_consumed = 0; bytes_consumed = 0;
if (!decode_string.translate(encoded_header_buffer, encoded_header_length, b ytes_consumed, if (!decode_string.translate(encoded_header_buffer, encoded_header_length, d ecode_int7, bytes_consumed,
decoded_header_buffer, decoded_header_length, bytes_written, events, inf ractions, decoded_header_buffer, decoded_header_length, bytes_written, events, inf ractions,
session_data->is_processing_partial_header())) session_data->is_processing_partial_header()))
{ {
return false; return false;
} }
field.set(bytes_written, decoded_header_buffer, false); field.set(bytes_written, decoded_header_buffer, false);
return true; return true;
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 lines changed or added

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