Skip to content

Resumable TLS client connection without doing any additional handshake operations, implemented in golang

License

Notifications You must be signed in to change notification settings

igolaizola/resume-tls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resume-tls

Resumable TLS client connection without doing any additional handshake operations, implemented in golang

Details

  • Client stores some handshake data and TLS inner sequential numbers
  • State object needed for resume a connection is public and serializable

Usage

// Start a new TLS client
cli := resumetls.Client(conn, &tls.Config{}, nil)
cli.Handshake()

// Perform multiple cli.Read and cli.Write here
...

// Get State whenever we want to pause the client
state := cli.State()

// Resume client using previously obtained state
cli2 := resumetls.Client(conn, &tls.Config{}, state)

// Continue with cli2.Read and cli2.Write here
...

About

Resumable TLS client connection without doing any additional handshake operations, implemented in golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages