Files
netbird/client/internal/certproof/collect_other.go
T
2026-09-21 14:59:39 +02:00

25 lines
866 B
Go

//go:build !darwin && !windows
package certproof
import (
"context"
"github.com/netbirdio/netbird/shared/management/certposture"
"github.com/netbirdio/netbird/shared/management/proto"
)
// CollectProofs answers the certificate challenges in checks from the platform store,
// joined by the PKCS#11 token that token names when it names one. Only macOS and
// Windows keep per-user certificates out of reach of a privileged daemon, so every
// other platform reads its store in the daemon itself.
func CollectProofs(ctx context.Context, checks []*proto.Checks, peerKey []byte, token PKCS11Config) []certposture.Proof {
return Collect(ctx, storeWithToken(token), checks, peerKey)
}
// helperStore is the store the helper reads. Nothing launches a helper on these
// platforms, so it is the platform default.
func helperStore() Store {
return DefaultStore()
}