-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRYPTOAPI_BLOB
exists in metadata but not in WinSDK
#1339
Comments
That sounds like what I requested here: #1330 How exhaustive is your testing so far? Just wondering how many more issues are lurking in metadata. And are you testing against the original headers with MSVC or are you generating C structs to compare with? Obviously, the latter would hide errors in metadata. |
This is just a naming issue. But there are several typedefs for this struct. Is CRYPT_INTEGER_BLOB what we want to use for all cases? Or should we stick with the more generic CRYPTOAPI_BLOB? |
A single struct seems preferable to an explosion of identical structs. |
Yeah. But you could pick any one of the typedef names you like, so long as it's one that exists in C. I recommended |
Ok. It's first in the list and is the only one with documentation so that's a good reason to use it. Thanks. |
I currently test about 350 structs with every build. I have some Dart code that autogenerates a C file, which is compiled on 32-bit and 64-bit architectures to generate a JSON-style map of structs to This is the first time I've seen a regression, which suggests that the problem isn't endemic. I think these handcrafted enum types are problematic, though -- I've seen two in the last few weeks which have been generated incorrectly (#1344 and #1340). |
Ah I was hoping you were comparing against the originals as in #1330 - that would flush out most all issues of this kind. |
Windows.Win32.Security.Cryptography.CRYPTOAPI_BLOB
is defined as a struct in the metadata, but this struct does not appear in the Win32 header files, to the best of my knowledge.I think this is really
CRYPT_INTEGER_BLOB
.Here is an extract from wincrypt.h, which I think shows that this name has been generated incorrectly:
It's critical (for my purposes) that the struct is the same as the C equivalent; amongst other things, I automatically generate tests that the generated Dart struct matches the equivalent C size, and I can only do that if the structs in the Win32 metadata resolve.
Thanks!
The text was updated successfully, but these errors were encountered: