Skip to content

Commit c42261a

Browse files
authored
Merge pull request libgit2#4603 from pks-t/pks/appveyor-winhttp-workaround
appveyor: workaround for intermittent test failures
2 parents b5e0cfa + 723e1e9 commit c42261a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

appveyor.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ build_script:
4343
if "%GENERATOR%"=="MSYS Makefiles" (C:\MinGW\msys\1.0\bin\sh --login /c/projects/libgit2/script/appveyor-mingw.sh)
4444
test_script:
4545
- ps: |
46+
# Disable DHE key exchange to fix intermittent build failures ("A buffer
47+
# provided was too small") due to SChannel bug. See e.g.
48+
# - https://github.com/aws/aws-sdk-cpp/issues/671
49+
# - https://github.com/dotnet/corefx/issues/7812
50+
New-Item HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithm\Diffie-Hellman -Force | New-ItemProperty -Name Enabled -Value 0 -Force
4651
$ErrorActionPreference="Stop"
4752
Start-FileDownload https://github.com/ethomson/poxyproxy/releases/download/v0.1.0/poxyproxy-0.1.0.jar -FileName poxyproxy.jar
4853
# Run this early so we know it's ready by the time we need it

src/util.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
#include "common.h"
1111

1212
#ifdef GIT_WIN32
13+
# include "win32/utf-conv.h"
1314
# include "win32/w32_buffer.h"
15+
16+
# ifdef HAVE_QSORT_S
17+
# include <search.h>
18+
# endif
1419
#endif
1520

1621
#ifdef _MSC_VER

0 commit comments

Comments
 (0)