14 lines
422 B
Go
14 lines
422 B
Go
//go:build !windows
|
|
|
|
package winpwn
|
|
|
|
import "errors"
|
|
|
|
// VerifyAuthenticodeSignature is only available when winpwn is built for
|
|
// Windows (it shells out to wintrust.dll via WinVerifyTrust). Use
|
|
// CheckSecResult.AuthenticodeSigned for the cross-platform presence-only
|
|
// check.
|
|
func VerifyAuthenticodeSignature(path string) (bool, error) {
|
|
return false, errors.New("VerifyAuthenticodeSignature requires GOOS=windows")
|
|
}
|