Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | // Copyright 2018 The GoPacket Authors. All rights reserved. |
| 2 | // |
| 3 | // Use of this source code is governed by a BSD-style license |
| 4 | // that can be found in the LICENSE file in the root of the source |
| 5 | // tree. |
| 6 | |
| 7 | package layers |
| 8 | |
| 9 | import ( |
| 10 | "github.com/google/gopacket" |
| 11 | ) |
| 12 | |
| 13 | // TLSHandshakeRecord defines the structure of a Handshare Record |
| 14 | type TLSHandshakeRecord struct { |
| 15 | TLSRecordHeader |
| 16 | } |
| 17 | |
| 18 | // DecodeFromBytes decodes the slice into the TLS struct. |
| 19 | func (t *TLSHandshakeRecord) decodeFromBytes(h TLSRecordHeader, data []byte, df gopacket.DecodeFeedback) error { |
| 20 | // TLS Record Header |
| 21 | t.ContentType = h.ContentType |
| 22 | t.Version = h.Version |
| 23 | t.Length = h.Length |
| 24 | |
| 25 | // TODO |
| 26 | |
| 27 | return nil |
| 28 | } |