aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/updater
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 11:41:45 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 20:18:46 +0200
commitd0eb8ffd2410ff68b32c922c65261742332dc864 (patch)
treeeace166b07cce61297e4231670e31d0c2106ef69 /updater
parentversion: add missing zsyscall (diff)
downloadwireguard-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.go2
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