Email Archive: mingw-users (read-only)

2000:
Jan
   
Feb
   
Mar
   
Apr
   
May
   
Jun
   
Jul
   
Aug
   
Sep
(371)
Oct
(167)
Nov
(412)
Dec
(208)
2001:
Jan
(378)
Feb
(302)
Mar
(269)
Apr
(296)
May
(306)
Jun
(381)
Jul
(346)
Aug
(315)
Sep
(195)
Oct
(216)
Nov
(280)
Dec
(227)
2002:
Jan
(309)
Feb
(333)
Mar
(328)
Apr
(407)
May
(517)
Jun
(519)
Jul
(400)
Aug
(580)
Sep
(1273)
Oct
(984)
Nov
(683)
Dec
(538)
2003:
Jan
(578)
Feb
(454)
Mar
(312)
Apr
(366)
May
(505)
Jun
(431)
Jul
(415)
Aug
(374)
Sep
(470)
Oct
(578)
Nov
(372)
Dec
(309)
2004:
Jan
(308)
Feb
(247)
Mar
(372)
Apr
(413)
May
(333)
Jun
(323)
Jul
(269)
Aug
(239)
Sep
(469)
Oct
(383)
Nov
(400)
Dec
(332)
2005:
Jan
(411)
Feb
(363)
Mar
(346)
Apr
(316)
May
(275)
Jun
(248)
Jul
(396)
Aug
(396)
Sep
(279)
Oct
(340)
Nov
(319)
Dec
(218)
2006:
Jan
(317)
Feb
(263)
Mar
(304)
Apr
(296)
May
(209)
Jun
(349)
Jul
(246)
Aug
(198)
Sep
(174)
Oct
(138)
Nov
(201)
Dec
(270)
2007:
Jan
(223)
Feb
(182)
Mar
(350)
Apr
(350)
May
(259)
Jun
(221)
Jul
(299)
Aug
(465)
Sep
(356)
Oct
(265)
Nov
(417)
Dec
(225)
2008:
Jan
(421)
Feb
(327)
Mar
(219)
Apr
(389)
May
(375)
Jun
(262)
Jul
(215)
Aug
(289)
Sep
(257)
Oct
(383)
Nov
(237)
Dec
(209)
2009:
Jan
(232)
Feb
(327)
Mar
(306)
Apr
(251)
May
(146)
Jun
(247)
Jul
(135)
Aug
   
Sep
   
Oct
   
Nov
   
Dec
   
From: Dave Korn <dave.korn@ar...> - 2007-12-11 18:51

Attachments: winsup-w32api-patch-applied.diff     
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....