diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-30 11:41:45 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-30 20:18:46 +0200 |
commit | d0eb8ffd2410ff68b32c922c65261742332dc864 (patch) | |
tree | eace166b07cce61297e4231670e31d0c2106ef69 /updater | |
parent | version: add missing zsyscall (diff) | |
download | wireguard-windows-d0eb8ffd2410ff68b32c922c65261742332dc864.tar.xz wireguard-windows-d0eb8ffd2410ff68b32c922c65261742332dc864.zip |
version: add certificate checking for official versions
This is an easy circumventable check designed mostly for convenience.
Diffstat (limited to 'updater')
-rw-r--r-- | updater/downloader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/downloader.go b/updater/downloader.go index c1ca4beb..382d284b 100644 --- a/updater/downloader.go +++ b/updater/downloader.go @@ -162,7 +162,7 @@ func DownloadVerifyAndExecute() (progress chan DownloadProgress) { out = nil progress <- DownloadProgress{Activity: "Verifying authenticode signature"} - if !version.IsOfficialPath(unverifiedDestinationFilename) { + if !version.VerifyAuthenticode(unverifiedDestinationFilename) { os.Remove(unverifiedDestinationFilename) progress <- DownloadProgress{Error: errors.New("The downloaded update does not have an authentic authenticode signature")} return |