]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-tls: declare ssl_state as const in GetData()
authorMats Klepsland <mats.klepsland@gmail.com>
Tue, 14 May 2019 06:35:42 +0000 (08:35 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 18 May 2019 05:29:23 +0000 (07:29 +0200)
src/detect-tls-cert-fingerprint.c
src/detect-tls-cert-issuer.c
src/detect-tls-cert-serial.c
src/detect-tls-cert-subject.c
src/detect-tls-ja3-hash.c
src/detect-tls-ja3-string.c
src/detect-tls-sni.c

index 7b739f37be409dc5ebee1ffd60f8abaf296c8ed4..056e2b52b7652d079e6cc724b8a9605a0702d3a7 100644 (file)
@@ -131,7 +131,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
 {
     InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id);
     if (buffer->inspect == NULL) {
-        SSLState *ssl_state = (SSLState *)f->alstate;
+        const SSLState *ssl_state = (SSLState *)f->alstate;
 
         if (ssl_state->server_connp.cert0_fingerprint == NULL) {
             return NULL;
index 8b5b72759e43691fb72520e95929b124021ef9d3..22e451ea2812292b2971dce03036ce053a1513b7 100644 (file)
@@ -121,7 +121,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
 {
     InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id);
     if (buffer->inspect == NULL) {
-        SSLState *ssl_state = (SSLState *)f->alstate;
+        const SSLState *ssl_state = (SSLState *)f->alstate;
 
         if (ssl_state->server_connp.cert0_issuerdn == NULL) {
             return NULL;
index f62bb76be49008641e374a304b8a00077912b541..cdaf0ae5e36426c4c830a8e39f39bbcab00e3cc8 100644 (file)
@@ -130,7 +130,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
 {
     InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id);
     if (buffer->inspect == NULL) {
-        SSLState *ssl_state = (SSLState *)f->alstate;
+        const SSLState *ssl_state = (SSLState *)f->alstate;
 
         if (ssl_state->server_connp.cert0_serial == NULL) {
             return NULL;
index b2db219f2626f08a803180078ec9177e7a79dd0b..99c931c1c40db856123a7e6251492c608d0bca2b 100644 (file)
@@ -120,7 +120,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
 {
     InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id);
     if (buffer->inspect == NULL) {
-        SSLState *ssl_state = (SSLState *)f->alstate;
+        const SSLState *ssl_state = (SSLState *)f->alstate;
 
         if (ssl_state->server_connp.cert0_subject == NULL) {
             return NULL;
index 5b1e19f693b15a8aa619fd971e62ce7b44baeb19..daf41f9d405f71b6221ab6f9d68413b05626204f 100644 (file)
@@ -138,7 +138,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
 {
     InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id);
     if (buffer->inspect == NULL) {
-        SSLState *ssl_state = (SSLState *)f->alstate;
+        const SSLState *ssl_state = (SSLState *)f->alstate;
 
         if (ssl_state->ja3_hash == NULL) {
             return NULL;
index 747b862733ccf8c6d30aefd3cd89d0c61ecaae55..1f22590658ab702249a9f8245eb5b5ac05627391 100644 (file)
@@ -128,7 +128,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
 {
     InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id);
     if (buffer->inspect == NULL) {
-        SSLState *ssl_state = (SSLState *)f->alstate;
+        const SSLState *ssl_state = (SSLState *)f->alstate;
 
         if (ssl_state->ja3_str == NULL ||
                 ssl_state->ja3_str->data == NULL) {
index ddc170606126543d3fba9319f1f44f4fa32e874c..e51f6f9945adb41df92f3909dfe9bf01f94f499f 100644 (file)
@@ -119,7 +119,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
 {
     InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id);
     if (buffer->inspect == NULL) {
-        SSLState *ssl_state = (SSLState *)f->alstate;
+        const SSLState *ssl_state = (SSLState *)f->alstate;
 
         if (ssl_state->client_connp.sni == NULL) {
             return NULL;