diff options
Diffstat (limited to 'framework/src/suricata/src/output-json-tls.c')
-rw-r--r-- | framework/src/suricata/src/output-json-tls.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/src/suricata/src/output-json-tls.c b/framework/src/suricata/src/output-json-tls.c index 4cbd21ae..d8b8078f 100644 --- a/framework/src/suricata/src/output-json-tls.c +++ b/framework/src/suricata/src/output-json-tls.c @@ -92,6 +92,12 @@ void JsonTlsLogJSONExtended(json_t *tjs, SSLState * state) json_object_set_new(tjs, "fingerprint", json_string(state->server_connp.cert0_fingerprint)); + /* tls.sni */ + if (state->client_connp.sni) { + json_object_set_new(tjs, "sni", + json_string(state->client_connp.sni)); + } + /* tls.version */ switch (state->server_connp.version) { case TLS_VERSION_UNKNOWN: |