Squashed commit of the following:
commit
541a74e8d1c6a088dfd9971e433faaefdfcaed83
Author: Kanimozhi Murthi <kamurthi@cisco.com>
Date: Wed Aug 21 07:07:48 2019 -0400
appid: handle 'change cipher spec' in 'server hello' to allow some app detection for tls 1.3 traffic
hdr3 = (const ServiceSSLV3Hdr*)data;
ver = ntohs(hdr3->version);
if (size < sizeof(ServiceSSLV3Hdr) ||
- hdr3->type != SSL_HANDSHAKE ||
+ (hdr3->type != SSL_HANDSHAKE &&
+ hdr3->type != SSL_CHANGE_CIPHER ) ||
(ver != 0x0300 &&
ver != 0x0301 &&
ver != 0x0302 &&
{
goto fail;
}
+ if (hdr3->type == SSL_CHANGE_CIPHER)
+ goto success;
data += sizeof(ServiceSSLV3Hdr);
size -= sizeof(ServiceSSLV3Hdr);
ss->tot_length = ntohs(hdr3->len);