From: Philippe Antoine Date: Fri, 5 Feb 2021 14:17:41 +0000 (+0100) Subject: rust: remove exported unused functions X-Git-Tag: suricata-7.0.0-beta1~1686 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2d0e0adc93029feed63232d7eb55b451044cd5a;p=thirdparty%2Fsuricata.git rust: remove exported unused functions --- diff --git a/rust/src/dns/dns.rs b/rust/src/dns/dns.rs index 50f1458ed9..642f2f3bef 100644 --- a/rust/src/dns/dns.rs +++ b/rust/src/dns/dns.rs @@ -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(); diff --git a/rust/src/http2/detect.rs b/rust/src/http2/detect.rs index 6d7e6b1d48..f46d946286 100644 --- a/rust/src/http2/detect.rs +++ b/rust/src/http2/detect.rs @@ -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,