|
|
|
|
@ -24,7 +24,8 @@ use crate::detect::uint::{
|
|
|
|
|
};
|
|
|
|
|
use crate::detect::{
|
|
|
|
|
helper_keyword_register_multi_buffer, helper_keyword_register_sticky_buffer,
|
|
|
|
|
SigTableElmtStickyBuffer, SIGMATCH_INFO_MULTI_UINT, SIGMATCH_INFO_UINT32, SIGMATCH_INFO_UINT8,
|
|
|
|
|
SigTableElmtStickyBuffer, SIGMATCH_INFO_ENUM_UINT, SIGMATCH_INFO_MULTI_UINT,
|
|
|
|
|
SIGMATCH_INFO_UINT32, SIGMATCH_INFO_UINT8,
|
|
|
|
|
};
|
|
|
|
|
use crate::ldap::types::*;
|
|
|
|
|
use ldap_parser::ldap::{LdapMessage, ProtocolOp};
|
|
|
|
|
@ -519,7 +520,7 @@ pub unsafe extern "C" fn SCDetectLdapRegister() {
|
|
|
|
|
AppLayerTxMatch: Some(ldap_detect_request_operation_match),
|
|
|
|
|
Setup: Some(ldap_detect_request_operation_setup),
|
|
|
|
|
Free: Some(ldap_detect_request_free),
|
|
|
|
|
flags: SIGMATCH_INFO_UINT8,
|
|
|
|
|
flags: SIGMATCH_INFO_UINT8 | SIGMATCH_INFO_ENUM_UINT,
|
|
|
|
|
};
|
|
|
|
|
G_LDAP_REQUEST_OPERATION_KW_ID = SCDetectHelperKeywordRegister(&kw);
|
|
|
|
|
G_LDAP_REQUEST_OPERATION_BUFFER_ID = SCDetectHelperBufferRegister(
|
|
|
|
|
@ -535,7 +536,7 @@ pub unsafe extern "C" fn SCDetectLdapRegister() {
|
|
|
|
|
AppLayerTxMatch: Some(ldap_detect_responses_operation_match),
|
|
|
|
|
Setup: Some(ldap_detect_responses_operation_setup),
|
|
|
|
|
Free: Some(ldap_detect_responses_free),
|
|
|
|
|
flags: SIGMATCH_INFO_UINT8 | SIGMATCH_INFO_MULTI_UINT,
|
|
|
|
|
flags: SIGMATCH_INFO_UINT8 | SIGMATCH_INFO_MULTI_UINT | SIGMATCH_INFO_ENUM_UINT,
|
|
|
|
|
};
|
|
|
|
|
G_LDAP_RESPONSES_OPERATION_KW_ID = SCDetectHelperKeywordRegister(&kw);
|
|
|
|
|
G_LDAP_RESPONSES_OPERATION_BUFFER_ID = SCDetectHelperBufferRegister(
|
|
|
|
|
@ -594,7 +595,7 @@ pub unsafe extern "C" fn SCDetectLdapRegister() {
|
|
|
|
|
AppLayerTxMatch: Some(ldap_detect_responses_result_code_match),
|
|
|
|
|
Setup: Some(ldap_detect_responses_result_code_setup),
|
|
|
|
|
Free: Some(ldap_detect_responses_result_code_free),
|
|
|
|
|
flags: SIGMATCH_INFO_UINT32 | SIGMATCH_INFO_MULTI_UINT,
|
|
|
|
|
flags: SIGMATCH_INFO_UINT32 | SIGMATCH_INFO_MULTI_UINT | SIGMATCH_INFO_ENUM_UINT,
|
|
|
|
|
};
|
|
|
|
|
G_LDAP_RESPONSES_RESULT_CODE_KW_ID = SCDetectHelperKeywordRegister(&kw);
|
|
|
|
|
G_LDAP_RESPONSES_RESULT_CODE_BUFFER_ID = SCDetectHelperBufferRegister(
|
|
|
|
|
|