Documentation ¶
Overview ¶
Package tlsresumption provides utilities for implementing out of band sharing of client session states for tls session resumption.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeClientSessionStates ¶
MakeClientSessionStates makes num client session states for connecting to the TLS server at the given address. It connects to the server and handshakes num times and returns as many client session states as it can successfully build, returning the latest error.
Note, this does not verify the server's certificate so is potentially susceptible to MITM attacks.
func ParseClientSessionState ¶
func ParseClientSessionState(serialized string) (*utls.ClientSessionState, error)
ParseClientSessionState parses the serialized client session state into a utls.ClientSessionState
func SerializeClientSessionState ¶
func SerializeClientSessionState(ss *utls.ClientSessionState) (string, error)
SerializeClientSessionState serializes a ClientSessionState into a string representation of the same.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
makesessions
This program generates 1 or more client session states by handshaking with a TLS server and writes them to stdout in Base64 encoded form, with one session per line.
|
This program generates 1 or more client session states by handshaking with a TLS server and writes them to stdout in Base64 encoded form, with one session per line. |