blob: e45e2c7cbc518047062281e70240ce7d8e4da8cb [file] [log] [blame]
Takahiro Suzukid7bf8202020-12-17 20:21:59 +09001// 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
7package layers
8
9import (
10 "github.com/google/gopacket"
11)
12
13// TLSHandshakeRecord defines the structure of a Handshare Record
14type TLSHandshakeRecord struct {
15 TLSRecordHeader
16}
17
18// DecodeFromBytes decodes the slice into the TLS struct.
19func (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}