Go to the documentation of this file.
60 static void DetectTlsCertsRegisterTests(
void);
63 static int g_tls_certs_buffer_id = 0;
67 int list_id, uint32_t local_id)
78 if (
flags & STREAM_TOSERVER) {
95 for (uint32_t i = 0; i < local_id; i++) {
126 TlsCertsGetData, 2, 1);
128 TlsCertsGetData, 2, 1);
159 static int g_tls_cert_buffer_id = 0;
160 #define BUFFER_NAME "tls_validity"
161 #define KEYWORD_ID DETECT_AL_TLS_CHAIN_LEN
162 #define KEYWORD_NAME "tls.cert_chain_len"
163 #define KEYWORD_DESC "match TLS certificate chain length"
164 #define KEYWORD_URL "/rules/tls-keywords.html#tls-cert-chain-len"
188 if (
flags & STREAM_TOCLIENT) {
213 rs_detect_u32_free(ptr);
240 rs_detect_u32_free(dd);
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
SSLv[2.0|3.[0|1|2|3]] state structure.
#define SIGMATCH_INFO_STICKY_BUFFER
int DetectU32Match(const uint32_t parg, const DetectUintData_u32 *du32)
SigTableElmt * sigmatch_table
void(* Free)(DetectEngineCtx *, void *)
SSLStateConnp client_connp
DetectUintData_u32 * DetectU32Parse(const char *u32str)
This function is used to parse u32 options passed via some u32 keyword.
struct HtpBodyChunk_ * next
SSLStateConnp server_connp
int DetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
main detection engine ctx
#define TAILQ_EMPTY(head)
void DetectBufferTypeSupportsMultiInstance(const char *name)
#define TAILQ_FOREACH(var, head, field)
int(* AppLayerTxMatch)(DetectEngineThreadCtx *, Flow *, uint8_t flags, void *alstate, void *txv, const Signature *, const SigMatchCtx *)
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
int DetectBufferTypeGetByName(const char *name)
void DetectAppLayerMultiRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectionMultiBufferGetDataPtr GetData, int priority, int tx_min_progress)
#define SIG_FLAG_TOSERVER
void InspectionBufferSetupMultiEmpty(InspectionBuffer *buffer)
setup the buffer empty
#define TAILQ_FIRST(head)
#define SCReturnPtr(x, type)
void DetectTlsCertsRegister(void)
Registration function for keyword: tls.certs.
Used to start a pointer to SigMatch context Should never be dereferenced without casting to something...
#define DETECT_CI_FLAGS_SINGLE
DetectUintData_u32 DetectU32Data
#define TAILQ_NEXT(elm, field)
void InspectionBufferSetupMulti(InspectionBuffer *buffer, const DetectEngineTransforms *transforms, const uint8_t *data, const uint32_t data_len)
setup the buffer with our initial data
uint8_t DetectEngineInspectGenericList(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const struct 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.
#define SCLogError(...)
Macro used to log ERROR messages.
void DetectTlsCertChainLenRegister(void)
InspectionBuffer * InspectionBufferMultipleForListGet(DetectEngineThreadCtx *det_ctx, const int list_id, const uint32_t local_id)
for a InspectionBufferMultipleForList get a InspectionBuffer
void DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
Registers an app inspection engine.
SigMatch * SigMatchAppendSMToList(DetectEngineCtx *de_ctx, Signature *s, uint16_t type, SigMatchCtx *ctx, const int list)
Append a SigMatch to the list type.
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)
void(* RegisterTests)(void)