Skip to content
Permalink
Browse files

schannel: enable CALG_TLS1PRF for w32api >= 5.1

  • Loading branch information...
MarcelRaad committed Jul 12, 2018
1 parent 29b78a5 commit 2c33105dbf146c78a9a9db6867d0644838e92856
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/vtls/schannel.c
@@ -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

0 comments on commit 2c33105

Please sign in to comment.
You can’t perform that action at this time.