"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/network_inspectors/appid/appid_inspector.cc" 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.

appid_inspector.cc  (snort3-3.1.31.0):appid_inspector.cc  (snort3-3.1.32.0)
skipping to change at line 67 skipping to change at line 67
#include "tp_appid_module_api.h" #include "tp_appid_module_api.h"
#include "tp_lib_handler.h" #include "tp_lib_handler.h"
using namespace snort; using namespace snort;
THREAD_LOCAL ThirdPartyAppIdContext* pkt_thread_tp_appid_ctxt = nullptr; THREAD_LOCAL ThirdPartyAppIdContext* pkt_thread_tp_appid_ctxt = nullptr;
THREAD_LOCAL OdpThreadContext* odp_thread_local_ctxt = nullptr; THREAD_LOCAL OdpThreadContext* odp_thread_local_ctxt = nullptr;
THREAD_LOCAL OdpContext* pkt_thread_odp_ctxt = nullptr; THREAD_LOCAL OdpContext* pkt_thread_odp_ctxt = nullptr;
static THREAD_LOCAL PacketTracer::TracerMute appid_mute; static THREAD_LOCAL PacketTracer::TracerMute appid_mute;
// FIXIT-L - appid cleans up openssl now as it is the primary (only) user... eve
ntually this
// should probably be done outside of appid
static void openssl_cleanup()
{
CRYPTO_cleanup_all_ex_data();
}
static void add_appid_to_packet_trace(Flow& flow, const OdpContext& odp_context) static void add_appid_to_packet_trace(Flow& flow, const OdpContext& odp_context)
{ {
AppIdSession* session = appid_api.get_appid_session(flow); AppIdSession* session = appid_api.get_appid_session(flow);
// Skip sessions using old odp context after odp reload // Skip sessions using old odp context after odp reload
if (!session || (session->get_odp_ctxt_version() != odp_context.get_version( ))) if (!session || (session->get_odp_ctxt_version() != odp_context.get_version( )))
return; return;
AppId service_id, client_id, payload_id, misc_id; AppId service_id, client_id, payload_id, misc_id;
const char* service_app_name, * client_app_name, * payload_app_name, * misc_ name; const char* service_app_name, * client_app_name, * payload_app_name, * misc_ name;
OdpContext& odp_ctxt = session->get_odp_ctxt(); OdpContext& odp_ctxt = session->get_odp_ctxt();
skipping to change at line 239 skipping to change at line 232
static void appid_inspector_pinit() static void appid_inspector_pinit()
{ {
AppIdSession::init(); AppIdSession::init();
TPLibHandler::get(); TPLibHandler::get();
} }
static void appid_inspector_pterm() static void appid_inspector_pterm()
{ {
AppIdContext::pterm(); AppIdContext::pterm();
openssl_cleanup();
TPLibHandler::pfini(); TPLibHandler::pfini();
} }
static void appid_inspector_tinit() static void appid_inspector_tinit()
{ {
AppIdPegCounts::init_pegs(); AppIdPegCounts::init_pegs();
appidDebug = new AppIdDebug(); appidDebug = new AppIdDebug();
} }
static void appid_inspector_tterm() static void appid_inspector_tterm()
 End of changes. 2 change blocks. 
9 lines changed or deleted 0 lines changed or added

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