suricata
detect-ssl-version.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SSLVersionData_
 
struct  DetectSslVersionData_
 

Macros

#define DETECT_SSL_VERSION_NEGATED   0x01
 

Typedefs

typedef struct SSLVersionData_ SSLVersionData
 
typedef struct DetectSslVersionData_ DetectSslVersionData
 

Enumerations

enum  {
  SSLv2 = 0, SSLv3 = 1, TLS10 = 2, TLS11 = 3,
  TLS12 = 4, TLS13 = 5, TLS_SIZE = 6, TLS_UNKNOWN = 7
}
 

Functions

void DetectSslVersionRegister (void)
 Registration function for keyword: ssl_version. More...
 

Detailed Description

Macro Definition Documentation

#define DETECT_SSL_VERSION_NEGATED   0x01

Definition at line 28 of file detect-ssl-version.h.

Referenced by DetectSslVersionRegister().

Typedef Documentation

Enumeration Type Documentation

anonymous enum
Enumerator
SSLv2 
SSLv3 
TLS10 
TLS11 
TLS12 
TLS13 
TLS_SIZE 
TLS_UNKNOWN 

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

Function Documentation

void DetectSslVersionRegister ( void  )

Registration function for keyword: ssl_version.

Definition at line 74 of file detect-ssl-version.c.

References Flow_::alproto, ALPROTO_TLS, Flow_::alstate, AppLayerParserParse(), AppLayerParserThreadCtxAlloc(), AppLayerParserThreadCtxFree(), SigTableElmt_::AppLayerTxMatch, SSLState_::client_connp, SSLStateConnp_::content_type, SigMatch_::ctx, DetectSslVersionData_::data, DE_QUIET, DETECT_AL_SSL_VERSION, DETECT_SSL_VERSION_NEGATED, DetectBufferTypeRegister(), DetectEngineCtxFree(), DetectEngineCtxInit(), DetectEngineThreadCtxDeinit(), DetectEngineThreadCtxInit(), DetectSetupParseRegexes(), DetectSignatureSetAppProto(), FAIL_IF, FAIL_IF_NOT, FAIL_IF_NOT_NULL, FAIL_IF_NULL, SSLVersionData_::flags, flags, Packet_::flags, DetectEngineCtx_::flags, Packet_::flow, FLOW_DESTROY, FLOW_INITIALIZE, FLOW_PKT_ESTABLISHED, FLOW_PKT_TOSERVER, Packet_::flowflags, FLOWLOCK_UNLOCK, FLOWLOCK_WRLOCK, SigTableElmt_::Free, m, MAX_SUBSTRINGS, SigTableElmt_::name, PacketAlertCheck(), PARSE_REGEX, PASS, PKT_HAS_FLOW, PKT_STREAM_EST, Flow_::proto, Flow_::protoctx, SigTableElmt_::RegisterTests, res, SC_ERR_INVALID_VALUE, SC_ERR_PCRE_GET_SUBSTRING, SC_ERR_PCRE_MATCH, SCCalloc, SCEnter, SCFree, SCLogDebug, SCLogError, SCReturnInt, SCStrdup, SSLState_::server_connp, SigTableElmt_::Setup, DetectEngineCtx_::sig_list, SigGroupBuild(), SigInit(), sigmatch_table, SigMatchAlloc(), SigMatchAppendSMToList(), SigMatchSignatures(), SSL_VERSION_2, SSL_VERSION_3, SSLv2, SSLv3, str, STREAM_TOCLIENT, STREAM_TOSERVER, StreamTcpFreeConfig(), StreamTcpInitConfig(), TLS10, TLS11, TLS12, TLS13, TLS_UNKNOWN, TLS_VERSION_10, TLS_VERSION_11, TLS_VERSION_12, TLS_VERSION_13, TLS_VERSION_13_DRAFT16, TLS_VERSION_13_DRAFT17, TLS_VERSION_13_DRAFT18, TLS_VERSION_13_DRAFT19, TLS_VERSION_13_DRAFT20, TLS_VERSION_13_DRAFT21, TLS_VERSION_13_DRAFT22, TLS_VERSION_13_DRAFT23, TLS_VERSION_13_DRAFT24, TLS_VERSION_13_DRAFT25, TLS_VERSION_13_DRAFT26, TLS_VERSION_13_DRAFT27, TLS_VERSION_13_DRAFT28, TLS_VERSION_13_PRE_DRAFT16, TRUE, SigMatch_::type, unlikely, UTHBuildPacket(), UTHFreePackets(), UtRegisterTest(), SSLVersionData_::ver, and SSLStateConnp_::version.

Referenced by SigTableSetup().

Here is the call graph for this function:

Here is the caller graph for this function: