Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConnectionState ¶
func CheckConnectionState(state *tls.ConnectionState) error
CheckConnectionState examines SCTs (both embedded and in the TLS extension) and returns nil if at least one of them is valid.
Example ¶
// Verifying the SCTs after a HTTPS GET request. resp, err := http.Get("https://www.certificate-transparency.org") if err != nil { panic("get failed " + err.Error()) } err = sct.CheckConnectionState(resp.TLS) if err != nil { panic("SCT check failed " + err.Error()) }
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
examples
|
|
check_get_response
command
|
|
dial_tls
command
|
|
tls_config_verify
command
|
Click to show internal directories.
Click to hide internal directories.