Add TLS version and cipher to the accessLog
This commit is contained in:
parent
41d22ef17e
commit
b05a5c818d
6 changed files with 54 additions and 17 deletions
12
pkg/tls/version.go
Normal file
12
pkg/tls/version.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package tls
|
||||
|
||||
import "crypto/tls"
|
||||
|
||||
// VersionsReversed Map of TLS versions from crypto/tls
|
||||
// Available TLS versions defined at https://golang.org/pkg/crypto/tls/#pkg-constants
|
||||
var VersionsReversed = map[uint16]string{
|
||||
tls.VersionTLS10: "1.0",
|
||||
tls.VersionTLS11: "1.1",
|
||||
tls.VersionTLS12: "1.2",
|
||||
tls.VersionTLS13: "1.3",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue