Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 070822d

Browse files
committed
winhttp: provide constants for mingw
1 parent 62c462c commit 070822d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/transports/winhttp.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,19 @@
4040
#define WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH 0
4141
#endif
4242

43+
/* Missing in MinGW */
44+
#ifndef WINHTTP_FLAG_SECURE_PROTOCOL_TLS1
45+
#define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1 0x00000080
46+
#endif
47+
48+
#ifndef WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1
49+
#define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1 0x00000200
50+
#endif
51+
52+
#ifndef WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2
53+
#define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800
54+
#endif
55+
4356
static const char *prefix_https = "https://";
4457
static const char *upload_pack_service = "upload-pack";
4558
static const char *upload_pack_ls_service_url = "/info/refs?service=git-upload-pack";

0 commit comments

Comments
 (0)