{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1753361043,"commit_time":1753393777,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"7d8d5cf876b8af28234c382d318517cca4a26032","message":"windows: include `wincrypt.h` before `iphlpapi.h` for mingw-w64 <6\n\nRequired for mingw-w64 5.x (and older) builds targeting a Windows 7+.\n\nmingw-w64 6+ fixed `mprapi.h` (included indirectly via `iphlpapi.h`)\nto include `wincrypt.h` for the missing types.\n\nMSVC is not affected because SDK 7.1a (the oldest MS SDK curl supports),\n`mprapi.h` does include `wincrypt.h`.\n\nMake sure to include `wincrypt.h` before including `iphlpapi.h` as\na workaround. `wincrypt.h` is used unconditionally even though it's\nnot available in UWP. This is safe in this context, because we use\n`iphlpapi.h` for `if_nametoindex`, which is not supported and used\nin UWP builds.\n\nThis fixes auto-detection that missed detecting `if_nametoindex` in\nthe affected combination, and this build error in non-unity builds:\n```\nIn file included from D:/my-cache/mingw32/i686-w64-mingw32/include/iprtrmib.h:9:0,\n                 from D:/my-cache/mingw32/i686-w64-mingw32/include/iphlpapi.h:17,\n                 from D:/a/curl/curl/lib/url.c:63:\nD:/my-cache/mingw32/i686-w64-mingw32/include/mprapi.h:865:3: error: unknown type name 'CERT_NAME_BLOB'\n   CERT_NAME_BLOB *certificateNames;\n   ^~~~~~~~~~~~~~\nD:/my-cache/mingw32/i686-w64-mingw32/include/mprapi.h:887:3: error: unknown type name 'CRYPT_HASH_BLOB'\n   CRYPT_HASH_BLOB certBlob;\n   ^~~~~~~~~~~~~~~\n```\nRef: https://github.com/curl/curl/actions/runs/16497057672/job/46645264552?pr=18012#step:10:140\n\nThis combination is not normally tested in CI. It was caught in\nthe `dl-mingw, CM 6.4.0-i686 schannel !unity Win7` job while working\non another PR.\n\nFollow-up to 0d71b18153c8edb996738f8a362373fc72d0013b #17413\nRef: #18009\nCloses #18012\n","parents":["043da5a6e678d8aba0cd1c783d1cd60330c6b7d0"],"tree_hash":"c7a37f62bd61ee2c92a26f72a9f0cc7fb3745f43"}