xtls

package
v0.0.0-...-2545617 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSConfig

func NewTLSConfig(options *ClientOptions) (*tls.Config, error)

Types

type ClientOptions

type ClientOptions struct {
	PKCS12        PKCS12Config `json:"pkcs12" yaml:"pkcs12"`
	TLSSkipVerify bool         `json:"-" yaml:"-"`
	TLSMinVersion uint16       `json:"-" yaml:"-"`
	TLSMaxVersion uint16       `json:"-" yaml:"-"`
}

func DefaultClientOptions

func DefaultClientOptions() *ClientOptions

type PKCS12Config

type PKCS12Config struct {
	Path     string
	Password string
}

Jump to

Keyboard shortcuts

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