output-json-tls: added SNI field to extended output

Added SNI field to extended JSON output.
pull/1758/head
Mats Klepsland 11 years ago committed by Victor Julien
parent 3ac1a3d9fe
commit 285022fde9

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

Loading…
Cancel
Save