detect-tls: declare ssl_state as const in GetData()

pull/3868/head
Mats Klepsland 6 years ago committed by Victor Julien
parent 0f7f35bd85
commit 008f08c1b3

@ -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;

@ -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;

@ -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;

@ -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;

@ -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;

@ -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) {

@ -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;

Loading…
Cancel
Save