| // Copyright 2018 The GoPacket Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license |
| // that can be found in the LICENSE file in the root of the source |
| "github.com/google/gopacket" |
| // TLSHandshakeRecord defines the structure of a Handshare Record |
| type TLSHandshakeRecord struct { |
| // DecodeFromBytes decodes the slice into the TLS struct. |
| func (t *TLSHandshakeRecord) decodeFromBytes(h TLSRecordHeader, data []byte, df gopacket.DecodeFeedback) error { |
| t.ContentType = h.ContentType |