util

package
v0.106.0-b.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package util contains various utilities.

TODO(a.garipov): Such packages are widely considered an antipattern. Remove this when we refactor our project structure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTLSCiphers

func InitTLSCiphers() []uint16

InitTLSCiphers - the same as initDefaultCipherSuites() from src/crypto/tls/common.go

but with the difference that we don't use so many other default ciphers.

func LoadSystemRootCAs

func LoadSystemRootCAs() *x509.CertPool

LoadSystemRootCAs - load root CAs from the system Return the x509 certificate pool object Return nil if nothing has been found.

This means that Go.crypto will use its default algorithm to find system root CA list.

https://github.com/AdguardTeam/AdGuardHome/internal/issues/1311

Types

This section is empty.

Jump to

Keyboard shortcuts

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