diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-10-26 18:58:41 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-10-27 19:04:36 +0200 |
commit | e349689c55c6b50f5c750ffc57311886f06a75c6 (patch) | |
tree | 2ef82584f71e160f8c8ab7c6391a697b3f847c05 /version/official.go | |
parent | driver: align 64-bit argument on ARM32 (diff) | |
download | wireguard-windows-e349689c55c6b50f5c750ffc57311886f06a75c6.tar.xz wireguard-windows-e349689c55c6b50f5c750ffc57311886f06a75c6.zip |
version: official: remove stutter
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'version/official.go')
-rw-r--r-- | version/official.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/version/official.go b/version/official.go index 00089ca0..a330700f 100644 --- a/version/official.go +++ b/version/official.go @@ -19,7 +19,7 @@ const ( policyExtensionOid = "2.5.29.32" ) -// These are easily by-passable checks, which do not serve serve security purposes. +// These are easily by-passable checks, which do not serve security purposes. // DO NOT PLACE SECURITY-SENSITIVE FUNCTIONS IN THIS FILE func IsRunningOfficialVersion() bool { @@ -129,8 +129,7 @@ func extractCertificatePolicies(path string, oid string) ([]string, error) { if cert == nil { break } - ci := (*windows.CertInfo)(unsafe.Pointer(cert.CertInfo)) - ext := windows.CertFindExtension(oid8, ci.CountExtensions, ci.Extensions) + ext := windows.CertFindExtension(oid8, cert.CertInfo.CountExtensions, cert.CertInfo.Extensions) if ext == nil { continue } |