tlsresumption

package module
v0.0.0-...-72705ac Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 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 command
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