]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
log-tls: added SNI field to extended output
authorMats Klepsland <mats.klepsland@gmail.com>
Tue, 13 Oct 2015 13:35:33 +0000 (15:35 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 23 Nov 2015 09:37:17 +0000 (10:37 +0100)
Added SNI field to extended tls log output.

src/log-tlslog.c

index edb0ded2d0fead90c38bcf4882c0fb25a24471a9..53ebad8bfc56719718a7b16dbbb8cf1b1fb7ee34 100644 (file)
@@ -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'");