[gnutls-devel] [PATCH 2/4] Set _WIN32_WINNT to 0x600, at least with some MinGW versions ncrypt.h checks this define to be at least 0x600.

Eli Zaretskii eliz at gnu.org
Sat Apr 18 12:59:39 CEST 2015

> From: Tim Kosse <tim.kosse at filezilla-project.org>
> Date: Sat, 18 Apr 2015 11:38:55 +0200
> +// Before including any Windows header we need to set _WIN32_WINNT to Vista
> +// (or higher) so that the NCRYPT stuff can be used.
> +#if _WIN32_WINNT < 0x600
> +#undef _WIN32_WINNT
> +#define _WIN32_WINNT 0x600
> +#endif

Doesn't this mean the produced GnuTLS will refuse to run on XP and
older, even if the NCRYPT functionality is not used at all, because it
will be linked against ncrypt.dll?  If so, I don't think this is the
right fix; instead, GnuTLS should load ncrypt.dll dynamically, when
needed, and call the functions from there via pointers.

More information about the Gnutls-devel mailing list