Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID [32]byte
ID is the type representing a generated ID.
func PeerID ¶
PeerID is modified https://github.com/andrew-d/ptls/blob/b89c7dcc94630a77f225a48befd3710144c7c10e/ptls.go#L81
func (ID) Compare ¶
Compares the two given IDs. Note that this function is NOT SAFE AGAINST TIMING ATTACKS. If you are simply checking for equality, please use the Equals function, which is.
func (ID) Equals ¶
Checks the two given IDs for equality. This function uses a constant-time comparison algorithm to prevent timing attacks.
func (*ID) MarshalText ¶
Implements the `TextMarshaler` interface from the encoding package.
func (*ID) UnmarshalText ¶
Implements the `TextUnmarshaler` interface from the encoding package.
type ImproperCertsNumberError ¶
type ImproperCertsNumberError struct {
// contains filtered or unexported fields
}
ImproperCertsNumberError is returned from Server/Client whenever the remote peer presents a number of PeerCertificates that is not 1.
func (ImproperCertsNumberError) Error ¶
func (e ImproperCertsNumberError) Error() string