rugged 0.23.0b1 → 0.23.0b2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/ext/rugged/rugged_note.c +7 -2
  3. data/ext/rugged/rugged_revwalk.c +321 -145
  4. data/lib/rugged/version.rb +1 -1
  5. data/vendor/libgit2/CMakeLists.txt +83 -8
  6. data/vendor/libgit2/cmake/Modules/FindCoreFoundation.cmake +9 -0
  7. data/vendor/libgit2/cmake/Modules/FindIconv.cmake +0 -3
  8. data/vendor/libgit2/cmake/Modules/FindSecurity.cmake +9 -0
  9. data/vendor/libgit2/deps/winhttp/urlmon.h +45 -0
  10. data/vendor/libgit2/deps/winhttp/winhttp.def +29 -0
  11. data/vendor/libgit2/deps/winhttp/winhttp.h +592 -0
  12. data/vendor/libgit2/deps/winhttp/winhttp64.def +29 -0
  13. data/vendor/libgit2/include/git2/diff.h +6 -1
  14. data/vendor/libgit2/include/git2/index.h +1 -1
  15. data/vendor/libgit2/include/git2/merge.h +2 -1
  16. data/vendor/libgit2/include/git2/notes.h +2 -2
  17. data/vendor/libgit2/include/git2/pack.h +12 -0
  18. data/vendor/libgit2/include/git2/push.h +30 -0
  19. data/vendor/libgit2/include/git2/rebase.h +36 -16
  20. data/vendor/libgit2/include/git2/remote.h +6 -0
  21. data/vendor/libgit2/include/git2/reset.h +2 -2
  22. data/vendor/libgit2/include/git2/revwalk.h +10 -8
  23. data/vendor/libgit2/include/git2/submodule.h +16 -0
  24. data/vendor/libgit2/include/git2/sys/transport.h +12 -4
  25. data/vendor/libgit2/include/git2/types.h +1 -0
  26. data/vendor/libgit2/src/attr.c +3 -3
  27. data/vendor/libgit2/src/attr_file.c +24 -3
  28. data/vendor/libgit2/src/attr_file.h +3 -1
  29. data/vendor/libgit2/src/checkout.c +31 -7
  30. data/vendor/libgit2/src/config.c +5 -6
  31. data/vendor/libgit2/src/config_file.c +533 -469
  32. data/vendor/libgit2/src/describe.c +1 -1
  33. data/vendor/libgit2/src/diff.c +20 -10
  34. data/vendor/libgit2/src/diff_driver.c +1 -1
  35. data/vendor/libgit2/src/diff_tform.c +8 -2
  36. data/vendor/libgit2/src/filter.c +6 -3
  37. data/vendor/libgit2/src/global.c +17 -15
  38. data/vendor/libgit2/src/global.h +3 -1
  39. data/vendor/libgit2/src/ignore.c +48 -8
  40. data/vendor/libgit2/src/ignore.h +1 -1
  41. data/vendor/libgit2/src/index.c +12 -8
  42. data/vendor/libgit2/src/iterator.c +133 -12
  43. data/vendor/libgit2/src/netops.h +2 -2
  44. data/vendor/libgit2/src/notes.c +40 -21
  45. data/vendor/libgit2/src/openssl_stream.c +5 -1
  46. data/vendor/libgit2/src/pack-objects.c +36 -0
  47. data/vendor/libgit2/src/path.c +277 -140
  48. data/vendor/libgit2/src/path.h +132 -60
  49. data/vendor/libgit2/src/posix.h +0 -1
  50. data/vendor/libgit2/src/push.c +43 -4
  51. data/vendor/libgit2/src/push.h +8 -1
  52. data/vendor/libgit2/src/rebase.c +139 -119
  53. data/vendor/libgit2/src/reflog.c +1 -1
  54. data/vendor/libgit2/src/refs.c +3 -5
  55. data/vendor/libgit2/src/remote.c +6 -5
  56. data/vendor/libgit2/src/repository.c +7 -3
  57. data/vendor/libgit2/src/reset.c +3 -3
  58. data/vendor/libgit2/src/revwalk.c +26 -2
  59. data/vendor/libgit2/src/settings.c +3 -3
  60. data/vendor/libgit2/src/stransport_stream.c +249 -0
  61. data/vendor/libgit2/src/stransport_stream.h +14 -0
  62. data/vendor/libgit2/src/submodule.c +26 -2
  63. data/vendor/libgit2/src/tls_stream.c +28 -0
  64. data/vendor/libgit2/src/tls_stream.h +21 -0
  65. data/vendor/libgit2/src/transport.c +4 -4
  66. data/vendor/libgit2/src/transports/git.c +4 -1
  67. data/vendor/libgit2/src/transports/http.c +6 -4
  68. data/vendor/libgit2/src/transports/local.c +2 -1
  69. data/vendor/libgit2/src/transports/smart.c +1 -1
  70. data/vendor/libgit2/src/transports/ssh.c +5 -1
  71. data/vendor/libgit2/src/transports/winhttp.c +30 -23
  72. data/vendor/libgit2/src/tree.c +2 -2
  73. data/vendor/libgit2/src/unix/posix.h +1 -0
  74. data/vendor/libgit2/src/util.h +117 -0
  75. data/vendor/libgit2/src/win32/buffer.c +55 -0
  76. data/vendor/libgit2/src/win32/buffer.h +18 -0
  77. data/vendor/libgit2/src/win32/path_w32.c +75 -0
  78. data/vendor/libgit2/src/win32/path_w32.h +3 -0
  79. data/vendor/libgit2/src/win32/posix.h +2 -2
  80. data/vendor/libgit2/src/win32/posix_w32.c +2 -118
  81. data/vendor/libgit2/src/win32/pthread.c +2 -0
  82. data/vendor/libgit2/src/win32/utf-conv.c +0 -4
  83. data/vendor/libgit2/src/win32/utf-conv.h +4 -0
  84. data/vendor/libgit2/src/win32/w32_util.h +72 -0
  85. metadata +14 -2
