Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions netx/archival/archival.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ type TLSHandshake struct {
NegotiatedProtocol string `json:"negotiated_protocol"`
NoTLSVerify bool `json:"no_tls_verify"`
PeerCertificates []MaybeBinaryValue `json:"peer_certificates"`
ServerName string `json:"server_name"`
T float64 `json:"t"`
TLSVersion string `json:"tls_version"`
TransactionID int64 `json:"transaction_id,omitempty"`
Expand All @@ -491,6 +492,7 @@ func NewTLSHandshakesList(begin time.Time, events []trace.Event) []TLSHandshake
NegotiatedProtocol: ev.TLSNegotiatedProto,
NoTLSVerify: ev.NoTLSVerify,
PeerCertificates: makePeerCerts(ev.TLSPeerCerts),
ServerName: ev.TLSServerName,
T: ev.Time.Sub(begin).Seconds(),
TLSVersion: ev.TLSVersion,
})
Expand Down
6 changes: 4 additions & 2 deletions netx/archival/archival_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,9 @@ func TestNewTLSHandshakesList(t *testing.T) {
}, {
Raw: []byte("abad1dea"),
}},
TLSVersion: "TLSv1.3",
Time: begin.Add(55 * time.Millisecond),
TLSServerName: "x.org",
TLSVersion: "TLSv1.3",
Time: begin.Add(55 * time.Millisecond),
}},
},
want: []archival.TLSHandshake{{
Expand All @@ -418,6 +419,7 @@ func TestNewTLSHandshakesList(t *testing.T) {
}, {
Value: "abad1dea",
}},
ServerName: "x.org",
T: 0.055,
TLSVersion: "TLSv1.3",
}},
Expand Down