utils

package
v0.0.0-...-563cb2d Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSelfSignedCertToClientPool

func AddSelfSignedCertToClientPool(certFile string) (*x509.CertPool, error)

func GenerateCert

func GenerateCert(host string, ip string) error

func LoadCerts

func LoadCerts(certFile string) ([][]byte, error)

func LoadPrivateKey

func LoadPrivateKey(keyFile string) (any, error)

func ReadUint16

func ReadUint16(b []byte) uint16

func ReadUint8

func ReadUint8(b []byte) uint8

func WriteUint16

func WriteUint16(b []byte, v uint16)

func WriteUint8

func WriteUint8(b []byte, v uint8)

Types

This section is empty.

Jump to

Keyboard shortcuts

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