schannel

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

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

Go to latest
Published: Oct 16, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package schannel provides access to the Secure Channel SSP Package.

Index

Constants

This section is empty.

Variables

View Source
var PackageInfo *sspi.PackageInfo

PackageInfo contains Secure Channel SSP package description.

Functions

func AcquireClientCredentials

func AcquireClientCredentials() (*sspi.Credentials, error)

Types

type Client

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

func NewClientContext

func NewClientContext(cred *sspi.Credentials, conn io.ReadWriter) *Client

func (*Client) AuthorityName

func (c *Client) AuthorityName() (string, error)

func (*Client) Handshake

func (c *Client) Handshake(serverName string) error

func (*Client) KeyInfo

func (c *Client) KeyInfo() (sessionKeySize uint32, sigAlg uint32, sigAlgName string, encAlg uint32, encAlgName string, err error)

func (*Client) ProtocolInfo

func (c *Client) ProtocolInfo() (name string, major, minor uint32, err error)

func (*Client) Read

func (c *Client) Read(data []byte) (int, error)

func (*Client) Shutdown

func (c *Client) Shutdown() error

func (*Client) Sizes

func (c *Client) Sizes() (uint32, uint32, uint32, uint32, error)

Sizes queries the context for the sizes used in per-message functions. It returns the maximum token size used in authentication exchanges, the maximum signature size, the preferred integral size of messages, the size of any security trailer, and any error.

func (*Client) UserName

func (c *Client) UserName() (string, error)

func (*Client) Write

func (c *Client) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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