atlscredentials

package
v2.19.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package atlscredentials handles creation of TLS credentials for attested TLS (ATLS).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

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

Credentials for attested TLS (ATLS).

func New

func New(issuer atls.Issuer, validators []atls.Validator) *Credentials

New creates new ATLS Credentials.

func (*Credentials) ClientHandshake

func (c *Credentials) ClientHandshake(ctx context.Context, authority string, rawConn net.Conn) (net.Conn, credentials.AuthInfo, error)

ClientHandshake performs the client handshake.

func (*Credentials) Clone

Clone the credentials object.

func (*Credentials) Info

Info provides information about the protocol.

func (*Credentials) OverrideServerName

func (c *Credentials) OverrideServerName(_ string) error

OverrideServerName is not supported and will fail.

func (*Credentials) ServerHandshake

func (c *Credentials) ServerHandshake(rawConn net.Conn) (net.Conn, credentials.AuthInfo, error)

ServerHandshake performs the server handshake.

Jump to

Keyboard shortcuts

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