mitm

package
v0.0.0-...-eacdfbc Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCert

func GenCert(ca *tls.Certificate, names []string) (*tls.Certificate, error)

func Handshake

func Handshake(w http.ResponseWriter, config *tls.Config) (net.Conn, error)

func LoadCA

func LoadCA(certFilePath string, keyFilePath string) (tls.Certificate, error)

Types

type OnCloseConn

type OnCloseConn struct {
	net.Conn
	F func()
}

A onCloseConn implements net.Conn and calls its f on Close.

func (*OnCloseConn) Close

func (c *OnCloseConn) Close() error

type OneShotListener

type OneShotListener struct {
	C net.Conn
}

func (*OneShotListener) Accept

func (l *OneShotListener) Accept() (net.Conn, error)

func (*OneShotListener) Addr

func (l *OneShotListener) Addr() net.Addr

func (*OneShotListener) Close

func (l *OneShotListener) Close() error

Jump to

Keyboard shortcuts

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