|
|
@ -22,6 +22,7 @@
|
|
|
|
use core::{
|
|
|
|
use core::{
|
|
|
|
self, AppProto, DetectEngineState, Flow, ALPROTO_UNKNOWN, IPPROTO_TCP,
|
|
|
|
self, AppProto, DetectEngineState, Flow, ALPROTO_UNKNOWN, IPPROTO_TCP,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
use conf;
|
|
|
|
use nom;
|
|
|
|
use nom;
|
|
|
|
use parser::*;
|
|
|
|
use parser::*;
|
|
|
|
use rdp::parser::*;
|
|
|
|
use rdp::parser::*;
|
|
|
@ -532,6 +533,12 @@ pub unsafe extern "C" fn rs_rdp_register_parser() {
|
|
|
|
get_tx_iterator: None,
|
|
|
|
get_tx_iterator: None,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* For 5.0 we want this disabled by default, so check that it
|
|
|
|
|
|
|
|
* has been explicitly enabled. */
|
|
|
|
|
|
|
|
if !conf::conf_get_bool("app-layer.protocols.rdp.enabled") {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let ip_proto_str = std::ffi::CString::new("tcp").unwrap();
|
|
|
|
let ip_proto_str = std::ffi::CString::new("tcp").unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
if AppLayerProtoDetectConfProtoDetectionEnabled(
|
|
|
|
if AppLayerProtoDetectConfProtoDetectionEnabled(
|
|
|
|