Hi MinGW users, hi Elaspo and Chris,
At Corinna's request[*], I have applied the attached patch to the wincrypt
header in w32api. This fixes a couple of bugs without which it just would not
compile: one struct included another as a member that wasn't defined until later
in the file, and another pointer-to-struct typedef required by a prototype
wasn't present at all. I reversed the order of the dependent struct definitions
and added an forward declaration for the typedef (since only the pointer type
was needed, I left the type incomplete - no problem as far as passing around
pointers goes).
Elsapo and Chris, I've Cc'd you because you were the author and committer,
respectively, of the original change that introduced this problem. I think the
fix is obviously correct (and in the very worst case, harmless), but maybe
there's something odd/different in my environment (or perhaps yours) that would
explain what's going on, so here's a heads-up for you. The patch can of course
be reverted at a moment's notice if there's any problem with it or if you guys
have a better/preferred solution (e.g. an actual definition for struct
_CRYPT_DECODE_PARA).
Otherwise, HTH!
2007-12-11 Dave Korn <dave.korn@ar...>
* include/wincrypt.h (PCRYPT_DECODE_PARA): Add missing typedef.
(CERT_POLICY_MAPPINGS_INFO): Move before CERT_POLICY_MAPPING.
cheers,
DaveK
[*] - http://cygwin.com/ml/cygwin-patches/2007-q4/msg00039.html
--
Can't think of a witty .sigline today....
|