mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
schannel: enable CALG_TLS1PRF for w32api >= 5.1
The definition of CALG_TLS1PRF has been fixed in the 5.1 branch:
73aedcc0f2
This commit is contained in:
parent
29b78a537f
commit
2c33105dbf
@ -285,8 +285,12 @@ get_alg_id_by_name(char *name)
|
||||
#ifdef CALG_HMAC
|
||||
CIPHEROPTION(CALG_HMAC);
|
||||
#endif
|
||||
#if !defined(__W32API_VERSION) || defined(__MINGW64_VERSION_MAJOR)
|
||||
/* CALG_TLS1PRF has a syntax error in MinGW's w32api,
|
||||
#if !defined(__W32API_MAJOR_VERSION) || \
|
||||
!defined(__W32API_MINOR_VERSION) || \
|
||||
defined(__MINGW64_VERSION_MAJOR) || \
|
||||
(__W32API_MAJOR_VERSION > 5) || \
|
||||
((__W32API_MAJOR_VERSION == 5) && (__W32API_MINOR_VERSION > 0))
|
||||
/* CALG_TLS1PRF has a syntax error in MinGW's w32api up to version 5.0,
|
||||
see https://osdn.net/projects/mingw/ticket/38391 */
|
||||
CIPHEROPTION(CALG_TLS1PRF);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user