sch

package
v0.0.0-...-90a95e1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer

type Layer struct {
	// contains filtered or unexported fields
}

Layer - Schannel Layer.

func NewLayer

func NewLayer(opts ...Option) (layer *Layer)

NewLayer - Creates a new Schannel layer.

func (*Layer) Close

func (layer *Layer) Close() error

Close - Does nothing.

func (*Layer) Conn

func (layer *Layer) Conn(conn net.Conn) (net.Conn, error)

Conn - Wraps the connection with a secure channel that uses Schannel.

func (*Layer) Dial

func (layer *Layer) Dial(addr string, timeout time.Duration) (net.Conn, error)

Dial - Returns nil, nil. Not a dialer.

func (*Layer) IsDialer

func (layer *Layer) IsDialer() bool

IsDialer - Returns false. Schannel layer is not a Dialer.

func (*Layer) Listener

func (layer *Layer) Listener(l net.Listener) (net.Listener, error)

Listener - Wraps listener with a Schannel layer.

func (*Layer) Name

func (layer *Layer) Name() string

Name - Returns "sch".

type Option

type Option func(*Layer)

Option - Schannel layer option.

func WithPrivKey

func WithPrivKey(key *[64]byte) Option

WithPrivKey - Sets Schannel private key.

func WithPubKey

func WithPubKey(key *[32]byte) Option

WithPubKey - Sets Schannel public key.

Jump to

Keyboard shortcuts

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