File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 4040#define WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH 0
4141#endif
4242
43+ #ifndef WINHTTP_FLAG_SECURE_PROTOCOL_TLS_1_1
44+ # define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1 0x00000200
45+ #endif
46+
47+ #ifndef WINHTTP_FLAG_SECURE_PROTOCOL_TLS_1_2
48+ # define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800
49+ #endif
50+
4351static const char * prefix_https = "https://" ;
4452static const char * upload_pack_service = "upload-pack" ;
4553static const char * upload_pack_ls_service_url = "/info/refs?service=git-upload-pack" ;
@@ -55,11 +63,6 @@ static const int no_check_cert_flags = SECURITY_FLAG_IGNORE_CERT_CN_INVALID |
5563 SECURITY_FLAG_IGNORE_CERT_DATE_INVALID |
5664 SECURITY_FLAG_IGNORE_UNKNOWN_CA ;
5765
58- #if defined(__MINGW64_VERSION_MAJOR )
59- # define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1 0x00000200
60- # define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800
61- #endif
62-
6366#if defined(__MINGW32__ )
6467static const CLSID CLSID_InternetSecurityManager_mingw =
6568 { 0x7B8A2D94 , 0x0AC9 , 0x11D1 ,
You can’t perform that action at this time.
0 commit comments