diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-02-27 10:32:29 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-02-27 11:22:34 +0000 |
| commit | 8c8db98078b97404cb731e53bd02c9dab3b89d7c (patch) | |
| tree | 57e4c2f71aa71b64d434d6bcb35cf82e4f31db36 /src/transports | |
| parent | 7d90637069e03567a07b57ccbe4cf728ab823644 (diff) | |
| download | libgit2-8c8db98078b97404cb731e53bd02c9dab3b89d7c.tar.gz | |
mingw: update TLS option flags
Include the constants for `WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1` and
`WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2` so that they can be used by mingw.
This updates both the `deps/winhttp` framework (for classic mingw) and
adds the defines for mingw64, which does not use that framework.
Diffstat (limited to 'src/transports')
| -rw-r--r-- | src/transports/winhttp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c index 46a8fcddc..1e83a3f26 100644 --- a/src/transports/winhttp.c +++ b/src/transports/winhttp.c @@ -55,6 +55,11 @@ static const int no_check_cert_flags = SECURITY_FLAG_IGNORE_CERT_CN_INVALID | SECURITY_FLAG_IGNORE_CERT_DATE_INVALID | SECURITY_FLAG_IGNORE_UNKNOWN_CA; +#if defined(__MINGW64_VERSION_MAJOR) +# define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1 0x00000200 +# define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800 +#endif + #if defined(__MINGW32__) static const CLSID CLSID_InternetSecurityManager_mingw = { 0x7B8A2D94, 0x0AC9, 0x11D1, |
