tlsresumption

package module
v0.0.0-...-6a3f901 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

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

func MakeClientSessionStates(addr string, num int) ([]string, error)

MakeClientSessionStates makes num client session states for connecting to the TLS server at the given address. It connections 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL