mirror of
https://git.vectorsigma.ru/public/AdGuardHome.git
synced 2026-07-29 10:49:18 +00:00
Merge in DNS/adguard-home from AGDNS-3060-imp-gocognit-logs to master
Squashed commit of the following:
commit 3026dc35662c71c125c60198f828e7da7e8e5b4f
Merge: 2b56f4236 df258512d
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Wed Jul 30 13:00:44 2025 +0300
Merge branch 'master' into AGDNS-3060-imp-gocognit-logs
commit 2b56f423649ef0e5734a3a1d9c0b5df178462e29
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Fri Jul 25 14:41:40 2025 +0300
all: imp docs
commit 101d043c85e8b813f6b28751edeeb6c6b43578a9
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Wed Jul 23 20:09:38 2025 +0300
all: imp code
commit 87cfa502f7abf5b8f8a18b71f4a99aab9a066961
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Wed Jul 23 14:51:33 2025 +0300
all: imp code
commit 07c1a04a4022f4e38282a538670d575fba949bb2
Author: Stanislav Chzhen <s.chzhen@adguard.com>
Date: Tue Jul 22 20:04:58 2025 +0300
all: imp gocognit, logs
17 lines
445 B
Go
17 lines
445 B
Go
package aghtls
|
|
|
|
import (
|
|
"context"
|
|
"crypto/x509"
|
|
"log/slog"
|
|
)
|
|
|
|
// SystemRootCAs tries to load root certificates from the operating system. It
|
|
// returns nil in case nothing is found so that Go' crypto/x509 can use its
|
|
// default algorithm to find system root CA list.
|
|
//
|
|
// See https://github.com/AdguardTeam/AdGuardHome/issues/1311.
|
|
func SystemRootCAs(ctx context.Context, l *slog.Logger) (roots *x509.CertPool) {
|
|
return rootCAs(ctx, l)
|
|
}
|