WinVerifyTrust WTD_STATEACTION_VERIFY wrong value

151 views
Skip to first unread message

Federico GC

unread,
Jun 22, 2021, 8:52:58 PM6/22/21
to golang-nuts
Hi all,
I've been struggling a lot to replicate a C++ code that uses WinVerifyTrustEx function in go  and I've found a discrepancy between the WTD_STATEACTION_VERIFY value defined in the file types_windows.go and the value defined in msdn documentation (and sdk WinTrust.h).
After changing the value to 1 in my code it started working fine. I checked in master code and the issue (typo) is still present. I also checked the issues in github and this one was not reported yet.
I also notice the lack of implementation of functions WTHelperProvDataFromStateData and WTHelperGetProvSignerFromChain (I implemented them using the NewLazySystemDLL and NewProc), will those be included in the future?

Thanks in advance,
Federico



jake...@gmail.com

unread,
Jun 23, 2021, 11:42:58 AM6/23/21
to golang-nuts
I would encourage you to file an issue (https://github.com/golang/go/issues), as this seems likely to be a bug.

amit choudhary

unread,
Sep 14, 2022, 3:03:26 PM9/14/22
to golang-nuts
can you please share the go implementation
Reply all
Reply to author
Forward
0 new messages