aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-08-03 17:17:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-08-03 17:17:27 +0200
commitc3dfd4ea1936d02d48a1038d105265765fa153b5 (patch)
tree49b593010936736708fd7e832fb7bf93d9b617d6
parentwinipcfg: set MTU in registry after setting it in iphlpapi (diff)
downloadwireguard-windows-c3dfd4ea1936d02d48a1038d105265765fa153b5.tar.xz
wireguard-windows-c3dfd4ea1936d02d48a1038d105265765fa153b5.zip
updater: return to using proper constant
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--updater/authenticode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/authenticode.go b/updater/authenticode.go
index 11aa84d6..fc8691f3 100644
--- a/updater/authenticode.go
+++ b/updater/authenticode.go
@@ -21,7 +21,7 @@ func verifyAuthenticode(path string) bool {
UIChoice: windows.WTD_UI_NONE,
RevocationChecks: windows.WTD_REVOKE_WHOLECHAIN, // Full revocation checking, as this is called with network connectivity.
UnionChoice: windows.WTD_CHOICE_FILE,
- StateAction: 1, // Should be `windows.WTD_STATEACTION_VERIFY`, but the constant is wrong right now.
+ StateAction: windows.WTD_STATEACTION_VERIFY,
FileOrCatalogOrBlobOrSgnrOrCert: unsafe.Pointer(&windows.WinTrustFileInfo{
Size: uint32(unsafe.Sizeof(windows.WinTrustFileInfo{})),
FilePath: path16,