use core::{
self, AppProto, DetectEngineState, Flow, ALPROTO_UNKNOWN, IPPROTO_TCP,
};
+use conf;
use nom;
use parser::*;
use rdp::parser::*;
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();
if AppLayerProtoDetectConfProtoDetectionEnabled(
#include "rust-rdp-rdp-gen.h"
void RegisterRdpParsers(void) {
- /* only register if enabled in config */
- if (ConfGetNode("app-layer.protocols.rdp") == NULL) {
- return;
- }
SCLogDebug("Registering rdp parser");
rs_rdp_register_parser();
}