"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http2_inspect/http2_hpack_string_decode.h" 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_string_decode.h  (snort3-3.1.29.0):http2_hpack_string_decode.h  (snort3-3.1.30.0)
skipping to change at line 23 skipping to change at line 23
// //
// You should have received a copy of the GNU General Public License along // You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc., // with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
// http2_hpack_string_decode.h author Maya Dagon <mdagon@cisco.com> // http2_hpack_string_decode.h author Maya Dagon <mdagon@cisco.com>
#ifndef HTTP2_HPACK_STRING_DECODE_H #ifndef HTTP2_HPACK_STRING_DECODE_H
#define HTTP2_HPACK_STRING_DECODE_H #define HTTP2_HPACK_STRING_DECODE_H
#include "http2_enum.h"
#include "http2_hpack_int_decode.h" #include "http2_hpack_int_decode.h"
#include "http2_varlen_string_decode.h"
#include "main/snort_types.h" using Http2HpackStringDecode = VarLengthStringDecode<Http2HpackIntDecode, Http2E
#include "utils/event_gen.h" ventGen, Http2Infractions>;
#include "utils/infractions.h"
class Http2HpackStringDecode
{
public:
Http2HpackStringDecode() : decode7(7) { }
bool translate(const uint8_t* in_buff, const uint32_t in_len, uint32_t& byte
s_consumed,
uint8_t* out_buff, const uint32_t out_len, uint32_t& bytes_written,
Http2EventGen* const events, Http2Infractions* const infractions,
bool partial_header) const;
private:
bool get_string(const uint8_t* in_buff, const uint32_t encoded_len, uint32_t
& bytes_consumed,
uint8_t* out_buff, const uint32_t out_len, uint32_t& bytes_written,
Http2Infractions* const infractions) const;
bool get_huffman_string(const uint8_t* in_buff, const uint32_t encoded_len,
uint32_t& bytes_consumed, uint8_t* out_buff, const uint32_t out_len, uin
t32_t&
bytes_written, Http2Infractions* const infractions) const;
bool get_next_byte(const uint8_t* in_buff, const uint32_t last_byte,
uint32_t& bytes_consumed, uint8_t& cur_bit, uint8_t match_len, uint8_t&
byte,
bool& another_search) const;
const Http2HpackIntDecode decode7;
};
#endif #endif
 End of changes. 3 change blocks. 
31 lines changed or deleted 3 lines changed or added

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