@@ -0,0 +1,592 @@
1
+ /*
2
+ * Copyright (C) 2007 Francois Gouget
3
+ *
4
+ * This library is free software; you can redistribute it and/or
5
+ * modify it under the terms of the GNU Lesser General Public
6
+ * License as published by the Free Software Foundation; either
7
+ * version 2.1 of the License, or (at your option) any later version.
8
+ *
9
+ * This library is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
+ * Lesser General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU Lesser General Public
15
+ * License along with this library; if not, write to the Free Software
16
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17
+ */
18
+
19
+ #if defined(__MINGW_VERSION) || defined(__MINGW32_VERSION)
20
+
21
+ #ifndef __WINE_WINHTTP_H
22
+ #define __WINE_WINHTTP_H
23
+
24
+ #ifdef _WIN64
25
+ #include <pshpack8.h>
26
+ #else
27
+ #include <pshpack4.h>
28
+ #endif
29
+
30
+ #define WINHTTPAPI
31
+ #define BOOLAPI WINHTTPAPI BOOL WINAPI
32
+
33
+
34
+ typedef LPVOID HINTERNET;
35
+ typedef HINTERNET *LPHINTERNET;
36
+
37
+ #define INTERNET_DEFAULT_PORT 0
38
+ #define INTERNET_DEFAULT_HTTP_PORT 80
39
+ #define INTERNET_DEFAULT_HTTPS_PORT 443
40
+ typedef WORD INTERNET_PORT;
41
+ typedef INTERNET_PORT *LPINTERNET_PORT;
42
+
43
+ #define INTERNET_SCHEME_HTTP 1
44
+ #define INTERNET_SCHEME_HTTPS 2
45
+ typedef int INTERNET_SCHEME, *LPINTERNET_SCHEME;
46
+
47
+ #define ICU_ESCAPE 0x80000000
48
+
49
+ /* flags for WinHttpOpen */
50
+ #define WINHTTP_FLAG_ASYNC 0x10000000
51
+
52
+ /* flags for WinHttpOpenRequest */
53
+ #define WINHTTP_FLAG_ESCAPE_PERCENT 0x00000004
54
+ #define WINHTTP_FLAG_NULL_CODEPAGE 0x00000008
55
+ #define WINHTTP_FLAG_ESCAPE_DISABLE 0x00000040
56
+ #define WINHTTP_FLAG_ESCAPE_DISABLE_QUERY 0x00000080
57
+ #define WINHTTP_FLAG_BYPASS_PROXY_CACHE 0x00000100
58
+ #define WINHTTP_FLAG_REFRESH WINHTTP_FLAG_BYPASS_PROXY_CACHE
59
+ #define WINHTTP_FLAG_SECURE 0x00800000
60
+
61
+ #define WINHTTP_ACCESS_TYPE_DEFAULT_PROXY 0
62
+ #define WINHTTP_ACCESS_TYPE_NO_PROXY 1
63
+ #define WINHTTP_ACCESS_TYPE_NAMED_PROXY 3
64
+
65
+ #define WINHTTP_NO_PROXY_NAME NULL
66
+ #define WINHTTP_NO_PROXY_BYPASS NULL
67
+
68
+ #define WINHTTP_NO_REFERER NULL
69
+ #define WINHTTP_DEFAULT_ACCEPT_TYPES NULL
70
+
71
+ #define WINHTTP_NO_ADDITIONAL_HEADERS NULL
72
+ #define WINHTTP_NO_REQUEST_DATA NULL
73
+
74
+ #define WINHTTP_HEADER_NAME_BY_INDEX NULL
75
+ #define WINHTTP_NO_OUTPUT_BUFFER NULL
76
+ #define WINHTTP_NO_HEADER_INDEX NULL
77
+
78
+ #define WINHTTP_ADDREQ_INDEX_MASK 0x0000FFFF
79
+ #define WINHTTP_ADDREQ_FLAGS_MASK 0xFFFF0000
80
+ #define WINHTTP_ADDREQ_FLAG_ADD_IF_NEW 0x10000000
81
+ #define WINHTTP_ADDREQ_FLAG_ADD 0x20000000
82
+ #define WINHTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA 0x40000000
83
+ #define WINHTTP_ADDREQ_FLAG_COALESCE_WITH_SEMICOLON 0x01000000
84
+ #define WINHTTP_ADDREQ_FLAG_COALESCE WINHTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA
85
+ #define WINHTTP_ADDREQ_FLAG_REPLACE 0x80000000
86
+
87
+ #define WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH 0
88
+
89
+ /* flags for WinHttp{Set/Query}Options */
90
+ #define WINHTTP_FIRST_OPTION WINHTTP_OPTION_CALLBACK
91
+ #define WINHTTP_OPTION_CALLBACK 1
92
+ #define WINHTTP_OPTION_RESOLVE_TIMEOUT 2
93
+ #define WINHTTP_OPTION_CONNECT_TIMEOUT 3
94
+ #define WINHTTP_OPTION_CONNECT_RETRIES 4
95
+ #define WINHTTP_OPTION_SEND_TIMEOUT 5
96
+ #define WINHTTP_OPTION_RECEIVE_TIMEOUT 6
97
+ #define WINHTTP_OPTION_RECEIVE_RESPONSE_TIMEOUT 7
98
+ #define WINHTTP_OPTION_HANDLE_TYPE 9
99
+ #define WINHTTP_OPTION_READ_BUFFER_SIZE 12
100
+ #define WINHTTP_OPTION_WRITE_BUFFER_SIZE 13
101
+ #define WINHTTP_OPTION_PARENT_HANDLE 21
102
+ #define WINHTTP_OPTION_EXTENDED_ERROR 24
103
+ #define WINHTTP_OPTION_SECURITY_FLAGS 31
104
+ #define WINHTTP_OPTION_SECURITY_CERTIFICATE_STRUCT 32
105
+ #define WINHTTP_OPTION_URL 34
106
+ #define WINHTTP_OPTION_SECURITY_KEY_BITNESS 36
107
+ #define WINHTTP_OPTION_PROXY 38
108
+ #define WINHTTP_OPTION_USER_AGENT 41
109
+ #define WINHTTP_OPTION_CONTEXT_VALUE 45
110
+ #define WINHTTP_OPTION_CLIENT_CERT_CONTEXT 47
111
+ #define WINHTTP_OPTION_REQUEST_PRIORITY 58
112
+ #define WINHTTP_OPTION_HTTP_VERSION 59
113
+ #define WINHTTP_OPTION_DISABLE_FEATURE 63
114
+ #define WINHTTP_OPTION_CODEPAGE 68
115
+ #define WINHTTP_OPTION_MAX_CONNS_PER_SERVER 73
116
+ #define WINHTTP_OPTION_MAX_CONNS_PER_1_0_SERVER 74
117
+ #define WINHTTP_OPTION_AUTOLOGON_POLICY 77
118
+ #define WINHTTP_OPTION_SERVER_CERT_CONTEXT 78
119
+ #define WINHTTP_OPTION_ENABLE_FEATURE 79
120
+ #define WINHTTP_OPTION_WORKER_THREAD_COUNT 80
121
+ #define WINHTTP_OPTION_PASSPORT_COBRANDING_TEXT 81
122
+ #define WINHTTP_OPTION_PASSPORT_COBRANDING_URL 82
123
+ #define WINHTTP_OPTION_CONFIGURE_PASSPORT_AUTH 83
124
+ #define WINHTTP_OPTION_SECURE_PROTOCOLS 84
125
+ #define WINHTTP_OPTION_ENABLETRACING 85
126
+ #define WINHTTP_OPTION_PASSPORT_SIGN_OUT 86
127
+ #define WINHTTP_OPTION_PASSPORT_RETURN_URL 87
128
+ #define WINHTTP_OPTION_REDIRECT_POLICY 88
129
+ #define WINHTTP_OPTION_MAX_HTTP_AUTOMATIC_REDIRECTS 89
130
+ #define WINHTTP_OPTION_MAX_HTTP_STATUS_CONTINUE 90
131
+ #define WINHTTP_OPTION_MAX_RESPONSE_HEADER_SIZE 91
132
+ #define WINHTTP_OPTION_MAX_RESPONSE_DRAIN_SIZE 92
133
+ #define WINHTTP_OPTION_CONNECTION_INFO 93
134
+ #define WINHTTP_OPTION_CLIENT_CERT_ISSUER_LIST 94
135
+ #define WINHTTP_OPTION_SPN 96
136
+ #define WINHTTP_OPTION_GLOBAL_PROXY_CREDS 97
137
+ #define WINHTTP_OPTION_GLOBAL_SERVER_CREDS 98
138
+ #define WINHTTP_OPTION_UNLOAD_NOTIFY_EVENT 99
139
+ #define WINHTTP_OPTION_REJECT_USERPWD_IN_URL 100
140
+ #define WINHTTP_OPTION_USE_GLOBAL_SERVER_CREDENTIALS 101
141
+ #define WINHTTP_LAST_OPTION WINHTTP_OPTION_USE_GLOBAL_SERVER_CREDENTIALS
142
+ #define WINHTTP_OPTION_USERNAME 0x1000
143
+ #define WINHTTP_OPTION_PASSWORD 0x1001
144
+ #define WINHTTP_OPTION_PROXY_USERNAME 0x1002
145
+ #define WINHTTP_OPTION_PROXY_PASSWORD 0x1003
146
+
147
+ #define WINHTTP_CONNS_PER_SERVER_UNLIMITED 0xFFFFFFFF
148
+
149
+ #define WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM 0
150
+ #define WINHTTP_AUTOLOGON_SECURITY_LEVEL_LOW 1
151
+ #define WINHTTP_AUTOLOGON_SECURITY_LEVEL_HIGH 2
152
+ #define WINHTTP_AUTOLOGON_SECURITY_LEVEL_DEFAULT WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM
153
+
154
+ #define WINHTTP_OPTION_REDIRECT_POLICY_NEVER 0
155
+ #define WINHTTP_OPTION_REDIRECT_POLICY_DISALLOW_HTTPS_TO_HTTP 1
156
+ #define WINHTTP_OPTION_REDIRECT_POLICY_ALWAYS 2
157
+ #define WINHTTP_OPTION_REDIRECT_POLICY_LAST WINHTTP_OPTION_REDIRECT_POLICY_ALWAYS
158
+ #define WINHTTP_OPTION_REDIRECT_POLICY_DEFAULT WINHTTP_OPTION_REDIRECT_POLICY_DISALLOW_HTTPS_TO_HTTP
159
+
160
+ #define WINHTTP_DISABLE_PASSPORT_AUTH 0x00000000
161
+ #define WINHTTP_ENABLE_PASSPORT_AUTH 0x10000000
162
+ #define WINHTTP_DISABLE_PASSPORT_KEYRING 0x20000000
163
+ #define WINHTTP_ENABLE_PASSPORT_KEYRING 0x40000000
164
+
165
+ #define WINHTTP_DISABLE_COOKIES 0x00000001
166
+ #define WINHTTP_DISABLE_REDIRECTS 0x00000002
167
+ #define WINHTTP_DISABLE_AUTHENTICATION 0x00000004
168
+ #define WINHTTP_DISABLE_KEEP_ALIVE 0x00000008
169
+ #define WINHTTP_ENABLE_SSL_REVOCATION 0x00000001
170
+ #define WINHTTP_ENABLE_SSL_REVERT_IMPERSONATION 0x00000002
171
+ #define WINHTTP_DISABLE_SPN_SERVER_PORT 0x00000000
172
+ #define WINHTTP_ENABLE_SPN_SERVER_PORT 0x00000001
173
+ #define WINHTTP_OPTION_SPN_MASK WINHTTP_ENABLE_SPN_SERVER_PORT
174
+
175
+ /* Options for WinHttpOpenRequest */
176
+ #define WINHTTP_NO_REFERER NULL
177
+ #define WINHTTP_DEFAULT_ACCEPT_TYPES NULL
178
+
179
+ /* Options for WinHttpSendRequest */
180
+ #define WINHTTP_NO_ADDITIONAL_HEADERS NULL
181
+ #define WINHTTP_NO_REQUEST_DATA NULL
182
+
183
+ /* WinHTTP error codes */
184
+ #define WINHTTP_ERROR_BASE 12000
185
+ #define ERROR_WINHTTP_OUT_OF_HANDLES (WINHTTP_ERROR_BASE + 1)
186
+ #define ERROR_WINHTTP_TIMEOUT (WINHTTP_ERROR_BASE + 2)
187
+ #define ERROR_WINHTTP_INTERNAL_ERROR (WINHTTP_ERROR_BASE + 4)
188
+ #define ERROR_WINHTTP_INVALID_URL (WINHTTP_ERROR_BASE + 5)
189
+ #define ERROR_WINHTTP_UNRECOGNIZED_SCHEME (WINHTTP_ERROR_BASE + 6)
190
+ #define ERROR_WINHTTP_NAME_NOT_RESOLVED (WINHTTP_ERROR_BASE + 7)
191
+ #define ERROR_WINHTTP_INVALID_OPTION (WINHTTP_ERROR_BASE + 9)
192
+ #define ERROR_WINHTTP_OPTION_NOT_SETTABLE (WINHTTP_ERROR_BASE + 11)
193
+ #define ERROR_WINHTTP_SHUTDOWN (WINHTTP_ERROR_BASE + 12)
194
+ #define ERROR_WINHTTP_LOGIN_FAILURE (WINHTTP_ERROR_BASE + 15)
195
+ #define ERROR_WINHTTP_OPERATION_CANCELLED (WINHTTP_ERROR_BASE + 17)
196
+ #define ERROR_WINHTTP_INCORRECT_HANDLE_TYPE (WINHTTP_ERROR_BASE + 18)
197
+ #define ERROR_WINHTTP_INCORRECT_HANDLE_STATE (WINHTTP_ERROR_BASE + 19)
198
+ #define ERROR_WINHTTP_CANNOT_CONNECT (WINHTTP_ERROR_BASE + 29)
199
+ #define ERROR_WINHTTP_CONNECTION_ERROR (WINHTTP_ERROR_BASE + 30)
200
+ #define ERROR_WINHTTP_RESEND_REQUEST (WINHTTP_ERROR_BASE + 32)
201
+ #define ERROR_WINHTTP_SECURE_CERT_DATE_INVALID (WINHTTP_ERROR_BASE + 37)
202
+ #define ERROR_WINHTTP_SECURE_CERT_CN_INVALID (WINHTTP_ERROR_BASE + 38)
203
+ #define ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED (WINHTTP_ERROR_BASE + 44)
204
+ #define ERROR_WINHTTP_SECURE_INVALID_CA (WINHTTP_ERROR_BASE + 45)
205
+ #define ERROR_WINHTTP_SECURE_CERT_REV_FAILED (WINHTTP_ERROR_BASE + 57)
206
+ #define ERROR_WINHTTP_CANNOT_CALL_BEFORE_OPEN (WINHTTP_ERROR_BASE + 100)
207
+ #define ERROR_WINHTTP_CANNOT_CALL_BEFORE_SEND (WINHTTP_ERROR_BASE + 101)
208
+ #define ERROR_WINHTTP_CANNOT_CALL_AFTER_SEND (WINHTTP_ERROR_BASE + 102)
209
+ #define ERROR_WINHTTP_CANNOT_CALL_AFTER_OPEN (WINHTTP_ERROR_BASE + 103)
210
+ #define ERROR_WINHTTP_HEADER_NOT_FOUND (WINHTTP_ERROR_BASE + 150)
211
+ #define ERROR_WINHTTP_INVALID_SERVER_RESPONSE (WINHTTP_ERROR_BASE + 152)
212
+ #define ERROR_WINHTTP_INVALID_HEADER (WINHTTP_ERROR_BASE + 153)
213
+ #define ERROR_WINHTTP_INVALID_QUERY_REQUEST (WINHTTP_ERROR_BASE + 154)
214
+ #define ERROR_WINHTTP_HEADER_ALREADY_EXISTS (WINHTTP_ERROR_BASE + 155)
215
+ #define ERROR_WINHTTP_REDIRECT_FAILED (WINHTTP_ERROR_BASE + 156)
216
+ #define ERROR_WINHTTP_SECURE_CHANNEL_ERROR (WINHTTP_ERROR_BASE + 157)
217
+ #define ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT (WINHTTP_ERROR_BASE + 166)
218
+ #define ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT (WINHTTP_ERROR_BASE + 167)
219
+ #define ERROR_WINHTTP_SECURE_INVALID_CERT (WINHTTP_ERROR_BASE + 169)
220
+ #define ERROR_WINHTTP_SECURE_CERT_REVOKED (WINHTTP_ERROR_BASE + 170)
221
+ #define ERROR_WINHTTP_NOT_INITIALIZED (WINHTTP_ERROR_BASE + 172)
222
+ #define ERROR_WINHTTP_SECURE_FAILURE (WINHTTP_ERROR_BASE + 175)
223
+ #define ERROR_WINHTTP_AUTO_PROXY_SERVICE_ERROR (WINHTTP_ERROR_BASE + 178)
224
+ #define ERROR_WINHTTP_SECURE_CERT_WRONG_USAGE (WINHTTP_ERROR_BASE + 179)
225
+ #define ERROR_WINHTTP_AUTODETECTION_FAILED (WINHTTP_ERROR_BASE + 180)
226
+ #define ERROR_WINHTTP_HEADER_COUNT_EXCEEDED (WINHTTP_ERROR_BASE + 181)
227
+ #define ERROR_WINHTTP_HEADER_SIZE_OVERFLOW (WINHTTP_ERROR_BASE + 182)
228
+ #define ERROR_WINHTTP_CHUNKED_ENCODING_HEADER_SIZE_OVERFLOW (WINHTTP_ERROR_BASE + 183)
229
+ #define ERROR_WINHTTP_RESPONSE_DRAIN_OVERFLOW (WINHTTP_ERROR_BASE + 184)
230
+ #define ERROR_WINHTTP_CLIENT_CERT_NO_PRIVATE_KEY (WINHTTP_ERROR_BASE + 185)
231
+ #define ERROR_WINHTTP_CLIENT_CERT_NO_ACCESS_PRIVATE_KEY (WINHTTP_ERROR_BASE + 186)
232
+ #define WINHTTP_ERROR_LAST (WINHTTP_ERROR_BASE + 186)
233
+
234
+ /* WinHttp status codes */
235
+ #define HTTP_STATUS_CONTINUE 100
236
+ #define HTTP_STATUS_SWITCH_PROTOCOLS 101
237
+ #define HTTP_STATUS_OK 200
238
+ #define HTTP_STATUS_CREATED 201
239
+ #define HTTP_STATUS_ACCEPTED 202
240
+ #define HTTP_STATUS_PARTIAL 203
241
+ #define HTTP_STATUS_NO_CONTENT 204
242
+ #define HTTP_STATUS_RESET_CONTENT 205
243
+ #define HTTP_STATUS_PARTIAL_CONTENT 206
244
+ #define HTTP_STATUS_WEBDAV_MULTI_STATUS 207
245
+ #define HTTP_STATUS_AMBIGUOUS 300
246
+ #define HTTP_STATUS_MOVED 301
247
+ #define HTTP_STATUS_REDIRECT 302
248
+ #define HTTP_STATUS_REDIRECT_METHOD 303
249
+ #define HTTP_STATUS_NOT_MODIFIED 304
250
+ #define HTTP_STATUS_USE_PROXY 305
251
+ #define HTTP_STATUS_REDIRECT_KEEP_VERB 307
252
+ #define HTTP_STATUS_BAD_REQUEST 400
253
+ #define HTTP_STATUS_DENIED 401
254
+ #define HTTP_STATUS_PAYMENT_REQ 402
255
+ #define HTTP_STATUS_FORBIDDEN 403
256
+ #define HTTP_STATUS_NOT_FOUND 404
257
+ #define HTTP_STATUS_BAD_METHOD 405
258
+ #define HTTP_STATUS_NONE_ACCEPTABLE 406
259
+ #define HTTP_STATUS_PROXY_AUTH_REQ 407
260
+ #define HTTP_STATUS_REQUEST_TIMEOUT 408
261
+ #define HTTP_STATUS_CONFLICT 409
262
+ #define HTTP_STATUS_GONE 410
263
+ #define HTTP_STATUS_LENGTH_REQUIRED 411
264
+ #define HTTP_STATUS_PRECOND_FAILED 412
265
+ #define HTTP_STATUS_REQUEST_TOO_LARGE 413
266
+ #define HTTP_STATUS_URI_TOO_LONG 414
267
+ #define HTTP_STATUS_UNSUPPORTED_MEDIA 415
268
+ #define HTTP_STATUS_RETRY_WITH 449
269
+ #define HTTP_STATUS_SERVER_ERROR 500
270
+ #define HTTP_STATUS_NOT_SUPPORTED 501
271
+ #define HTTP_STATUS_BAD_GATEWAY 502
272
+ #define HTTP_STATUS_SERVICE_UNAVAIL 503
273
+ #define HTTP_STATUS_GATEWAY_TIMEOUT 504
274
+ #define HTTP_STATUS_VERSION_NOT_SUP 505
275
+ #define HTTP_STATUS_FIRST HTTP_STATUS_CONTINUE
276
+ #define HTTP_STATUS_LAST HTTP_STATUS_VERSION_NOT_SUP
277
+
278
+ #define SECURITY_FLAG_IGNORE_UNKNOWN_CA 0x00000100
279
+ #define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID 0x00002000
280
+ #define SECURITY_FLAG_IGNORE_CERT_CN_INVALID 0x00001000
281
+ #define SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE 0x00000200
282
+ #define SECURITY_FLAG_SECURE 0x00000001
283
+ #define SECURITY_FLAG_STRENGTH_WEAK 0x10000000
284
+ #define SECURITY_FLAG_STRENGTH_MEDIUM 0x40000000
285
+ #define SECURITY_FLAG_STRENGTH_STRONG 0x20000000
286
+
287
+ #define ICU_NO_ENCODE 0x20000000
288
+ #define ICU_DECODE 0x10000000
289
+ #define ICU_NO_META 0x08000000
290
+ #define ICU_ENCODE_SPACES_ONLY 0x04000000
291
+ #define ICU_BROWSER_MODE 0x02000000
292
+ #define ICU_ENCODE_PERCENT 0x00001000
293
+
294
+ /* Query flags */
295
+ #define WINHTTP_QUERY_MIME_VERSION 0
296
+ #define WINHTTP_QUERY_CONTENT_TYPE 1
297
+ #define WINHTTP_QUERY_CONTENT_TRANSFER_ENCODING 2
298
+ #define WINHTTP_QUERY_CONTENT_ID 3
299
+ #define WINHTTP_QUERY_CONTENT_DESCRIPTION 4
300
+ #define WINHTTP_QUERY_CONTENT_LENGTH 5
301
+ #define WINHTTP_QUERY_CONTENT_LANGUAGE 6
302
+ #define WINHTTP_QUERY_ALLOW 7
303
+ #define WINHTTP_QUERY_PUBLIC 8
304
+ #define WINHTTP_QUERY_DATE 9
305
+ #define WINHTTP_QUERY_EXPIRES 10
306
+ #define WINHTTP_QUERY_LAST_MODIFIED 11
307
+ #define WINHTTP_QUERY_MESSAGE_ID 12
308
+ #define WINHTTP_QUERY_URI 13
309
+ #define WINHTTP_QUERY_DERIVED_FROM 14
310
+ #define WINHTTP_QUERY_COST 15
311
+ #define WINHTTP_QUERY_LINK 16
312
+ #define WINHTTP_QUERY_PRAGMA 17
313
+ #define WINHTTP_QUERY_VERSION 18
314
+ #define WINHTTP_QUERY_STATUS_CODE 19
315
+ #define WINHTTP_QUERY_STATUS_TEXT 20
316
+ #define WINHTTP_QUERY_RAW_HEADERS 21
317
+ #define WINHTTP_QUERY_RAW_HEADERS_CRLF 22
318
+ #define WINHTTP_QUERY_CONNECTION 23
319
+ #define WINHTTP_QUERY_ACCEPT 24
320
+ #define WINHTTP_QUERY_ACCEPT_CHARSET 25
321
+ #define WINHTTP_QUERY_ACCEPT_ENCODING 26
322
+ #define WINHTTP_QUERY_ACCEPT_LANGUAGE 27
323
+ #define WINHTTP_QUERY_AUTHORIZATION 28
324
+ #define WINHTTP_QUERY_CONTENT_ENCODING 29
325
+ #define WINHTTP_QUERY_FORWARDED 30
326
+ #define WINHTTP_QUERY_FROM 31
327
+ #define WINHTTP_QUERY_IF_MODIFIED_SINCE 32
328
+ #define WINHTTP_QUERY_LOCATION 33
329
+ #define WINHTTP_QUERY_ORIG_URI 34
330
+ #define WINHTTP_QUERY_REFERER 35
331
+ #define WINHTTP_QUERY_RETRY_AFTER 36
332
+ #define WINHTTP_QUERY_SERVER 37
333
+ #define WINHTTP_QUERY_TITLE 38
334
+ #define WINHTTP_QUERY_USER_AGENT 39
335
+ #define WINHTTP_QUERY_WWW_AUTHENTICATE 40
336
+ #define WINHTTP_QUERY_PROXY_AUTHENTICATE 41
337
+ #define WINHTTP_QUERY_ACCEPT_RANGES 42
338
+ #define WINHTTP_QUERY_SET_COOKIE 43
339
+ #define WINHTTP_QUERY_COOKIE 44
340
+ #define WINHTTP_QUERY_REQUEST_METHOD 45
341
+ #define WINHTTP_QUERY_REFRESH 46
342
+ #define WINHTTP_QUERY_CONTENT_DISPOSITION 47
343
+ #define WINHTTP_QUERY_AGE 48
344
+ #define WINHTTP_QUERY_CACHE_CONTROL 49
345
+ #define WINHTTP_QUERY_CONTENT_BASE 50
346
+ #define WINHTTP_QUERY_CONTENT_LOCATION 51
347
+ #define WINHTTP_QUERY_CONTENT_MD5 52
348
+ #define WINHTTP_QUERY_CONTENT_RANGE 53
349
+ #define WINHTTP_QUERY_ETAG 54
350
+ #define WINHTTP_QUERY_HOST 55
351
+ #define WINHTTP_QUERY_IF_MATCH 56
352
+ #define WINHTTP_QUERY_IF_NONE_MATCH 57
353
+ #define WINHTTP_QUERY_IF_RANGE 58
354
+ #define WINHTTP_QUERY_IF_UNMODIFIED_SINCE 59
355
+ #define WINHTTP_QUERY_MAX_FORWARDS 60
356
+ #define WINHTTP_QUERY_PROXY_AUTHORIZATION 61
357
+ #define WINHTTP_QUERY_RANGE 62
358
+ #define WINHTTP_QUERY_TRANSFER_ENCODING 63
359
+ #define WINHTTP_QUERY_UPGRADE 64
360
+ #define WINHTTP_QUERY_VARY 65
361
+ #define WINHTTP_QUERY_VIA 66
362
+ #define WINHTTP_QUERY_WARNING 67
363
+ #define WINHTTP_QUERY_EXPECT 68
364
+ #define WINHTTP_QUERY_PROXY_CONNECTION 69
365
+ #define WINHTTP_QUERY_UNLESS_MODIFIED_SINCE 70
366
+ #define WINHTTP_QUERY_PROXY_SUPPORT 75
367
+ #define WINHTTP_QUERY_AUTHENTICATION_INFO 76
368
+ #define WINHTTP_QUERY_PASSPORT_URLS 77
369
+ #define WINHTTP_QUERY_PASSPORT_CONFIG 78
370
+ #define WINHTTP_QUERY_MAX 78
371
+ #define WINHTTP_QUERY_CUSTOM 65535
372
+ #define WINHTTP_QUERY_FLAG_REQUEST_HEADERS 0x80000000
373
+ #define WINHTTP_QUERY_FLAG_SYSTEMTIME 0x40000000
374
+ #define WINHTTP_QUERY_FLAG_NUMBER 0x20000000
375
+
376
+ /* Callback options */
377
+ #define WINHTTP_CALLBACK_STATUS_RESOLVING_NAME 0x00000001
378
+ #define WINHTTP_CALLBACK_STATUS_NAME_RESOLVED 0x00000002
379
+ #define WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER 0x00000004
380
+ #define WINHTTP_CALLBACK_STATUS_CONNECTED_TO_SERVER 0x00000008
381
+ #define WINHTTP_CALLBACK_STATUS_SENDING_REQUEST 0x00000010
382
+ #define WINHTTP_CALLBACK_STATUS_REQUEST_SENT 0x00000020
383
+ #define WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE 0x00000040
384
+ #define WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED 0x00000080
385
+ #define WINHTTP_CALLBACK_STATUS_CLOSING_CONNECTION 0x00000100
386
+ #define WINHTTP_CALLBACK_STATUS_CONNECTION_CLOSED 0x00000200
387
+ #define WINHTTP_CALLBACK_STATUS_HANDLE_CREATED 0x00000400
388
+ #define WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING 0x00000800
389
+ #define WINHTTP_CALLBACK_STATUS_DETECTING_PROXY 0x00001000
390
+ #define WINHTTP_CALLBACK_STATUS_REDIRECT 0x00004000
391
+ #define WINHTTP_CALLBACK_STATUS_INTERMEDIATE_RESPONSE 0x00008000
392
+ #define WINHTTP_CALLBACK_STATUS_SECURE_FAILURE 0x00010000
393
+ #define WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE 0x00020000
394
+ #define WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE 0x00040000
395
+ #define WINHTTP_CALLBACK_STATUS_READ_COMPLETE 0x00080000
396
+ #define WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE 0x00100000
397
+ #define WINHTTP_CALLBACK_STATUS_REQUEST_ERROR 0x00200000
398
+ #define WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE 0x00400000
399
+ #define WINHTTP_CALLBACK_FLAG_RESOLVE_NAME (WINHTTP_CALLBACK_STATUS_RESOLVING_NAME | WINHTTP_CALLBACK_STATUS_NAME_RESOLVED)
400
+ #define WINHTTP_CALLBACK_FLAG_CONNECT_TO_SERVER (WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER | WINHTTP_CALLBACK_STATUS_CONNECTED_TO_SERVER)
401
+ #define WINHTTP_CALLBACK_FLAG_SEND_REQUEST (WINHTTP_CALLBACK_STATUS_SENDING_REQUEST | WINHTTP_CALLBACK_STATUS_REQUEST_SENT)
402
+ #define WINHTTP_CALLBACK_FLAG_RECEIVE_RESPONSE (WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE | WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED)
403
+ #define WINHTTP_CALLBACK_FLAG_CLOSE_CONNECTION (WINHTTP_CALLBACK_STATUS_CLOSING_CONNECTION | WINHTTP_CALLBACK_STATUS_CONNECTION_CLOSED)
404
+ #define WINHTTP_CALLBACK_FLAG_HANDLES (WINHTTP_CALLBACK_STATUS_HANDLE_CREATED | WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING)
405
+ #define WINHTTP_CALLBACK_FLAG_DETECTING_PROXY WINHTTP_CALLBACK_STATUS_DETECTING_PROXY
406
+ #define WINHTTP_CALLBACK_FLAG_REDIRECT WINHTTP_CALLBACK_STATUS_REDIRECT
407
+ #define WINHTTP_CALLBACK_FLAG_INTERMEDIATE_RESPONSE WINHTTP_CALLBACK_STATUS_INTERMEDIATE_RESPONSE
408
+ #define WINHTTP_CALLBACK_FLAG_SECURE_FAILURE WINHTTP_CALLBACK_STATUS_SECURE_FAILURE
409
+ #define WINHTTP_CALLBACK_FLAG_SENDREQUEST_COMPLETE WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE
410
+ #define WINHTTP_CALLBACK_FLAG_HEADERS_AVAILABLE WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE
411
+ #define WINHTTP_CALLBACK_FLAG_DATA_AVAILABLE WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE
412
+ #define WINHTTP_CALLBACK_FLAG_READ_COMPLETE WINHTTP_CALLBACK_STATUS_READ_COMPLETE
413
+ #define WINHTTP_CALLBACK_FLAG_WRITE_COMPLETE WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE
414
+ #define WINHTTP_CALLBACK_FLAG_REQUEST_ERROR WINHTTP_CALLBACK_STATUS_REQUEST_ERROR
415
+ #define WINHTTP_CALLBACK_FLAG_ALL_COMPLETIONS (WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE | WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE \
416
+ | WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE | WINHTTP_CALLBACK_STATUS_READ_COMPLETE \
417
+ | WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE | WINHTTP_CALLBACK_STATUS_REQUEST_ERROR)
418
+ #define WINHTTP_CALLBACK_FLAG_ALL_NOTIFICATIONS 0xffffffff
419
+ #define WINHTTP_INVALID_STATUS_CALLBACK ((WINHTTP_STATUS_CALLBACK)(-1))
420
+
421
+ #define API_RECEIVE_RESPONSE (1)
422
+ #define API_QUERY_DATA_AVAILABLE (2)
423
+ #define API_READ_DATA (3)
424
+ #define API_WRITE_DATA (4)
425
+ #define API_SEND_REQUEST (5)
426
+
427
+ #define WINHTTP_HANDLE_TYPE_SESSION 1
428
+ #define WINHTTP_HANDLE_TYPE_CONNECT 2
429
+ #define WINHTTP_HANDLE_TYPE_REQUEST 3
430
+
431
+ #define WINHTTP_CALLBACK_STATUS_FLAG_CERT_REV_FAILED 0x00000001
432
+ #define WINHTTP_CALLBACK_STATUS_FLAG_INVALID_CERT 0x00000002
433
+ #define WINHTTP_CALLBACK_STATUS_FLAG_CERT_REVOKED 0x00000004
434
+ #define WINHTTP_CALLBACK_STATUS_FLAG_INVALID_CA 0x00000008
435
+ #define WINHTTP_CALLBACK_STATUS_FLAG_CERT_CN_INVALID 0x00000010
436
+ #define WINHTTP_CALLBACK_STATUS_FLAG_CERT_DATE_INVALID 0x00000020
437
+ #define WINHTTP_CALLBACK_STATUS_FLAG_CERT_WRONG_USAGE 0x00000040
438
+ #define WINHTTP_CALLBACK_STATUS_FLAG_SECURITY_CHANNEL_ERROR 0x80000000
439
+
440
+ #define WINHTTP_FLAG_SECURE_PROTOCOL_SSL2 0x00000008
441
+ #define WINHTTP_FLAG_SECURE_PROTOCOL_SSL3 0x00000020
442
+ #define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1 0x00000080
443
+ #define WINHTTP_FLAG_SECURE_PROTOCOL_ALL (WINHTTP_FLAG_SECURE_PROTOCOL_SSL2 | WINHTTP_FLAG_SECURE_PROTOCOL_SSL3 | WINHTTP_FLAG_SECURE_PROTOCOL_TLS1)
444
+
445
+ #define WINHTTP_AUTH_SCHEME_BASIC 0x00000001
446
+ #define WINHTTP_AUTH_SCHEME_NTLM 0x00000002
447
+ #define WINHTTP_AUTH_SCHEME_PASSPORT 0x00000004
448
+ #define WINHTTP_AUTH_SCHEME_DIGEST 0x00000008
449
+ #define WINHTTP_AUTH_SCHEME_NEGOTIATE 0x00000010
450
+
451
+ #define WINHTTP_AUTH_TARGET_SERVER 0x00000000
452
+ #define WINHTTP_AUTH_TARGET_PROXY 0x00000001
453
+
454
+ #define WINHTTP_TIME_FORMAT_BUFSIZE 62
455
+
456
+ typedef struct
457
+ {
458
+ DWORD dwStructSize;
459
+ LPWSTR lpszScheme;
460
+ DWORD dwSchemeLength;
461
+ INTERNET_SCHEME nScheme;
462
+ LPWSTR lpszHostName;
463
+ DWORD dwHostNameLength;
464
+ INTERNET_PORT nPort;
465
+ LPWSTR lpszUserName;
466
+ DWORD dwUserNameLength;
467
+ LPWSTR lpszPassword;
468
+ DWORD dwPasswordLength;
469
+ LPWSTR lpszUrlPath;
470
+ DWORD dwUrlPathLength;
471
+ LPWSTR lpszExtraInfo;
472
+ DWORD dwExtraInfoLength;
473
+ } URL_COMPONENTS, *LPURL_COMPONENTS;
474
+ typedef URL_COMPONENTS URL_COMPONENTSW;
475
+ typedef LPURL_COMPONENTS LPURL_COMPONENTSW;
476
+
477
+ typedef struct
478
+ {
479
+ DWORD_PTR dwResult;
480
+ DWORD dwError;
481
+ } WINHTTP_ASYNC_RESULT, *LPWINHTTP_ASYNC_RESULT;
482
+
483
+ typedef struct
484
+ {
485
+ FILETIME ftExpiry;
486
+ FILETIME ftStart;
487
+ LPWSTR lpszSubjectInfo;
488
+ LPWSTR lpszIssuerInfo;
489
+ LPWSTR lpszProtocolName;
490
+ LPWSTR lpszSignatureAlgName;
491
+ LPWSTR lpszEncryptionAlgName;
492
+ DWORD dwKeySize;
493
+ } WINHTTP_CERTIFICATE_INFO;
494
+
495
+ typedef struct
496
+ {
497
+ DWORD dwAccessType;
498
+ LPWSTR lpszProxy;
499
+ LPWSTR lpszProxyBypass;
500
+ } WINHTTP_PROXY_INFO, *LPWINHTTP_PROXY_INFO;
501
+ typedef WINHTTP_PROXY_INFO WINHTTP_PROXY_INFOW;
502
+ typedef LPWINHTTP_PROXY_INFO LPWINHTTP_PROXY_INFOW;
503
+
504
+ typedef struct
505
+ {
506
+ BOOL fAutoDetect;
507
+ LPWSTR lpszAutoConfigUrl;
508
+ LPWSTR lpszProxy;
509
+ LPWSTR lpszProxyBypass;
510
+ } WINHTTP_CURRENT_USER_IE_PROXY_CONFIG;
511
+
512
+ typedef VOID (CALLBACK *WINHTTP_STATUS_CALLBACK)(HINTERNET,DWORD_PTR,DWORD,LPVOID,DWORD);
513
+
514
+ #define WINHTTP_AUTO_DETECT_TYPE_DHCP 0x00000001
515
+ #define WINHTTP_AUTO_DETECT_TYPE_DNS_A 0x00000002
516
+
517
+ #define WINHTTP_AUTOPROXY_AUTO_DETECT 0x00000001
518
+ #define WINHTTP_AUTOPROXY_CONFIG_URL 0x00000002
519
+ #define WINHTTP_AUTOPROXY_RUN_INPROCESS 0x00010000
520
+ #define WINHTTP_AUTOPROXY_RUN_OUTPROCESS_ONLY 0x00020000
521
+
522
+ typedef struct
523
+ {
524
+ DWORD dwFlags;
525
+ DWORD dwAutoDetectFlags;
526
+ LPCWSTR lpszAutoConfigUrl;
527
+ LPVOID lpvReserved;
528
+ DWORD dwReserved;
529
+ BOOL fAutoLogonIfChallenged;
530
+ } WINHTTP_AUTOPROXY_OPTIONS;
531
+
532
+ typedef struct
533
+ {
534
+ DWORD dwMajorVersion;
535
+ DWORD dwMinorVersion;
536
+ } HTTP_VERSION_INFO, *LPHTTP_VERSION_INFO;
537
+
538
+ #ifdef _WS2DEF_
539
+ typedef struct
540
+ {
541
+ DWORD cbSize;
542
+ SOCKADDR_STORAGE LocalAddress;
543
+ SOCKADDR_STORAGE RemoteAddress;
544
+ } WINHTTP_CONNECTION_INFO;
545
+ #endif
546
+
547
+ #ifdef __cplusplus
548
+ extern "C" {
549
+ #endif
550
+
551
+ BOOL WINAPI WinHttpAddRequestHeaders(HINTERNET,LPCWSTR,DWORD,DWORD);
552
+ BOOL WINAPI WinHttpDetectAutoProxyConfigUrl(DWORD,LPWSTR*);
553
+ BOOL WINAPI WinHttpCheckPlatform(void);
554
+ BOOL WINAPI WinHttpCloseHandle(HINTERNET);
555
+ HINTERNET WINAPI WinHttpConnect(HINTERNET,LPCWSTR,INTERNET_PORT,DWORD);
556
+ BOOL WINAPI WinHttpCrackUrl(LPCWSTR,DWORD,DWORD,LPURL_COMPONENTS);
557
+ BOOL WINAPI WinHttpCreateUrl(LPURL_COMPONENTS,DWORD,LPWSTR,LPDWORD);
558
+ BOOL WINAPI WinHttpGetDefaultProxyConfiguration(WINHTTP_PROXY_INFO*);
559
+ BOOL WINAPI WinHttpGetIEProxyConfigForCurrentUser(WINHTTP_CURRENT_USER_IE_PROXY_CONFIG*);
560
+ BOOL WINAPI WinHttpGetProxyForUrl(HINTERNET,LPCWSTR,WINHTTP_AUTOPROXY_OPTIONS*,WINHTTP_PROXY_INFO*);
561
+ HINTERNET WINAPI WinHttpOpen(LPCWSTR,DWORD,LPCWSTR,LPCWSTR,DWORD);
562
+ HINTERNET WINAPI WinHttpOpenRequest(HINTERNET,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR*,DWORD);
563
+ BOOL WINAPI WinHttpQueryAuthParams(HINTERNET,DWORD,LPVOID*);
564
+ BOOL WINAPI WinHttpQueryAuthSchemes(HINTERNET,LPDWORD,LPDWORD,LPDWORD);
565
+ BOOL WINAPI WinHttpQueryDataAvailable(HINTERNET,LPDWORD);
566
+ BOOL WINAPI WinHttpQueryHeaders(HINTERNET,DWORD,LPCWSTR,LPVOID,LPDWORD,LPDWORD);
567
+ BOOL WINAPI WinHttpQueryOption(HINTERNET,DWORD,LPVOID,LPDWORD);
568
+ BOOL WINAPI WinHttpReadData(HINTERNET,LPVOID,DWORD,LPDWORD);
569
+ BOOL WINAPI WinHttpReceiveResponse(HINTERNET,LPVOID);
570
+ BOOL WINAPI WinHttpSendRequest(HINTERNET,LPCWSTR,DWORD,LPVOID,DWORD,DWORD,DWORD_PTR);
571
+ BOOL WINAPI WinHttpSetDefaultProxyConfiguration(WINHTTP_PROXY_INFO*);
572
+ BOOL WINAPI WinHttpSetCredentials(HINTERNET,DWORD,DWORD,LPCWSTR,LPCWSTR,LPVOID);
573
+ BOOL WINAPI WinHttpSetOption(HINTERNET,DWORD,LPVOID,DWORD);
574
+ WINHTTP_STATUS_CALLBACK WINAPI WinHttpSetStatusCallback(HINTERNET,WINHTTP_STATUS_CALLBACK,DWORD,DWORD_PTR);
575
+ BOOL WINAPI WinHttpSetTimeouts(HINTERNET,int,int,int,int);
576
+ BOOL WINAPI WinHttpTimeFromSystemTime(const SYSTEMTIME *,LPWSTR);
577
+ BOOL WINAPI WinHttpTimeToSystemTime(LPCWSTR,SYSTEMTIME*);
578
+ BOOL WINAPI WinHttpWriteData(HINTERNET,LPCVOID,DWORD,LPDWORD);
579
+
580
+ #ifdef __cplusplus
581
+ }
582
+ #endif
583
+
584
+ #include <poppack.h>
585
+
586
+ #endif /* __WINE_WINHTTP_H */
587
+
588
+ #else
589
+
590
+ #include_next <winhttp.h>
591
+
592
+ #endif
@@ -0,0 +1,29 @@
1
+ LIBRARY WINHTTP
2
+ EXPORTS
3
+ WinHttpAddRequestHeaders
4
+ WinHttpCheckPlatform
5
+ WinHttpCloseHandle
6
+ WinHttpConnect
7
+ WinHttpCrackUrl
8
+ WinHttpCreateUrl
9
+ WinHttpDetectAutoProxyConfigUrl
10
+ WinHttpGetDefaultProxyConfiguration
11
+ WinHttpGetIEProxyConfigForCurrentUser
12
+ WinHttpGetProxyForUrl
13
+ WinHttpOpen
14
+ WinHttpOpenRequest
15
+ WinHttpQueryAuthSchemes
16
+ WinHttpQueryDataAvailable
17
+ WinHttpQueryHeaders
18
+ WinHttpQueryOption
19
+ WinHttpReadData
20
+ WinHttpReceiveResponse
21
+ WinHttpSendRequest
22
+ WinHttpSetCredentials
23
+ WinHttpSetDefaultProxyConfiguration
24
+ WinHttpSetOption
25
+ WinHttpSetStatusCallback
26
+ WinHttpSetTimeouts
27
+ WinHttpTimeFromSystemTime
28
+ WinHttpTimeToSystemTime
29
+ WinHttpWriteData
@@ -124,6 +124,11 @@ typedef enum {
124
124
  /** Use case insensitive filename comparisons */
125
125
  GIT_DIFF_IGNORE_CASE = (1u << 10),
126
126
 
127
+ /** May be combined with `GIT_DIFF_IGNORE_CASE` to specify that a file
128
+ * that has changed case will be returned as an add/delete pair.
129
+ */
130
+ GIT_DIFF_INCLUDE_CASECHANGE = (1u << 11),
131
+
127
132
  /** If the pathspec is set in the diff options, this flags means to
128
133
  * apply it as an exact match instead of as an fnmatch pattern.
129
134
  */
@@ -220,7 +225,7 @@ typedef struct git_diff git_diff;
220
225
  typedef enum {
221
226
  GIT_DIFF_FLAG_BINARY = (1u << 0), /**< file(s) treated as binary data */
222
227
  GIT_DIFF_FLAG_NOT_BINARY = (1u << 1), /**< file(s) treated as text data */
223
- GIT_DIFF_FLAG_VALID_ID = (1u << 2), /**< `id` value is known correct */
228
+ GIT_DIFF_FLAG_VALID_ID = (1u << 2), /**< `id` value is known correct */
224
229
  } git_diff_flag_t;
225
230
 
226
231
  /**
@@ -485,7 +485,7 @@ GIT_EXTERN(int) git_index_add_bypath(git_index *index, const char *path);
485
485
  */
486
486
  GIT_EXTERN(int) git_index_add_frombuffer(
487
487
  git_index *index,
488
- git_index_entry *entry,
488
+ const git_index_entry *entry,
489
489
  const void *buffer, size_t len);
490
490
 
491
491
  /**
@@ -169,7 +169,7 @@ typedef struct {
169
169
  /** The file to favor in region conflicts. */
170
170
  git_merge_file_favor_t favor;
171
171
 
172
- /** Merge file flags. */
172
+ /** see `git_merge_file_flags_t` above */
173
173
  unsigned int flags;
174
174
  } git_merge_file_options;
175
175
 
@@ -246,6 +246,7 @@ typedef struct {
246
246
  /** Flags for handling conflicting content. */
247
247
  git_merge_file_favor_t file_favor;
248
248
 
249
+ /** see `git_merge_file_flags_t` above */
249
250
  unsigned int file_flags;
250
251
  } git_merge_options;
251
252
 
@@ -183,12 +183,12 @@ GIT_EXTERN(void) git_note_free(git_note *note);
183
183
  /**
184
184
  * Get the default notes reference for a repository
185
185
  *
186
- * @param out Pointer to the default notes reference
186
+ * @param out buffer in which to store the name of the default notes reference
187
187
  * @param repo The Git repository
188
188
  *
189
189
  * @return 0 or an error code
190
190
  */
191
- GIT_EXTERN(int) git_note_default_ref(const char **out, git_repository *repo);
191
+ GIT_EXTERN(int) git_note_default_ref(git_buf *out, git_repository *repo);
192
192
 
193
193
  /**
194
194
  * Loop over all the notes within a specified namespace