#ifdef USE_RNA_CONFIG
{ "conf", Parameter::PT_STRING, nullptr, nullptr,
"RNA configuration file" }, // FIXIT-L eliminate reference to "RNA"
+#endif
+ // FIXIT-L: DECRYPT_DEBUG - Move this to ssl-module
+#ifdef REG_TEST
+ { "first_decrypted_packet_debug", Parameter::PT_INT, "0:", "0",
+ "the first packet of an already decrypted SSL flow (debug single session only)" },
#endif
{ "memcap", Parameter::PT_INT, "0:", "0",
"disregard - not implemented" }, // FIXIT-M implement or delete appid.memcap
if ( v.is("conf") )
config->conf_file = snort_strdup(v.get_string());
else
+#endif
+ // FIXIT-L: DECRYPT_DEBUG - Move this to ssl-module
+#ifdef REG_TEST
+ if ( v.is("first_decrypted_packet_debug") )
+ config->first_decrypted_packet_debug = v.get_long();
+ else
#endif
if ( v.is("memcap") )
config->memcap = v.get_long();
// Change http to https if session was decrypted.
if (asd.get_session_flags(APPID_SESSION_DECRYPTED) and
- memcmp(field->c_str(), httpScheme, sizeof(httpScheme)-1)==0)
+ memcmp(field->c_str(), httpScheme, sizeof(httpScheme)-1) == 0)
{
// This is the only instance that requires that field be
// non const and the reason TPAD_GET in tp_appid_types.h
// returns string* rather than const string*.
// In all other cases field can be const string*.
- field->insert(4,'s',1);
+ field->insert(4, 1, 's');
}
hsession->update_url(field);
if ( (field=attribute_data.http_request_referer(own)) != nullptr )
{
- if (appidDebug->is_active())
- LogMessage("AppIdDbg %s referrer is %s\n",
- appidDebug->get_debug_session(), field->c_str());
if (hsession->get_referer())
if (!asd.get_session_flags(APPID_SESSION_APP_REINSPECT))
hsession->set_chp_finished(false);
hsession->set_field_offset(REQ_REFERER_FID, attribute_data.http_request_referer_begin());
hsession->set_field_end_offset(REQ_REFERER_FID, attribute_data.http_request_referer_end());
if (appidDebug->is_active())
- LogMessage("AppIdDbg %s Referer (%u-%u) is %s\n", appidDebug->get_debug_session(),
+ LogMessage("AppIdDbg %s Referrer (%u-%u) is %s\n", appidDebug->get_debug_session(),
hsession->get_field_offset(REQ_REFERER_FID),
hsession->get_field_end_offset(REQ_REFERER_FID),
hsession->get_referer());
// attribute_data.httpRequestCookieOffset = 0;
// attribute_data.httpRequestCookieEndOffset = 0;
if (appidDebug->is_active())
- LogMessage("AppIdDbg %s cookie (%u-%u) is %s\n", appidDebug->get_debug_session(),
+ LogMessage("AppIdDbg %s Cookie (%u-%u) is %s\n", appidDebug->get_debug_session(),
hsession->get_field_offset(REQ_COOKIE_FID),
hsession->get_field_offset(REQ_COOKIE_FID),
hsession->get_cookie());
if ( (field=attribute_data.http_request_body(own)) != nullptr )
{
if (appidDebug->is_active())
- LogMessage("AppIdDbg %s got a request body %s\n",
+ LogMessage("AppIdDbg %s Got a request body %s\n",
appidDebug->get_debug_session(), field->c_str());
if (hsession->get_req_body())
if (!asd.get_session_flags(APPID_SESSION_APP_REINSPECT))