reassign 685710 mingw-w64 found 685710 2.0.3-1 found 685710 3.0~svn5131-1 forwarded 685710 https://sourceforge.net/tracker/?func=detail&aid=3561209&group_id=202880&atid=983354 tags 685710 + patch thanks
Hi Mathieu, On Thu, Aug 23, 2012 at 07:37:57PM +0200, Mathieu Malaterre wrote: > It looks like wincrypt.h is incomplete. The following does not compile: > > $ cat t.c > #include <windows.h> > #include <wincrypt.h> > > //#define szOID_NIST_AES128_CBC "2.16.840.1.101.3.4.1.2" > //#define szOID_NIST_AES192_CBC "2.16.840.1.101.3.4.1.22" > //#define szOID_NIST_AES256_CBC "2.16.840.1.101.3.4.1.42" > > int main() > { > const char *s = szOID_NIST_AES128_CBC; > return 0; > } > > where: > > $ /usr/bin/x86_64-w64-mingw32-g++ t.c > t.c: In function 'int main()': > t.c:10:19: error: 'szOID_NIST_AES128_CBC' was not declared in this scope Thanks for reporting this, I've forwarded the attached patch upstream. Regards, Stephen
Index: mingw-w64-headers/include/wincrypt.h =================================================================== --- mingw-w64-headers/include/wincrypt.h (revision 5374) +++ mingw-w64-headers/include/wincrypt.h (working copy) @@ -835,6 +835,10 @@ #define szOID_INFOSEC_mosaicKMandUpdSig "2.16.840.1.101.2.1.1.20" #define szOID_INFOSEC_mosaicUpdatedInteg "2.16.840.1.101.2.1.1.21" +#define szOID_NIST_AES128_CBC "2.16.840.1.101.3.4.1.2" +#define szOID_NIST_AES192_CBC "2.16.840.1.101.3.4.1.22" +#define szOID_NIST_AES256_CBC "2.16.840.1.101.3.4.1.42" + typedef struct _CRYPT_OBJID_TABLE { DWORD dwAlgId; LPCSTR pszObjId;