decoy

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecoyRegistrar

type DecoyRegistrar struct {
	Width uint

	ClientHelloID tls.ClientHelloID
	// contains filtered or unexported fields
}

func NewDecoyRegistrar

func NewDecoyRegistrar() *DecoyRegistrar

func NewDecoyRegistrarWithDialer deprecated

func NewDecoyRegistrarWithDialer(dialer DialFunc) *DecoyRegistrar

NewDecoyRegistrarWithDialer returns a decoy registrar with custom dialer.

Deprecated: Set dialer in tapdace.Dialer.DialerWithLaddr instead.

func (*DecoyRegistrar) PrepareRegKeys

func (r *DecoyRegistrar) PrepareRegKeys(pubkey [32]byte) error

PrepareRegKeys prepares key materials specific to the registrar

func (DecoyRegistrar) Register

func (r DecoyRegistrar) Register(cjSession *td.ConjureSession, ctx context.Context) (*td.ConjureReg, error)

func (*DecoyRegistrar) Send

func (r *DecoyRegistrar) Send(ctx context.Context, cjSession *td.ConjureSession, decoy *pb.TLSDecoySpec, dialError chan error)

type DialFunc

type DialFunc = func(ctx context.Context, network, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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