Open Nuklon opened 1 year ago
WTHelperGetProvSignerFromChain should also take a pointer.
A workaround is to set allowMarshaling to false. It seems there's some logic wrong there as this shouldn't be done here.
Thanks for the excellent bug report. I was able to repro.
@AArnott, what would be needed to get this fixed somehow? I'm not entirely sure where to fix this in the code.
Fixes always start with a test case added to the repo that fails. Then the challenge is to understand the problem enough to change the source generator to recognize the scenario and fix it -- without breaking any other tests. That's usually not too hard. I just haven't had time to take this one on yet. Anything you can do toward it though would be most welcome.
Actual behavior
It's generated like this:
But it should return a pointer to CRYPT_PROVIDER_DATA.
In the metadata this is OK:
Expected behavior
A clear and concise description of what you expected to happen.
Repro steps
NativeMethods.txt
content:Context
LangVersion
(if explicitly set by project): latest