sni

package
v0.0.0-...-1ef8d7c Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerNameFromBytes

func ServerNameFromBytes(data []byte) (sn string, err error)

func ServerNameFromConn

func ServerNameFromConn(c net.Conn) (string, net.Conn, error)

Uses SNI to get the name of the server from the connection. Returns the ServerName and a buffered connection that will not have been read off of.

Types

This section is empty.

Jump to

Keyboard shortcuts

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