]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: remove exported unused functions
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 5 Feb 2021 14:17:41 +0000 (15:17 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 9 Apr 2021 19:13:03 +0000 (21:13 +0200)
rust/src/dns/dns.rs
rust/src/http2/detect.rs

index 50f1458ed9faa01991ec79f3c49be6f99a637d3c..642f2f3bef2a606de272a8749e0f5fe652ea7adb 100644 (file)
@@ -1065,11 +1065,6 @@ pub extern "C" fn rs_dns_apply_tx_config(
     }
 }
 
-#[no_mangle]
-pub unsafe extern "C" fn rs_dns_init(proto: AppProto) {
-    ALPROTO_DNS = proto;
-}
-
 #[no_mangle]
 pub unsafe extern "C" fn rs_dns_udp_register_parser() {
     let default_port = std::ffi::CString::new("[53]").unwrap();
index 6d7e6b1d48673b7f71db9136cc0488fa803e904d..f46d9462869053b0bede66e831b63ff836536fb1 100644 (file)
@@ -226,19 +226,6 @@ pub extern "C" fn rs_http2_tx_get_next_window(
     return http2_tx_get_next_window(tx, direction, nb);
 }
 
-#[no_mangle]
-pub unsafe extern "C" fn rs_http2_parse_settingsid(
-    str: *const std::os::raw::c_char,
-) -> std::os::raw::c_int {
-    let ft_name: &CStr = CStr::from_ptr(str); //unsafe
-    if let Ok(s) = ft_name.to_str() {
-        if let Ok(x) = parser::HTTP2SettingsId::from_str(s) {
-            return x as i32;
-        }
-    }
-    return -1;
-}
-
 #[no_mangle]
 pub unsafe extern "C" fn rs_http2_detect_settingsctx_parse(
     str: *const std::os::raw::c_char,