Documentation ¶
Overview ¶
Package tls contains definitions and methods related to tags parsed from the TLS handshake
Index ¶
Constants ¶
View Source
const ( TagTLSVersion = "tls.version:" TagTLSCipherSuiteID = "tls.cipher_suite_id:" TagTLSClientVersion = "tls.client_version:" )
Constants for tag keys
View Source
const ( OfferedTLSVersion10 uint8 = 0x01 OfferedTLSVersion11 uint8 = 0x02 OfferedTLSVersion12 uint8 = 0x04 OfferedTLSVersion13 uint8 = 0x08 )
Bitmask constants for Offered_versions matching kernelspace definitions
Variables ¶
View Source
var ClientVersionTags = map[uint16]string{ tls.VersionTLS10: TagTLSClientVersion + version10, tls.VersionTLS11: TagTLSClientVersion + version11, tls.VersionTLS12: TagTLSClientVersion + version12, tls.VersionTLS13: TagTLSClientVersion + version13, }
ClientVersionTags maps TLS versions to tag names for client offered versions (exported for testing)
View Source
var VersionTags = map[uint16]string{ tls.VersionTLS10: TagTLSVersion + version10, tls.VersionTLS11: TagTLSVersion + version11, tls.VersionTLS12: TagTLSVersion + version12, tls.VersionTLS13: TagTLSVersion + version13, }
VersionTags maps TLS versions to tag names for server chosen version (exported for testing)
Functions ¶
This section is empty.
Types ¶
type Tags ¶
Tags holds the TLS tags. It is used to store the TLS version, cipher suite and offered versions. We can't use the struct from eBPF as the definition is shared with windows.
func (*Tags) GetDynamicTags ¶
GetDynamicTags generates dynamic tags based on TLS information
Directories ¶
Path | Synopsis |
---|---|
gotls
|
|
testutil
Package testutil provides utilities for testing the TLS package.
|
Package testutil provides utilities for testing the TLS package. |
testutil/gotls_client
Package main is a simple client for the gotls_server.
|
Package main is a simple client for the gotls_server. |
testutil/gotls_server
Package main is a simple client for the gotls_server.
|
Package main is a simple client for the gotls_server. |
Click to show internal directories.
Click to hide internal directories.