return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_CLIENT_BODY,
g_http_client_body_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
/**
return DetectEngineContentModifierBufferSetup(de_ctx, s, str,
DETECT_AL_HTTP_COOKIE,
g_http_cookie_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static void DetectHttpCookieSetupCallback(Signature *s)
return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_HEADER,
g_http_header_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static void DetectHttpHeaderSetupCallback(Signature *s)
return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_HOST,
g_http_host_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static void DetectHttpHostSetupCallback(Signature *s)
return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_RAW_HOST,
g_http_raw_host_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static void DetectHttpHostRawSetupCallback(Signature *s)
return DetectEngineContentModifierBufferSetup(de_ctx, s, str,
DETECT_AL_HTTP_METHOD,
g_http_method_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
/**
return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_RAW_HEADER,
g_http_raw_header_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static _Bool DetectHttpRawHeaderValidateCallback(const Signature *s)
return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_RAW_URI,
g_http_raw_uri_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static void DetectHttpRawUriSetupCallback(Signature *s)
return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_SERVER_BODY,
g_file_data_buffer_id,
- ALPROTO_HTTP, NULL);
+ ALPROTO_HTTP);
}
/**
return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_STAT_CODE,
g_http_stat_code_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static void DetectHttpStatCodeSetupCallback(Signature *s)
return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_STAT_MSG,
g_http_stat_msg_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static void DetectHttpStatMsgSetupCallback(Signature *s)
return DetectEngineContentModifierBufferSetup(de_ctx, s, arg,
DETECT_AL_HTTP_USER_AGENT,
g_http_ua_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static void DetectHttpUASetupCallback(Signature *s)
return DetectEngineContentModifierBufferSetup(de_ctx, s, str,
DETECT_AL_HTTP_URI,
g_http_uri_buffer_id,
- ALPROTO_HTTP,
- NULL);
+ ALPROTO_HTTP);
}
static void DetectHttpUriSetupCallback(Signature *s)
return "unknown";
}
+/** \param arg NULL or empty string */
int DetectEngineContentModifierBufferSetup(DetectEngineCtx *de_ctx,
- Signature *s, const char *arg,
- int sm_type, int sm_list,
- AppProto alproto, void (*CustomCallback)(Signature *s))
+ Signature *s, const char *arg, int sm_type, int sm_list,
+ AppProto alproto)
{
SigMatch *sm = NULL;
int ret = -1;
}
}
}
- if (CustomCallback != NULL)
- CustomCallback(s);
s->alproto = alproto;
s->flags |= SIG_FLAG_APPLAYER;
int DetectParseDupSigHashInit(DetectEngineCtx *);
void DetectParseDupSigHashFree(DetectEngineCtx *);
-int DetectEngineContentModifierBufferSetup(DetectEngineCtx *de_ctx, Signature *s, const char *arg,
- int sm_type, int sm_list,
- AppProto alproto, void (*CustomCallback)(Signature *s));
+int DetectEngineContentModifierBufferSetup(DetectEngineCtx *de_ctx,
+ Signature *s, const char *arg, int sm_type, int sm_list,
+ AppProto alproto);
const char *DetectListToHumanString(int list);
const char *DetectListToString(int list);