suricata
detect-ssl-state.h File Reference
#include "app-layer-ssl.h"
Include dependency graph for detect-ssl-state.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DetectSslStateData_
 

Macros

#define DETECT_SSL_STATE_CLIENT_HELLO   SSL_AL_FLAG_STATE_CLIENT_HELLO
 
#define DETECT_SSL_STATE_SERVER_HELLO   SSL_AL_FLAG_STATE_SERVER_HELLO
 
#define DETECT_SSL_STATE_CLIENT_KEYX   SSL_AL_FLAG_STATE_CLIENT_KEYX
 
#define DETECT_SSL_STATE_SERVER_KEYX   SSL_AL_FLAG_STATE_SERVER_KEYX
 
#define DETECT_SSL_STATE_UNKNOWN   SSL_AL_FLAG_STATE_UNKNOWN
 

Typedefs

typedef struct DetectSslStateData_ DetectSslStateData
 

Functions

void DetectSslStateRegister (void)
 Registers the keyword handlers for the "ssl_state" keyword. More...
 

Detailed Description

Macro Definition Documentation

#define DETECT_SSL_STATE_CLIENT_HELLO   SSL_AL_FLAG_STATE_CLIENT_HELLO

Definition at line 30 of file detect-ssl-state.h.

Referenced by DetectSslStateRegister().

#define DETECT_SSL_STATE_CLIENT_KEYX   SSL_AL_FLAG_STATE_CLIENT_KEYX

Definition at line 32 of file detect-ssl-state.h.

Referenced by DetectSslStateRegister().

#define DETECT_SSL_STATE_SERVER_HELLO   SSL_AL_FLAG_STATE_SERVER_HELLO

Definition at line 31 of file detect-ssl-state.h.

Referenced by DetectSslStateRegister().

#define DETECT_SSL_STATE_SERVER_KEYX   SSL_AL_FLAG_STATE_SERVER_KEYX

Definition at line 33 of file detect-ssl-state.h.

Referenced by DetectSslStateRegister().

#define DETECT_SSL_STATE_UNKNOWN   SSL_AL_FLAG_STATE_UNKNOWN

Definition at line 34 of file detect-ssl-state.h.

Referenced by DetectSslStateRegister().

Typedef Documentation

Function Documentation

void DetectSslStateRegister ( void  )

Registers the keyword handlers for the "ssl_state" keyword.

Definition at line 80 of file detect-ssl-state.c.

References Packet_::alerts, Flow_::alproto, ALPROTO_TLS, Flow_::alstate, AppLayerParserParse(), AppLayerParserThreadCtxAlloc(), AppLayerParserThreadCtxFree(), SigTableElmt_::AppLayerTxMatch, PacketAlerts_::cnt, SigMatch_::ctx, SSLState_::current_flags, DE_QUIET, DETECT_AL_SSL_STATE, DETECT_SSL_STATE_CLIENT_HELLO, DETECT_SSL_STATE_CLIENT_KEYX, DETECT_SSL_STATE_SERVER_HELLO, DETECT_SSL_STATE_SERVER_KEYX, DETECT_SSL_STATE_UNKNOWN, DetectAppLayerInspectEngineRegister(), DetectBufferTypeRegister(), DetectBufferTypeSetDescriptionByName(), DetectEngineAppendSig(), DetectEngineCtxFree(), DetectEngineCtxInit(), DetectEngineInspectGenericList(), DetectEngineThreadCtxDeinit(), DetectEngineThreadCtxInit(), DetectSetupParseRegexes(), DetectSignatureSetAppProto(), FAIL_IF, FAIL_IF_NOT, FAIL_IF_NOT_NULL, FAIL_IF_NULL, DetectSslStateData_::flags, flags, Packet_::flags, DetectEngineCtx_::flags, Packet_::flow, FLOW_DESTROY, FLOW_INITIALIZE, FLOW_PKT_ESTABLISHED, FLOW_PKT_TOCLIENT, FLOW_PKT_TOSERVER, Packet_::flowflags, FLOWLOCK_UNLOCK, FLOWLOCK_WRLOCK, SigTableElmt_::Free, m, DetectSslStateData_::mask, MAX_SUBSTRINGS, SigTableElmt_::name, PacketAlertCheck(), PARSE_REGEX1, PARSE_REGEX2, PASS, PKT_HAS_FLOW, PKT_STREAM_EST, Flow_::proto, Flow_::protoctx, SigTableElmt_::RegisterTests, res, SC_ERR_INVALID_SIGNATURE, SC_ERR_PCRE_GET_SUBSTRING, SCFree, SCLogDebug, SCLogError, SCMalloc, SigTableElmt_::Setup, SIG_FLAG_TOCLIENT, SIG_FLAG_TOSERVER, SigCleanSignatures(), SigGroupBuild(), SigGroupCleanup(), sigmatch_table, SigMatchAlloc(), SigMatchAppendSMToList(), SigMatchSignatures(), STREAM_START, STREAM_TOCLIENT, STREAM_TOSERVER, StreamTcpFreeConfig(), StreamTcpInitConfig(), TRUE, tx_id, SigMatch_::type, UTHBuildPacket(), UTHFreePackets(), and UtRegisterTest().

Referenced by SigTableSetup().

Here is the call graph for this function:

Here is the caller graph for this function: