"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http2_inspect/http2_push_promise_frame.cc" between
snort3-3.1.28.0.tar.gz and snort3-3.1.29.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_push_promise_frame.cc  (snort3-3.1.28.0):http2_push_promise_frame.cc  (snort3-3.1.29.0)
skipping to change at line 26 skipping to change at line 26
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
// http2_push_promise_frame.cc author Katura Harvey <katharve@cisco.com> // http2_push_promise_frame.cc author Katura Harvey <katharve@cisco.com>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include "http2_push_promise_frame.h" #include "http2_push_promise_frame.h"
#include "service_inspectors/http_inspect/http_enum.h"
#include "service_inspectors/http_inspect/http_flow_data.h" #include "service_inspectors/http_inspect/http_flow_data.h"
#include "http2_flow_data.h" #include "http2_flow_data.h"
#include "http2_hpack.h" #include "http2_hpack.h"
#include "http2_request_line.h" #include "http2_request_line.h"
#include "http2_stream.h" #include "http2_stream.h"
#include "http2_utils.h" #include "http2_utils.h"
using namespace snort; using namespace snort;
using namespace HttpCommon; using namespace HttpCommon;
skipping to change at line 120 skipping to change at line 119
stream->set_state(SRC_CLIENT, STREAM_ERROR); stream->set_state(SRC_CLIENT, STREAM_ERROR);
return; return;
} }
HttpFlowData* http_flow; HttpFlowData* http_flow;
if (!process_start_line(http_flow, SRC_CLIENT)) if (!process_start_line(http_flow, SRC_CLIENT))
return; return;
// Push promise cannot have a message body // Push promise cannot have a message body
// FIXIT-E handle bad request lines and cases where a message body is implie d // FIXIT-E handle bad request lines and cases where a message body is implie d
stream->get_hi_flow_data()->finish_h2_body(SRC_CLIENT, HttpEnums::H2_BODY_NO _BODY, false); stream->get_hi_flow_data()->finish_h2_body(SRC_CLIENT, H2_BODY_NO_BODY, fals e);
process_decoded_headers(http_flow, SRC_CLIENT); process_decoded_headers(http_flow, SRC_CLIENT);
} }
void Http2PushPromiseFrame::update_stream_state() void Http2PushPromiseFrame::update_stream_state()
{ {
if (stream->get_state(SRC_CLIENT) == STREAM_EXPECT_HEADERS) if (stream->get_state(SRC_CLIENT) == STREAM_EXPECT_HEADERS)
stream->set_state(SRC_CLIENT, STREAM_COMPLETE); stream->set_state(SRC_CLIENT, STREAM_COMPLETE);
assert(stream->get_state(SRC_SERVER) == STREAM_EXPECT_HEADERS or assert(stream->get_state(SRC_SERVER) == STREAM_EXPECT_HEADERS or
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

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