mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Enable signature checking in beta and staging release channels
This commit is contained in:
parent
f35d590679
commit
b1b31257b4
2 changed files with 11 additions and 0 deletions
|
@ -28,6 +28,16 @@ var (
|
|||
BinarySigningTrustStore = jess.NewMemTrustStore()
|
||||
)
|
||||
|
||||
// GetVerificationConfig returns the verification options based on the release channel.
|
||||
func GetVerificationConfig(releaseChannel string) map[string]*updater.VerificationOptions {
|
||||
switch releaseChannel {
|
||||
case ReleaseChannelBeta, ReleaseChannelStaging:
|
||||
return VerificationConfig
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
for _, signingKey := range BinarySigningKeys {
|
||||
rcpt, err := jess.RecipientFromTextFormat(signingKey)
|
||||
|
|
|
@ -111,6 +111,7 @@ func start() error {
|
|||
UserAgent: UserAgent,
|
||||
MandatoryUpdates: helper.MandatoryUpdates(),
|
||||
AutoUnpack: helper.AutoUnpackUpdates(),
|
||||
Verification: helper.GetVerificationConfig(initialReleaseChannel),
|
||||
DevMode: devMode(),
|
||||
Online: true,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue