From 895b08faaa4dcd1eca877884d9a6d5bbb0681f47 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Thu, 7 Jun 2012 19:29:04 +0530 Subject: [PATCH 3/3] ssl connection error message event added. Remove warning log for the same error alert --- src/app-layer-ssl.c | 8 ++++---- src/app-layer-ssl.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app-layer-ssl.c b/src/app-layer-ssl.c index e555b67..c0b70d5 100644 --- a/src/app-layer-ssl.c +++ b/src/app-layer-ssl.c @@ -411,10 +411,10 @@ static int SSLv2Decode(uint8_t direction, SSLState *ssl_state, switch (ssl_state->curr_connp->content_type) { case SSLV2_MT_ERROR: - SCLogWarning(SC_ERR_ALPARSER, "SSLV2_MT_ERROR msg_type received. " - "Error encountered in establishing the sslv2 " - "session, may be version"); - AppLayerDecoderEventsSetEvent(ssl_state->f, TLS_DECODER_EVENT_INVALID_HANDSHAKE_MESSAGE); + SCLogDebug("SSLV2_MT_ERROR msg_type received. " + "Error encountered in establishing the sslv2 " + "session, may be version"); + AppLayerDecoderEventsSetEvent(ssl_state->f, TLS_DECODER_EVENT_ERROR_MSG_ENCOUNTERED); break; diff --git a/src/app-layer-ssl.h b/src/app-layer-ssl.h index d509486..f96e04d 100644 --- a/src/app-layer-ssl.h +++ b/src/app-layer-ssl.h @@ -40,6 +40,7 @@ enum { TLS_DECODER_EVENT_CERTIFICATE_UNKNOWN_ELEMENT, TLS_DECODER_EVENT_CERTIFICATE_INVALID_LENGTH, TLS_DECODER_EVENT_CERTIFICATE_INVALID_STRING, + TLS_DECODER_EVENT_ERROR_MSG_ENCOUNTERED, }; /* Flag to indicate that server will now on send encrypted msgs */ -- 1.7.1