tlslog: don't log as "resumed" without ServerHello

Don't log a session as "resumed" if a ServerHello record has not been
seen. This makes sure that incomplete TLS sessions where the ClientHello
contains a session ticket, is not logged as a session resumption.
pull/3488/head
Mats Klepsland 7 years ago
parent 814e1624c2
commit 8c3f1aa7a5

@ -475,6 +475,7 @@ static int LogTlsLogger(ThreadVars *tv, void *thread_data, const Packet *p,
been seen. */
if ((ssl_state->server_connp.cert0_issuerdn == NULL) &&
(ssl_state->server_connp.cert0_subject == NULL) &&
(ssl_state->flags & SSL_AL_FLAG_STATE_SERVER_HELLO) &&
((ssl_state->flags & SSL_AL_FLAG_LOG_WITHOUT_CERT) == 0)) {
MemBufferWriteString(aft->buffer, " Session='resumed'");
}

Loading…
Cancel
Save