mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-10-26 11:27:18 +00:00
Merge in DNS/adguard-home from AGDNS-3060-imp-gocognit-logs to master Squashed commit of the following: commit3026dc3566Merge:2b56f4236df258512dAuthor: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Jul 30 13:00:44 2025 +0300 Merge branch 'master' into AGDNS-3060-imp-gocognit-logs commit2b56f42364Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Jul 25 14:41:40 2025 +0300 all: imp docs commit101d043c85Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Jul 23 20:09:38 2025 +0300 all: imp code commit87cfa502f7Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Jul 23 14:51:33 2025 +0300 all: imp code commit07c1a04a40Author: 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)
|
|
}
|