]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
app-layer: remove unused detect flags API
authorVictor Julien <victor@inliniac.net>
Sun, 7 Jun 2020 19:29:43 +0000 (21:29 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 11 Jul 2020 06:37:40 +0000 (08:37 +0200)
13 files changed:
rust/src/applayer.rs
rust/src/applayertemplate/template.rs
rust/src/dhcp/dhcp.rs
rust/src/dns/dns.rs
rust/src/ikev2/ikev2.rs
rust/src/krb/krb5.rs
rust/src/ntp/ntp.rs
rust/src/rdp/rdp.rs
rust/src/rfb/rfb.rs
rust/src/sip/sip.rs
rust/src/snmp/snmp.rs
rust/src/ssh/ssh.rs
src/app-layer-register.h

index b1a6fc9e6027e9afa6eb2f4486c4614011842d7f..9ea23a3db7413b68f1440804f66465e3c19ff208 100644 (file)
@@ -221,12 +221,6 @@ pub struct RustParser {
     /// Function to get the TX iterator
     pub get_tx_iterator:    Option<GetTxIteratorFn>,
 
-    // Function to set TX detect flags.
-    pub set_tx_detect_flags: Option<SetTxDetectFlagsFn>,
-
-    // Function to get TX detect flags.
-    pub get_tx_detect_flags: Option<GetTxDetectFlagsFn>,
-
     pub get_tx_data: GetTxDataFn,
 
     // Function to apply config to a TX. Optional. Normal (bidirectional)
@@ -281,8 +275,6 @@ pub type GetTxIteratorFn    = extern "C" fn (ipproto: u8, alproto: AppProto,
                                              max_tx_id: u64,
                                              istate: &mut u64)
                                              -> AppLayerGetTxIterTuple;
-pub type GetTxDetectFlagsFn = unsafe extern "C" fn(*mut c_void, u8) -> u64;
-pub type SetTxDetectFlagsFn = unsafe extern "C" fn(*mut c_void, u8, u64);
 pub type GetTxDataFn = unsafe extern "C" fn(*mut c_void) -> *mut AppLayerTxData;
 pub type ApplyTxConfigFn = unsafe extern "C" fn (*mut c_void, *mut c_void, c_int, AppLayerTxConfig);
 
@@ -318,12 +310,6 @@ extern {
     pub fn AppLayerParserStateIssetFlag(state: *mut c_void, flag: u8) -> c_int;
     pub fn AppLayerParserConfParserEnabled(ipproto: *const c_char, proto: *const c_char) -> c_int;
     pub fn AppLayerParserRegisterGetTxIterator(ipproto: u8, alproto: AppProto, fun: AppLayerGetTxIteratorFn);
-    pub fn AppLayerParserRegisterDetectFlagsFuncs(
-        ipproto: u8,
-        alproto: AppProto,
-        GetTxDetectFlats: GetTxDetectFlagsFn,
-        SetTxDetectFlags: SetTxDetectFlagsFn,
-    );
     pub fn AppLayerParserRegisterOptionFlags(ipproto: u8, alproto: AppProto, flags: u32);
 }
 
index 33c4da128bfcddaf7ec01c0d5a025a7a539dfb7d..e356d3364a5b5be4768a06e46b495ea061071bb9 100644 (file)
@@ -516,8 +516,6 @@ pub unsafe extern "C" fn rs_template_register_parser() {
         localstorage_free: None,
         get_files: None,
         get_tx_iterator: Some(rs_template_state_get_tx_iterator),
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_tx_data: rs_template_get_tx_data,
         apply_tx_config: None,
     };
index 27750c60a47e65f073c3c7176520a5aeada1be6b..697cae680d320eac8629849a56420f04396e2ab6 100644 (file)
@@ -435,8 +435,6 @@ pub unsafe extern "C" fn rs_dhcp_register_parser() {
         localstorage_free  : None,
         get_files          : None,
         get_tx_iterator    : Some(rs_dhcp_state_get_tx_iterator),
-        set_tx_detect_flags: None,
-        get_tx_detect_flags: None,
         get_tx_data        : rs_dhcp_get_tx_data,
         apply_tx_config    : None,
     };
index 1c721ae5eb3a58bc20f2c01c866406d6a241bc89..e0fa1ce1255fcb74a0a20e678bed5063c0f79421 100644 (file)
@@ -976,8 +976,6 @@ pub unsafe extern "C" fn rs_dns_udp_register_parser() {
         localstorage_free: None,
         get_files: None,
         get_tx_iterator: None,
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_de_state: rs_dns_state_get_tx_detect_state,
         set_de_state: rs_dns_state_set_tx_detect_state,
         get_tx_data: rs_dns_state_get_tx_data,
@@ -1021,8 +1019,6 @@ pub unsafe extern "C" fn rs_dns_tcp_register_parser() {
         localstorage_free: None,
         get_files: None,
         get_tx_iterator: None,
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_de_state: rs_dns_state_get_tx_detect_state,
         set_de_state: rs_dns_state_set_tx_detect_state,
         get_tx_data: rs_dns_state_get_tx_data,
index a51d00f9491a97c9eb5313e29ce11c9bbc0bb39a..25af1dc6e99f110b67fde478aa9b0c869dc30383 100644 (file)
@@ -710,8 +710,6 @@ pub unsafe extern "C" fn rs_register_ikev2_parser() {
         localstorage_free  : None,
         get_files          : None,
         get_tx_iterator    : None,
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_tx_data        : rs_ikev2_get_tx_data,
         apply_tx_config    : None,
     };
index 499029189f22bfe511ed66c61a34c38a751253cb..dd85db5daa72e4c2eb9fd8adc8d755dc3eaafc58 100644 (file)
@@ -656,8 +656,6 @@ pub unsafe extern "C" fn rs_register_krb5_parser() {
         localstorage_free  : None,
         get_files          : None,
         get_tx_iterator    : None,
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_tx_data        : rs_krb5_get_tx_data,
         apply_tx_config    : None,
     };
index 405efab0ef1bf866b1a79f295e4e6855505f0328..e045807548c8c6be631ca3bc41a5eaeb9fc3544d 100644 (file)
@@ -406,8 +406,6 @@ pub unsafe extern "C" fn rs_register_ntp_parser() {
         localstorage_free  : None,
         get_files          : None,
         get_tx_iterator    : None,
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_tx_data        : rs_ntp_get_tx_data,
         apply_tx_config    : None,
     };
index 147aa6a3e25247a48bf90edc27b849249eacac1a..3b0c66e9eb043265137c24adbeec3ffe6b996694 100644 (file)
@@ -532,8 +532,6 @@ pub unsafe extern "C" fn rs_rdp_register_parser() {
         localstorage_free: None,
         get_files: None,
         get_tx_iterator: None,
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_tx_data: rs_rdp_get_tx_data,
         apply_tx_config: None,
     };
index bc3424c9f264f0021e2b361380060da6d58dfebe..77c2388d76c37eff3c9e4ee2248b8c7f8c852c0a 100644 (file)
@@ -698,8 +698,6 @@ pub unsafe extern "C" fn rs_rfb_register_parser() {
         localstorage_free: None,
         get_files: None,
         get_tx_iterator: Some(rs_rfb_state_get_tx_iterator),
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_tx_data: rs_rfb_get_tx_data,
         apply_tx_config: None,
     };
index 3c4563d67402329fc3d1215fd2b992585a63939f..3d4be29112a5afde5686e92b0ad25e69048a61a8 100755 (executable)
@@ -391,8 +391,6 @@ pub unsafe extern "C" fn rs_sip_register_parser() {
         localstorage_free: None,
         get_files: None,
         get_tx_iterator: None,
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_tx_data: rs_sip_get_tx_data,
         apply_tx_config: None,
     };
index 55a7f2c73c333539e034d31a29b7618f2abe38eb..bb07c5a27ae481da7ab1c9725b29a8eee039d7f7 100644 (file)
@@ -584,8 +584,6 @@ pub unsafe extern "C" fn rs_register_snmp_parser() {
         localstorage_free  : None,
         get_files          : None,
         get_tx_iterator    : None,
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_tx_data        : rs_snmp_get_tx_data,
         apply_tx_config    : None,
     };
index 55b71b317e1870f19bc1d78d80dbcbfb595267a7..a801cd61e8d666fa34cfe89b1eb1cc00d1547ad6 100644 (file)
@@ -558,8 +558,6 @@ pub unsafe extern "C" fn rs_ssh_register_parser() {
         localstorage_free: None,
         get_files: None,
         get_tx_iterator: None,
-        get_tx_detect_flags: None,
-        set_tx_detect_flags: None,
         get_tx_data: rs_ssh_get_tx_data,
         apply_tx_config: None,
     };
index 9317e57b4b0c1f4177f60048307311d69fd81dc8..41f1d460c2efd721e81b744f08ec34de2cb274cb 100644 (file)
@@ -66,9 +66,6 @@ typedef struct AppLayerParser {
             const AppProto alproto, void *alstate, uint64_t min_tx_id,
             uint64_t max_tx_id, AppLayerGetTxIterState *istate);
 
-    void (*SetTxDetectFlags)(void *, uint8_t, uint64_t);
-    uint64_t (*GetTxDetectFlags)(void *, uint8_t);
-
     AppLayerTxData *(*GetTxData)(void *tx);
     bool (*ApplyTxConfig)(void *state, void *tx, int mode, AppLayerTxConfig);
 } AppLayerParser;