From: Mats Klepsland Date: Tue, 13 Oct 2015 13:35:33 +0000 (+0200) Subject: log-tls: added SNI field to extended output X-Git-Tag: suricata-3.0RC1~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f363d11afe1e91b9db3f8361a591051fff3c4ef3;p=thirdparty%2Fsuricata.git log-tls: added SNI field to extended output Added SNI field to extended tls log output. --- diff --git a/src/log-tlslog.c b/src/log-tlslog.c index edb0ded2d0..53ebad8bfc 100644 --- a/src/log-tlslog.c +++ b/src/log-tlslog.c @@ -83,6 +83,9 @@ static void LogTlsLogExtended(LogTlsLogThread *aft, SSLState * state) if (state->server_connp.cert0_fingerprint != NULL) { MemBufferWriteString(aft->buffer, " SHA1='%s'", state->server_connp.cert0_fingerprint); } + if (state->client_connp.sni != NULL) { + MemBufferWriteString(aft->buffer, " SNI='%s'", state->client_connp.sni); + } switch (state->server_connp.version) { case TLS_VERSION_UNKNOWN: MemBufferWriteString(aft->buffer, " VERSION='UNDETERMINED'");