suricata
detect-ssl-version.c File Reference
#include "suricata-common.h"
#include "threads.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-state.h"
#include "flow.h"
#include "flow-var.h"
#include "flow-util.h"
#include "util-debug.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "app-layer.h"
#include "app-layer-parser.h"
#include "detect-ssl-version.h"
#include "stream-tcp.h"
#include "app-layer-ssl.h"
#include "tests/detect-ssl-version.c"
Include dependency graph for detect-ssl-version.c:

Go to the source code of this file.

Data Structures

struct  SSLVersionKeywords
 

Functions

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

Variables

struct SSLVersionKeywords ssl_version_keywords [TLS_SIZE]
 

Detailed Description

Author
Gurvinder Singh gurvi.nosp@m.nder.nosp@m.singh.nosp@m.dahi.nosp@m.ya@gm.nosp@m.ail..nosp@m.com

Implements the ssl_version keyword

Definition in file detect-ssl-version.c.

Function Documentation

◆ DetectSslVersionRegister()

void DetectSslVersionRegister ( void  )

Registration function for keyword: ssl_version.

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

References SigTableElmt_::AppLayerTxMatch, SigTableElmt_::desc, DETECT_AL_SSL_VERSION, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function:

Variable Documentation

◆ ssl_version_keywords

struct SSLVersionKeywords ssl_version_keywords[TLS_SIZE]
Initial value:
= {
{ "sslv2", SSLv2, SSL_VERSION_2 },
{ "sslv3", SSLv3, SSL_VERSION_3 },
{ "tls1.0", TLS10, TLS_VERSION_10 },
{ "tls1.1", TLS11, TLS_VERSION_11 },
{ "tls1.2", TLS12, TLS_VERSION_12 },
{ "tls1.3", TLS13, TLS_VERSION_13 },
}

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

SSLv3
@ SSLv3
Definition: detect-ssl-version.h:32
TLS13
@ TLS13
Definition: detect-ssl-version.h:36
TLS_VERSION_12
@ TLS_VERSION_12
Definition: app-layer-ssl.h:167
SSL_VERSION_3
@ SSL_VERSION_3
Definition: app-layer-ssl.h:164
TLS12
@ TLS12
Definition: detect-ssl-version.h:35
TLS_VERSION_13
@ TLS_VERSION_13
Definition: app-layer-ssl.h:168
SSLv2
@ SSLv2
Definition: detect-ssl-version.h:31
TLS_VERSION_11
@ TLS_VERSION_11
Definition: app-layer-ssl.h:166
TLS_VERSION_10
@ TLS_VERSION_10
Definition: app-layer-ssl.h:165
SSL_VERSION_2
@ SSL_VERSION_2
Definition: app-layer-ssl.h:163
TLS10
@ TLS10
Definition: detect-ssl-version.h:33
TLS11
@ TLS11
Definition: detect-ssl-version.h:34