52#include "rust-bindings.h"
54#define KEYWORD_NAME_KEY_EXCHANGE "ike.key_exchange_payload"
55#define KEYWORD_DOC_KEY_EXCHANGE "ike-keywords.html#ike-key_exchange_payload";
56#define BUFFER_NAME_KEY_EXCHANGE "ike.key_exchange_payload"
57#define BUFFER_DESC_KEY_EXCHANGE "ike key_exchange payload"
59static int g_buffer_key_exchange_id = 0;
78 const uint8_t *b = NULL;
81 if (SCIkeStateGetKeyExchange(txv, &b, &b_len) != 1)
83 if (b == NULL || b_len == 0)
98 "sticky buffer to match on the IKE key_exchange_payload";
int SCDetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
void InspectionBufferSetupAndApplyTransforms(DetectEngineThreadCtx *det_ctx, const int list_id, InspectionBuffer *buffer, const uint8_t *data, const uint32_t data_len, const DetectEngineTransforms *transforms)
setup the buffer with our initial data
InspectionBuffer * InspectionBufferGet(DetectEngineThreadCtx *det_ctx, const int list_id)
void DetectAppLayerMpmRegister(const char *name, int direction, int priority, PrefilterRegisterFunc PrefilterRegister, InspectionBufferGetDataPtr GetData, AppProto alproto, int tx_min_progress)
register an app layer keyword for mpm
int PrefilterGenericMpmRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistry *mpm_reg, int list_id)
@ DETECT_IKE_KEY_EXCHANGE
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)
uint8_t DetectEngineInspectBufferGeneric(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const DetectEngineAppInspectionEngine *engine, const Signature *s, Flow *f, uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
Do the content inspection & validation for a signature.
void DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
Registers an app inspection engine.
int DetectBufferTypeGetByName(const char *name)
#define BUFFER_DESC_KEY_EXCHANGE
#define KEYWORD_DOC_KEY_EXCHANGE
#define KEYWORD_NAME_KEY_EXCHANGE
#define BUFFER_NAME_KEY_EXCHANGE
void DetectIkeKeyExchangeRegister(void)
int SCDetectSignatureSetAppProto(Signature *s, AppProto alproto)
SigTableElmt * sigmatch_table
#define SIG_FLAG_TOCLIENT
#define SIGMATCH_INFO_STICKY_BUFFER
#define SIG_FLAG_TOSERVER
main detection engine ctx
int(* Setup)(DetectEngineCtx *, Signature *, const char *)