AppLayerParserState, AppProto, SCAppLayerForceProtocolChange,
SCAppLayerParserConfParserEnabled, SCAppLayerParserRegisterLogger,
SCAppLayerProtoDetectConfProtoDetectionEnabled, SCFileFlowFlagsToFlags,
+ SCHTTP2MimicHttp1Request,
};
static mut ALPROTO_HTTP2: AppProto = ALPROTO_UNKNOWN;
return ALPROTO_UNKNOWN;
}
-// Extern functions operating on HTTP2.
-extern "C" {
- pub fn HTTP2MimicHttp1Request(
- orig_state: *mut std::os::raw::c_void, new_state: *mut std::os::raw::c_void,
- );
-}
-
// Suppress the unsafe warning here as creating a state for an app-layer
// is typically not unsafe.
#[allow(clippy::not_unsafe_ptr_arg_deref)]
if !orig_state.is_null() {
//we could check ALPROTO_HTTP1 == orig_proto
unsafe {
- HTTP2MimicHttp1Request(orig_state, r);
+ SCHTTP2MimicHttp1Request(orig_state, r);
}
}
return r;
event_name: *const ::std::os::raw::c_char, table: *mut SCEnumCharMap, event_id: *mut u8,
) -> ::std::os::raw::c_int;
}
+extern "C" {
+ pub fn SCHTTP2MimicHttp1Request(
+ arg1: *mut ::std::os::raw::c_void, arg2: *mut ::std::os::raw::c_void,
+ );
+}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MpmPattern_ {
#endif
}
-void HTTP2MimicHttp1Request(void *alstate_orig, void *h2s)
+void SCHTTP2MimicHttp1Request(void *alstate_orig, void *h2s)
{
htp_tx_t *h1tx = HtpGetTxForH2(alstate_orig);
if (h2s == NULL || h1tx == NULL) {
void RegisterHTTP2Parsers(void);
-void HTTP2MimicHttp1Request(void *, void *);
+void SCHTTP2MimicHttp1Request(void *, void *);
#endif /* SURICATA_APP_LAYER_HTTP2_H */
#include "app-layer-parser.h"
#include "app-layer-register.h"
#include "app-layer-events.h"
+#include "app-layer-http2.h"
#include "util-mpm.h"
#include "util-file.h"