rugged 0.27.10 → 0.27.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (420) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rugged/version.rb +1 -1
  3. data/vendor/libgit2/AUTHORS +0 -1
  4. data/vendor/libgit2/CMakeLists.txt +54 -98
  5. data/vendor/libgit2/COPYING +0 -28
  6. data/vendor/libgit2/cmake/Modules/AddCFlagIfSupported.cmake +1 -15
  7. data/vendor/libgit2/cmake/Modules/EnableWarnings.cmake +8 -9
  8. data/vendor/libgit2/cmake/Modules/FindCoreFoundation.cmake +2 -2
  9. data/vendor/libgit2/cmake/Modules/FindGSSAPI.cmake +1 -1
  10. data/vendor/libgit2/cmake/Modules/FindSecurity.cmake +2 -2
  11. data/vendor/libgit2/cmake/Modules/FindStatNsec.cmake +0 -6
  12. data/vendor/libgit2/deps/http-parser/CMakeLists.txt +0 -2
  13. data/vendor/libgit2/deps/http-parser/{COPYING → LICENSE-MIT} +0 -0
  14. data/vendor/libgit2/deps/http-parser/http_parser.c +6 -11
  15. data/vendor/libgit2/deps/regex/CMakeLists.txt +2 -0
  16. data/vendor/libgit2/deps/regex/config.h +7 -0
  17. data/vendor/libgit2/deps/regex/regcomp.c +3857 -0
  18. data/vendor/libgit2/deps/regex/regex.c +92 -0
  19. data/vendor/libgit2/deps/regex/regex.h +582 -0
  20. data/vendor/libgit2/deps/regex/regex_internal.c +1744 -0
  21. data/vendor/libgit2/deps/regex/regex_internal.h +819 -0
  22. data/vendor/libgit2/deps/regex/regexec.c +4369 -0
  23. data/vendor/libgit2/deps/zlib/CMakeLists.txt +0 -1
  24. data/vendor/libgit2/deps/zlib/adler32.c +7 -0
  25. data/vendor/libgit2/deps/zlib/crc32.c +7 -0
  26. data/vendor/libgit2/include/git2.h +0 -5
  27. data/vendor/libgit2/include/git2/annotated_commit.h +0 -9
  28. data/vendor/libgit2/include/git2/attr.h +20 -38
  29. data/vendor/libgit2/include/git2/blame.h +25 -42
  30. data/vendor/libgit2/include/git2/blob.h +13 -45
  31. data/vendor/libgit2/include/git2/branch.h +1 -1
  32. data/vendor/libgit2/include/git2/buffer.h +16 -22
  33. data/vendor/libgit2/include/git2/checkout.h +32 -65
  34. data/vendor/libgit2/include/git2/cherrypick.h +7 -9
  35. data/vendor/libgit2/include/git2/clone.h +10 -12
  36. data/vendor/libgit2/include/git2/commit.h +3 -53
  37. data/vendor/libgit2/include/git2/common.h +8 -60
  38. data/vendor/libgit2/include/git2/config.h +19 -30
  39. data/vendor/libgit2/include/git2/describe.h +9 -32
  40. data/vendor/libgit2/include/git2/diff.h +156 -208
  41. data/vendor/libgit2/include/git2/errors.h +46 -54
  42. data/vendor/libgit2/include/git2/filter.h +0 -8
  43. data/vendor/libgit2/include/git2/ignore.h +2 -2
  44. data/vendor/libgit2/include/git2/index.h +52 -74
  45. data/vendor/libgit2/include/git2/indexer.h +6 -76
  46. data/vendor/libgit2/include/git2/inttypes.h +309 -0
  47. data/vendor/libgit2/include/git2/merge.h +18 -35
  48. data/vendor/libgit2/include/git2/net.h +5 -0
  49. data/vendor/libgit2/include/git2/notes.h +1 -1
  50. data/vendor/libgit2/include/git2/object.h +29 -17
  51. data/vendor/libgit2/include/git2/odb.h +11 -12
  52. data/vendor/libgit2/include/git2/odb_backend.h +9 -10
  53. data/vendor/libgit2/include/git2/oid.h +2 -2
  54. data/vendor/libgit2/include/git2/pack.h +3 -14
  55. data/vendor/libgit2/include/git2/proxy.h +8 -14
  56. data/vendor/libgit2/include/git2/rebase.h +6 -53
  57. data/vendor/libgit2/include/git2/refs.h +15 -33
  58. data/vendor/libgit2/include/git2/refspec.h +0 -17
  59. data/vendor/libgit2/include/git2/remote.h +24 -123
  60. data/vendor/libgit2/include/git2/repository.h +39 -76
  61. data/vendor/libgit2/include/git2/revert.h +4 -6
  62. data/vendor/libgit2/include/git2/revwalk.h +7 -7
  63. data/vendor/libgit2/include/git2/signature.h +2 -2
  64. data/vendor/libgit2/include/git2/stash.h +12 -15
  65. data/vendor/libgit2/include/git2/status.h +20 -33
  66. data/vendor/libgit2/include/git2/submodule.h +12 -30
  67. data/vendor/libgit2/include/git2/sys/commit.h +1 -1
  68. data/vendor/libgit2/include/git2/sys/config.h +13 -13
  69. data/vendor/libgit2/include/git2/sys/filter.h +6 -6
  70. data/vendor/libgit2/include/git2/sys/index.h +0 -3
  71. data/vendor/libgit2/include/git2/sys/mempack.h +35 -35
  72. data/vendor/libgit2/include/git2/sys/merge.h +4 -9
  73. data/vendor/libgit2/include/git2/sys/odb_backend.h +22 -66
  74. data/vendor/libgit2/include/git2/sys/refdb_backend.h +40 -76
  75. data/vendor/libgit2/include/git2/sys/repository.h +1 -5
  76. data/vendor/libgit2/include/git2/sys/stream.h +12 -92
  77. data/vendor/libgit2/include/git2/sys/time.h +31 -0
  78. data/vendor/libgit2/include/git2/sys/transport.h +83 -129
  79. data/vendor/libgit2/include/git2/tag.h +4 -13
  80. data/vendor/libgit2/include/git2/trace.h +2 -2
  81. data/vendor/libgit2/include/git2/transaction.h +0 -1
  82. data/vendor/libgit2/include/git2/transport.h +311 -11
  83. data/vendor/libgit2/include/git2/tree.h +4 -4
  84. data/vendor/libgit2/include/git2/types.h +111 -33
  85. data/vendor/libgit2/include/git2/version.h +4 -4
  86. data/vendor/libgit2/include/git2/worktree.h +13 -48
  87. data/vendor/libgit2/libgit2.pc.in +13 -0
  88. data/vendor/libgit2/src/CMakeLists.txt +164 -96
  89. data/vendor/libgit2/src/annotated_commit.c +8 -15
  90. data/vendor/libgit2/src/apply.c +31 -537
  91. data/vendor/libgit2/src/apply.h +1 -3
  92. data/vendor/libgit2/src/array.h +2 -2
  93. data/vendor/libgit2/src/attr.c +75 -81
  94. data/vendor/libgit2/src/attr_file.c +121 -207
  95. data/vendor/libgit2/src/attr_file.h +9 -9
  96. data/vendor/libgit2/src/attrcache.c +53 -51
  97. data/vendor/libgit2/src/attrcache.h +1 -2
  98. data/vendor/libgit2/src/blame.c +20 -47
  99. data/vendor/libgit2/src/blame.h +1 -2
  100. data/vendor/libgit2/src/blame_git.c +20 -37
  101. data/vendor/libgit2/src/blob.c +42 -128
  102. data/vendor/libgit2/src/blob.h +2 -19
  103. data/vendor/libgit2/src/branch.c +43 -67
  104. data/vendor/libgit2/src/buf_text.c +6 -7
  105. data/vendor/libgit2/src/buffer.c +57 -69
  106. data/vendor/libgit2/src/buffer.h +1 -1
  107. data/vendor/libgit2/src/cache.c +45 -38
  108. data/vendor/libgit2/src/cache.h +3 -3
  109. data/vendor/libgit2/src/cc-compat.h +3 -20
  110. data/vendor/libgit2/src/checkout.c +90 -109
  111. data/vendor/libgit2/src/cherrypick.c +9 -15
  112. data/vendor/libgit2/src/clone.c +27 -49
  113. data/vendor/libgit2/src/clone.h +0 -4
  114. data/vendor/libgit2/src/commit.c +49 -117
  115. data/vendor/libgit2/src/commit.h +0 -7
  116. data/vendor/libgit2/src/commit_list.c +78 -30
  117. data/vendor/libgit2/src/commit_list.h +2 -2
  118. data/vendor/libgit2/src/common.h +91 -27
  119. data/vendor/libgit2/src/config.c +176 -194
  120. data/vendor/libgit2/src/config.h +20 -8
  121. data/vendor/libgit2/src/config_cache.c +35 -41
  122. data/vendor/libgit2/src/config_file.c +753 -439
  123. data/vendor/libgit2/src/config_file.h +73 -0
  124. data/vendor/libgit2/src/config_parse.c +63 -114
  125. data/vendor/libgit2/src/config_parse.h +16 -17
  126. data/vendor/libgit2/src/crlf.c +190 -219
  127. data/vendor/libgit2/src/delta.c +18 -25
  128. data/vendor/libgit2/src/describe.c +41 -42
  129. data/vendor/libgit2/src/diff.c +68 -53
  130. data/vendor/libgit2/src/diff.h +1 -2
  131. data/vendor/libgit2/src/diff_driver.c +49 -47
  132. data/vendor/libgit2/src/diff_file.c +17 -19
  133. data/vendor/libgit2/src/diff_file.h +1 -1
  134. data/vendor/libgit2/src/diff_generate.c +106 -162
  135. data/vendor/libgit2/src/diff_generate.h +3 -3
  136. data/vendor/libgit2/src/diff_parse.c +4 -4
  137. data/vendor/libgit2/src/diff_print.c +30 -42
  138. data/vendor/libgit2/src/diff_stats.c +7 -22
  139. data/vendor/libgit2/src/diff_tform.c +16 -16
  140. data/vendor/libgit2/src/diff_xdiff.c +3 -15
  141. data/vendor/libgit2/src/errors.c +39 -51
  142. data/vendor/libgit2/src/features.h.in +3 -11
  143. data/vendor/libgit2/src/fetch.c +5 -10
  144. data/vendor/libgit2/src/fetchhead.c +17 -17
  145. data/vendor/libgit2/src/filebuf.c +36 -32
  146. data/vendor/libgit2/src/filebuf.h +2 -2
  147. data/vendor/libgit2/src/{futils.c → fileops.c} +73 -80
  148. data/vendor/libgit2/src/{futils.h → fileops.h} +6 -6
  149. data/vendor/libgit2/src/filter.c +38 -46
  150. data/vendor/libgit2/src/filter.h +10 -0
  151. data/vendor/libgit2/src/fnmatch.c +248 -0
  152. data/vendor/libgit2/src/fnmatch.h +48 -0
  153. data/vendor/libgit2/src/global.c +63 -48
  154. data/vendor/libgit2/src/global.h +2 -0
  155. data/vendor/libgit2/src/hash.c +0 -61
  156. data/vendor/libgit2/src/hash.h +19 -20
  157. data/vendor/libgit2/src/hash/hash_collisiondetect.h +47 -0
  158. data/vendor/libgit2/src/hash/{sha1/common_crypto.c → hash_common_crypto.h} +17 -17
  159. data/vendor/libgit2/src/hash/{sha1/generic.c → hash_generic.c} +10 -22
  160. data/vendor/libgit2/src/hash/{sha1/generic.h → hash_generic.h} +10 -4
  161. data/vendor/libgit2/src/hash/hash_openssl.h +59 -0
  162. data/vendor/libgit2/src/hash/{sha1/win32.c → hash_win32.c} +37 -47
  163. data/vendor/libgit2/src/hash/{sha1/win32.h → hash_win32.h} +19 -6
  164. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/sha1.c +3 -14
  165. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/sha1.h +0 -0
  166. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/ubc_check.c +0 -0
  167. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/ubc_check.h +0 -0
  168. data/vendor/libgit2/src/hashsig.c +5 -5
  169. data/vendor/libgit2/src/idxmap.c +61 -107
  170. data/vendor/libgit2/src/idxmap.h +31 -153
  171. data/vendor/libgit2/src/ignore.c +47 -43
  172. data/vendor/libgit2/src/index.c +232 -337
  173. data/vendor/libgit2/src/index.h +1 -17
  174. data/vendor/libgit2/src/indexer.c +175 -346
  175. data/vendor/libgit2/src/integer.h +26 -71
  176. data/vendor/libgit2/src/iterator.c +70 -142
  177. data/vendor/libgit2/src/iterator.h +0 -15
  178. data/vendor/libgit2/src/khash.h +1 -3
  179. data/vendor/libgit2/src/map.h +1 -1
  180. data/vendor/libgit2/src/merge.c +100 -144
  181. data/vendor/libgit2/src/merge_driver.c +11 -11
  182. data/vendor/libgit2/src/merge_file.c +2 -2
  183. data/vendor/libgit2/src/mwindow.c +29 -24
  184. data/vendor/libgit2/src/mwindow.h +4 -4
  185. data/vendor/libgit2/src/netops.c +156 -55
  186. data/vendor/libgit2/src/netops.h +23 -3
  187. data/vendor/libgit2/src/notes.c +11 -16
  188. data/vendor/libgit2/src/object.c +69 -120
  189. data/vendor/libgit2/src/object.h +9 -22
  190. data/vendor/libgit2/src/object_api.c +8 -8
  191. data/vendor/libgit2/src/odb.c +93 -116
  192. data/vendor/libgit2/src/odb.h +7 -8
  193. data/vendor/libgit2/src/odb_loose.c +55 -62
  194. data/vendor/libgit2/src/odb_mempack.c +34 -21
  195. data/vendor/libgit2/src/odb_pack.c +14 -18
  196. data/vendor/libgit2/src/offmap.c +35 -53
  197. data/vendor/libgit2/src/offmap.h +21 -108
  198. data/vendor/libgit2/src/oid.c +7 -12
  199. data/vendor/libgit2/src/oidmap.c +47 -49
  200. data/vendor/libgit2/src/oidmap.h +24 -101
  201. data/vendor/libgit2/src/pack-objects.c +87 -88
  202. data/vendor/libgit2/src/pack-objects.h +8 -2
  203. data/vendor/libgit2/src/pack.c +101 -99
  204. data/vendor/libgit2/src/pack.h +19 -17
  205. data/vendor/libgit2/src/parse.c +0 -10
  206. data/vendor/libgit2/src/parse.h +3 -3
  207. data/vendor/libgit2/src/patch.c +4 -4
  208. data/vendor/libgit2/src/patch_generate.c +20 -20
  209. data/vendor/libgit2/src/patch_parse.c +63 -151
  210. data/vendor/libgit2/src/path.c +104 -117
  211. data/vendor/libgit2/src/path.h +71 -3
  212. data/vendor/libgit2/src/pathspec.c +19 -19
  213. data/vendor/libgit2/src/pool.c +22 -26
  214. data/vendor/libgit2/src/pool.h +7 -7
  215. data/vendor/libgit2/src/posix.c +10 -10
  216. data/vendor/libgit2/src/posix.h +1 -12
  217. data/vendor/libgit2/src/proxy.c +3 -8
  218. data/vendor/libgit2/src/push.c +31 -37
  219. data/vendor/libgit2/src/push.h +1 -2
  220. data/vendor/libgit2/src/rebase.c +59 -115
  221. data/vendor/libgit2/src/refdb.c +3 -15
  222. data/vendor/libgit2/src/refdb_fs.c +254 -381
  223. data/vendor/libgit2/src/reflog.c +15 -13
  224. data/vendor/libgit2/src/refs.c +88 -118
  225. data/vendor/libgit2/src/refs.h +3 -5
  226. data/vendor/libgit2/src/refspec.c +37 -56
  227. data/vendor/libgit2/src/refspec.h +1 -1
  228. data/vendor/libgit2/src/remote.c +215 -266
  229. data/vendor/libgit2/src/remote.h +2 -11
  230. data/vendor/libgit2/src/repository.c +225 -280
  231. data/vendor/libgit2/src/repository.h +40 -52
  232. data/vendor/libgit2/src/reset.c +8 -8
  233. data/vendor/libgit2/src/revert.c +9 -14
  234. data/vendor/libgit2/src/revparse.c +48 -47
  235. data/vendor/libgit2/src/revwalk.c +57 -120
  236. data/vendor/libgit2/src/revwalk.h +1 -22
  237. data/vendor/libgit2/src/settings.c +10 -47
  238. data/vendor/libgit2/src/signature.c +11 -11
  239. data/vendor/libgit2/src/sortedcache.c +36 -22
  240. data/vendor/libgit2/src/sortedcache.h +1 -1
  241. data/vendor/libgit2/src/stash.c +99 -125
  242. data/vendor/libgit2/src/status.c +22 -28
  243. data/vendor/libgit2/src/stream.h +2 -17
  244. data/vendor/libgit2/src/streams/curl.c +385 -0
  245. data/vendor/libgit2/src/{allocators/stdalloc.h → streams/curl.h} +5 -5
  246. data/vendor/libgit2/src/streams/openssl.c +114 -224
  247. data/vendor/libgit2/src/streams/openssl.h +108 -4
  248. data/vendor/libgit2/src/streams/socket.c +30 -55
  249. data/vendor/libgit2/src/streams/stransport.c +32 -57
  250. data/vendor/libgit2/src/streams/stransport.h +0 -5
  251. data/vendor/libgit2/src/streams/tls.c +19 -50
  252. data/vendor/libgit2/src/streams/tls.h +4 -12
  253. data/vendor/libgit2/src/strmap.c +74 -47
  254. data/vendor/libgit2/src/strmap.h +33 -108
  255. data/vendor/libgit2/src/submodule.c +216 -272
  256. data/vendor/libgit2/src/submodule.h +1 -1
  257. data/vendor/libgit2/src/sysdir.c +19 -29
  258. data/vendor/libgit2/src/tag.c +28 -41
  259. data/vendor/libgit2/src/tag.h +1 -2
  260. data/vendor/libgit2/src/trace.c +2 -2
  261. data/vendor/libgit2/src/trace.h +3 -3
  262. data/vendor/libgit2/src/trailer.c +38 -52
  263. data/vendor/libgit2/src/transaction.c +29 -30
  264. data/vendor/libgit2/src/transport.c +5 -5
  265. data/vendor/libgit2/src/transports/auth.c +11 -15
  266. data/vendor/libgit2/src/transports/auth.h +3 -10
  267. data/vendor/libgit2/src/transports/auth_negotiate.c +18 -33
  268. data/vendor/libgit2/src/transports/auth_negotiate.h +2 -2
  269. data/vendor/libgit2/src/transports/cred.c +24 -24
  270. data/vendor/libgit2/src/{allocators/win32_crtdbg.h → transports/cred.h} +4 -5
  271. data/vendor/libgit2/src/transports/git.c +31 -26
  272. data/vendor/libgit2/src/transports/http.c +348 -881
  273. data/vendor/libgit2/src/transports/http.h +0 -2
  274. data/vendor/libgit2/src/transports/local.c +35 -35
  275. data/vendor/libgit2/src/transports/smart.c +47 -70
  276. data/vendor/libgit2/src/transports/smart.h +4 -3
  277. data/vendor/libgit2/src/transports/smart_pkt.c +40 -43
  278. data/vendor/libgit2/src/transports/smart_protocol.c +116 -96
  279. data/vendor/libgit2/src/transports/ssh.c +66 -77
  280. data/vendor/libgit2/src/transports/winhttp.c +314 -318
  281. data/vendor/libgit2/src/tree-cache.c +12 -19
  282. data/vendor/libgit2/src/tree.c +142 -103
  283. data/vendor/libgit2/src/tree.h +12 -1
  284. data/vendor/libgit2/src/unix/map.c +3 -3
  285. data/vendor/libgit2/src/unix/posix.h +11 -1
  286. data/vendor/libgit2/src/userdiff.h +1 -3
  287. data/vendor/libgit2/src/util.c +56 -70
  288. data/vendor/libgit2/src/util.h +156 -28
  289. data/vendor/libgit2/src/vector.c +4 -4
  290. data/vendor/libgit2/src/win32/dir.c +3 -3
  291. data/vendor/libgit2/src/win32/findfile.c +3 -3
  292. data/vendor/libgit2/src/win32/map.c +11 -9
  293. data/vendor/libgit2/src/win32/msvc-compat.h +0 -6
  294. data/vendor/libgit2/src/win32/path_w32.c +9 -113
  295. data/vendor/libgit2/src/win32/path_w32.h +29 -18
  296. data/vendor/libgit2/src/win32/posix.h +4 -1
  297. data/vendor/libgit2/src/win32/posix_w32.c +45 -70
  298. data/vendor/libgit2/src/win32/precompiled.h +2 -0
  299. data/vendor/libgit2/src/win32/thread.c +10 -5
  300. data/vendor/libgit2/src/win32/w32_buffer.c +5 -9
  301. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c +2 -3
  302. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h +75 -26
  303. data/vendor/libgit2/src/win32/w32_stack.c +11 -6
  304. data/vendor/libgit2/src/win32/w32_stack.h +3 -3
  305. data/vendor/libgit2/src/win32/w32_util.c +64 -27
  306. data/vendor/libgit2/src/win32/w32_util.h +49 -5
  307. data/vendor/libgit2/src/worktree.c +60 -95
  308. data/vendor/libgit2/src/worktree.h +0 -2
  309. data/vendor/libgit2/src/xdiff/xdiffi.c +5 -7
  310. data/vendor/libgit2/src/xdiff/xhistogram.c +1 -1
  311. data/vendor/libgit2/src/xdiff/xmerge.c +15 -27
  312. data/vendor/libgit2/src/xdiff/xpatience.c +0 -3
  313. data/vendor/libgit2/src/zstream.c +4 -4
  314. metadata +33 -122
  315. data/vendor/libgit2/cmake/Modules/FindGSSFramework.cmake +0 -28
  316. data/vendor/libgit2/cmake/Modules/FindPCRE.cmake +0 -38
  317. data/vendor/libgit2/cmake/Modules/FindPCRE2.cmake +0 -37
  318. data/vendor/libgit2/cmake/Modules/FindmbedTLS.cmake +0 -93
  319. data/vendor/libgit2/cmake/Modules/PkgBuildConfig.cmake +0 -110
  320. data/vendor/libgit2/cmake/Modules/SelectGSSAPI.cmake +0 -53
  321. data/vendor/libgit2/cmake/Modules/SelectHTTPSBackend.cmake +0 -124
  322. data/vendor/libgit2/cmake/Modules/SelectHashes.cmake +0 -66
  323. data/vendor/libgit2/deps/ntlmclient/CMakeLists.txt +0 -21
  324. data/vendor/libgit2/deps/ntlmclient/compat.h +0 -33
  325. data/vendor/libgit2/deps/ntlmclient/crypt.h +0 -64
  326. data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.c +0 -120
  327. data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.h +0 -18
  328. data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.c +0 -145
  329. data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.h +0 -18
  330. data/vendor/libgit2/deps/ntlmclient/crypt_openssl.c +0 -130
  331. data/vendor/libgit2/deps/ntlmclient/crypt_openssl.h +0 -21
  332. data/vendor/libgit2/deps/ntlmclient/ntlm.c +0 -1420
  333. data/vendor/libgit2/deps/ntlmclient/ntlm.h +0 -174
  334. data/vendor/libgit2/deps/ntlmclient/ntlmclient.h +0 -320
  335. data/vendor/libgit2/deps/ntlmclient/unicode.h +0 -36
  336. data/vendor/libgit2/deps/ntlmclient/unicode_builtin.c +0 -445
  337. data/vendor/libgit2/deps/ntlmclient/unicode_iconv.c +0 -201
  338. data/vendor/libgit2/deps/ntlmclient/utf8.h +0 -1257
  339. data/vendor/libgit2/deps/ntlmclient/util.c +0 -21
  340. data/vendor/libgit2/deps/ntlmclient/util.h +0 -14
  341. data/vendor/libgit2/deps/pcre/CMakeLists.txt +0 -140
  342. data/vendor/libgit2/deps/pcre/COPYING +0 -5
  343. data/vendor/libgit2/deps/pcre/cmake/COPYING-CMAKE-SCRIPTS +0 -22
  344. data/vendor/libgit2/deps/pcre/cmake/FindEditline.cmake +0 -17
  345. data/vendor/libgit2/deps/pcre/cmake/FindPackageHandleStandardArgs.cmake +0 -58
  346. data/vendor/libgit2/deps/pcre/cmake/FindReadline.cmake +0 -29
  347. data/vendor/libgit2/deps/pcre/config.h.in +0 -57
  348. data/vendor/libgit2/deps/pcre/pcre.h +0 -641
  349. data/vendor/libgit2/deps/pcre/pcre_byte_order.c +0 -319
  350. data/vendor/libgit2/deps/pcre/pcre_chartables.c +0 -198
  351. data/vendor/libgit2/deps/pcre/pcre_compile.c +0 -9800
  352. data/vendor/libgit2/deps/pcre/pcre_config.c +0 -190
  353. data/vendor/libgit2/deps/pcre/pcre_dfa_exec.c +0 -3676
  354. data/vendor/libgit2/deps/pcre/pcre_exec.c +0 -7173
  355. data/vendor/libgit2/deps/pcre/pcre_fullinfo.c +0 -245
  356. data/vendor/libgit2/deps/pcre/pcre_get.c +0 -669
  357. data/vendor/libgit2/deps/pcre/pcre_globals.c +0 -86
  358. data/vendor/libgit2/deps/pcre/pcre_internal.h +0 -2787
  359. data/vendor/libgit2/deps/pcre/pcre_jit_compile.c +0 -11913
  360. data/vendor/libgit2/deps/pcre/pcre_maketables.c +0 -156
  361. data/vendor/libgit2/deps/pcre/pcre_newline.c +0 -210
  362. data/vendor/libgit2/deps/pcre/pcre_ord2utf8.c +0 -94
  363. data/vendor/libgit2/deps/pcre/pcre_printint.c +0 -834
  364. data/vendor/libgit2/deps/pcre/pcre_refcount.c +0 -92
  365. data/vendor/libgit2/deps/pcre/pcre_string_utils.c +0 -211
  366. data/vendor/libgit2/deps/pcre/pcre_study.c +0 -1686
  367. data/vendor/libgit2/deps/pcre/pcre_tables.c +0 -727
  368. data/vendor/libgit2/deps/pcre/pcre_ucd.c +0 -3644
  369. data/vendor/libgit2/deps/pcre/pcre_valid_utf8.c +0 -301
  370. data/vendor/libgit2/deps/pcre/pcre_version.c +0 -98
  371. data/vendor/libgit2/deps/pcre/pcre_xclass.c +0 -268
  372. data/vendor/libgit2/deps/pcre/pcreposix.c +0 -421
  373. data/vendor/libgit2/deps/pcre/pcreposix.h +0 -117
  374. data/vendor/libgit2/deps/pcre/ucp.h +0 -224
  375. data/vendor/libgit2/deps/winhttp/COPYING.GPL +0 -993
  376. data/vendor/libgit2/deps/winhttp/COPYING.LGPL +0 -502
  377. data/vendor/libgit2/deps/zlib/COPYING +0 -27
  378. data/vendor/libgit2/include/git2/apply.h +0 -149
  379. data/vendor/libgit2/include/git2/cert.h +0 -135
  380. data/vendor/libgit2/include/git2/cred.h +0 -308
  381. data/vendor/libgit2/include/git2/deprecated.h +0 -493
  382. data/vendor/libgit2/include/git2/mailmap.h +0 -115
  383. data/vendor/libgit2/include/git2/sys/alloc.h +0 -101
  384. data/vendor/libgit2/include/git2/sys/cred.h +0 -90
  385. data/vendor/libgit2/include/git2/sys/path.h +0 -64
  386. data/vendor/libgit2/src/alloc.c +0 -43
  387. data/vendor/libgit2/src/alloc.h +0 -40
  388. data/vendor/libgit2/src/allocators/stdalloc.c +0 -119
  389. data/vendor/libgit2/src/allocators/win32_crtdbg.c +0 -118
  390. data/vendor/libgit2/src/config_backend.h +0 -96
  391. data/vendor/libgit2/src/config_entries.c +0 -229
  392. data/vendor/libgit2/src/config_entries.h +0 -24
  393. data/vendor/libgit2/src/config_mem.c +0 -220
  394. data/vendor/libgit2/src/config_snapshot.c +0 -206
  395. data/vendor/libgit2/src/errors.h +0 -81
  396. data/vendor/libgit2/src/hash/sha1.h +0 -38
  397. data/vendor/libgit2/src/hash/sha1/collisiondetect.c +0 -48
  398. data/vendor/libgit2/src/hash/sha1/collisiondetect.h +0 -19
  399. data/vendor/libgit2/src/hash/sha1/common_crypto.h +0 -19
  400. data/vendor/libgit2/src/hash/sha1/mbedtls.c +0 -46
  401. data/vendor/libgit2/src/hash/sha1/mbedtls.h +0 -19
  402. data/vendor/libgit2/src/hash/sha1/openssl.c +0 -59
  403. data/vendor/libgit2/src/hash/sha1/openssl.h +0 -19
  404. data/vendor/libgit2/src/mailmap.c +0 -485
  405. data/vendor/libgit2/src/mailmap.h +0 -35
  406. data/vendor/libgit2/src/net.c +0 -184
  407. data/vendor/libgit2/src/net.h +0 -36
  408. data/vendor/libgit2/src/reader.c +0 -265
  409. data/vendor/libgit2/src/reader.h +0 -107
  410. data/vendor/libgit2/src/regexp.c +0 -221
  411. data/vendor/libgit2/src/regexp.h +0 -97
  412. data/vendor/libgit2/src/streams/mbedtls.c +0 -483
  413. data/vendor/libgit2/src/streams/mbedtls.h +0 -23
  414. data/vendor/libgit2/src/streams/registry.c +0 -118
  415. data/vendor/libgit2/src/streams/registry.h +0 -19
  416. data/vendor/libgit2/src/transports/auth_ntlm.c +0 -223
  417. data/vendor/libgit2/src/transports/auth_ntlm.h +0 -35
  418. data/vendor/libgit2/src/wildmatch.c +0 -320
  419. data/vendor/libgit2/src/wildmatch.h +0 -23
  420. data/vendor/libgit2/src/win32/w32_common.h +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60877d4cbb2ebf7883b23ed495e44d5aee569227cb3d708e430f2cda0477d149
4
- data.tar.gz: dd362a1862f13fea15e02619590bffc233b76ebc54f0fce022f14df0c664b0c2
3
+ metadata.gz: 70a778d31c690a9546c49bf2de625d251c624dc75e9a01171ed7922e67907699
4
+ data.tar.gz: 781194f36ca5ac19cfc475b05d61aca788b76421e698e4647e172a05744bef3a
5
5
  SHA512:
6
- metadata.gz: 5fb127dd23146018109bf859280e31f68d3d3634f8657f8771364603b9d79fcbf5d9402805d25a169bd83f606dfdae9019ed911a0486d430f5154ab5e1dcbc63
7
- data.tar.gz: aff42c35c12233cafcea2314ec0dc4d932fe408bf396ea43f9b003ed0c398a412a57965949a09e98cc27bede1586881af792d7b2b8d42cccbc75d51b9e715a16
6
+ metadata.gz: 246a7592db8403acb93af774908a97a155d283b760354818ead1caf4da87129d24a0462c919b5ead6e55a9b0af979e0b212bb4775d321ac136dfe8d1f9e38bc6
7
+ data.tar.gz: 72ccb7c78702e23f96df9e1f1508ff24ac4a3c518eef498a94b3598ce2f657cca80794451cee7984a2b111ad7a6cb815007f8f4da2d7e4435df48cc4db5afa31
@@ -4,5 +4,5 @@
4
4
  # For full terms see the included LICENSE file.
5
5
 
6
6
  module Rugged
7
- Version = VERSION = '0.27.10'
7
+ Version = VERSION = '0.27.10.1'
8
8
  end
@@ -23,7 +23,6 @@ Dmitry Kovega
23
23
  Emeric Fermas
24
24
  Emmanuel Rodriguez
25
25
  Eric Myhre
26
- Erik Aigner
27
26
  Florian Forster
28
27
  Holger Weiss
29
28
  Ingmar Vanhassel
@@ -12,17 +12,14 @@
12
12
  # > cmake --build . --target install
13
13
 
14
14
  PROJECT(libgit2 C)
15
- CMAKE_MINIMUM_REQUIRED(VERSION 3.5.1)
15
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
16
16
  CMAKE_POLICY(SET CMP0015 NEW)
17
- IF(POLICY CMP0051)
17
+ IF (POLICY CMP0051)
18
18
  CMAKE_POLICY(SET CMP0051 NEW)
19
19
  ENDIF()
20
- IF(POLICY CMP0042)
20
+ IF (POLICY CMP0042)
21
21
  CMAKE_POLICY(SET CMP0042 NEW)
22
22
  ENDIF()
23
- IF(POLICY CMP0054)
24
- CMAKE_POLICY(SET CMP0054 NEW)
25
- ENDIF()
26
23
 
27
24
  # Add find modules to the path
28
25
  SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${libgit2_SOURCE_DIR}/cmake/Modules/")
@@ -42,66 +39,63 @@ INCLUDE(EnableWarnings)
42
39
 
43
40
  # Build options
44
41
  #
45
- OPTION(SONAME "Set the (SO)VERSION of the target" ON)
46
- OPTION(BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON)
47
- OPTION(THREADSAFE "Build libgit2 as threadsafe" ON)
48
- OPTION(BUILD_CLAR "Build Tests using the Clar suite" ON)
49
- OPTION(BUILD_EXAMPLES "Build library usage example apps" OFF)
50
- OPTION(BUILD_FUZZERS "Build the fuzz targets" OFF)
51
- OPTION(TAGS "Generate tags" OFF)
52
- OPTION(PROFILE "Generate profiling information" OFF)
53
- OPTION(ENABLE_TRACE "Enables tracing support" ON)
54
- OPTION(LIBGIT2_FILENAME "Name of the produced binary" OFF)
55
- OPTION(USE_SSH "Link with libssh2 to enable SSH support" ON)
56
- OPTION(USE_HTTPS "Enable HTTPS support. Can be set to a specific backend" ON)
57
- OPTION(USE_SHA1 "Enable SHA1. Can be set to CollisionDetection(ON)/HTTPS/Generic" ON)
58
- OPTION(USE_GSSAPI "Link with libgssapi for SPNEGO auth" OFF)
59
- OPTION(USE_STANDALONE_FUZZERS "Enable standalone fuzzers (compatible with gcc)" OFF)
60
- OPTION(USE_LEAK_CHECKER "Run tests with leak checker" OFF)
61
- OPTION(VALGRIND "Configure build for valgrind" OFF)
62
- OPTION(DEBUG_POOL "Enable debug pool allocator" OFF)
63
- OPTION(ENABLE_WERROR "Enable compilation with -Werror" OFF)
64
- OPTION(USE_BUNDLED_ZLIB "Use the bundled version of zlib" OFF)
65
- SET(USE_HTTP_PARSER "" CACHE STRING "Specifies the HTTP Parser implementation; either system or builtin.")
66
- OPTION(DEPRECATE_HARD "Do not include deprecated functions in the library" OFF)
67
- SET(REGEX_BACKEND "" CACHE STRING "Regular expression implementation. One of regcomp_l, pcre2, pcre, regcomp, or builtin.")
68
-
69
- IF (UNIX)
70
- IF (NOT USE_HTTPS)
71
- OPTION(USE_NTLMCLIENT "Enable NTLM support on Unix." OFF )
72
- ELSE()
73
- OPTION(USE_NTLMCLIENT "Enable NTLM support on Unix." ON )
74
- ENDIF()
75
- ENDIF()
42
+ OPTION( SONAME "Set the (SO)VERSION of the target" ON )
43
+ OPTION( BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON )
44
+ OPTION( THREADSAFE "Build libgit2 as threadsafe" ON )
45
+ OPTION( BUILD_CLAR "Build Tests using the Clar suite" ON )
46
+ OPTION( BUILD_EXAMPLES "Build library usage example apps" OFF )
47
+ OPTION( TAGS "Generate tags" OFF )
48
+ OPTION( PROFILE "Generate profiling information" OFF )
49
+ OPTION( ENABLE_TRACE "Enables tracing support" OFF )
50
+ OPTION( LIBGIT2_FILENAME "Name of the produced binary" OFF )
51
+
52
+ SET(SHA1_BACKEND "CollisionDetection" CACHE STRING "Backend to use for SHA1. One of Generic, OpenSSL, Win32, CommonCrypto, CollisionDetection. ")
53
+ OPTION( USE_SSH "Link with libssh to enable SSH support" ON )
54
+ OPTION( USE_HTTPS "Enable HTTPS support. Can be set to a specific backend" ON )
55
+ OPTION( USE_GSSAPI "Link with libgssapi for SPNEGO auth" OFF )
56
+ OPTION( VALGRIND "Configure build for valgrind" OFF )
57
+ OPTION( CURL "Use curl for HTTP if available" ON)
58
+ OPTION( USE_EXT_HTTP_PARSER "Use system HTTP_Parser if available" ON)
59
+ OPTION( DEBUG_POOL "Enable debug pool allocator" OFF )
60
+ OPTION( ENABLE_WERROR "Enable compilation with -Werror" OFF )
61
+ OPTION( USE_BUNDLED_ZLIB "Use the bundled version of zlib" OFF )
76
62
 
77
63
  IF (UNIX AND NOT APPLE)
78
- OPTION(ENABLE_REPRODUCIBLE_BUILDS "Enable reproducible builds" OFF)
64
+ OPTION( ENABLE_REPRODUCIBLE_BUILDS "Enable reproducible builds" OFF )
79
65
  ENDIF()
80
66
 
81
67
  IF (APPLE)
82
- OPTION(USE_ICONV "Link with and use iconv library" ON)
68
+ OPTION( USE_ICONV "Link with and use iconv library" ON )
83
69
  ENDIF()
84
70
 
85
71
  IF(MSVC)
72
+ # This option is only available when building with MSVC. By default, libgit2
73
+ # is build using the cdecl calling convention, which is useful if you're
74
+ # writing C. However, the CLR and Win32 API both expect stdcall.
75
+ #
76
+ # If you are writing a CLR program and want to link to libgit2, you'll want
77
+ # to turn this on by invoking CMake with the "-DSTDCALL=ON" argument.
78
+ OPTION( STDCALL "Build libgit2 with the __stdcall convention" OFF )
79
+
86
80
  # This option must match the settings used in your program, in particular if you
87
81
  # are linking statically
88
- OPTION(STATIC_CRT "Link the static CRT libraries" ON)
82
+ OPTION( STATIC_CRT "Link the static CRT libraries" ON )
89
83
 
90
84
  # If you want to embed a copy of libssh2 into libgit2, pass a
91
85
  # path to libssh2
92
- OPTION(EMBED_SSH_PATH "Path to libssh2 to embed (Windows)" OFF)
86
+ OPTION( EMBED_SSH_PATH "Path to libssh2 to embed (Windows)" OFF )
93
87
  ENDIF()
94
88
 
95
89
 
96
90
  IF(WIN32)
97
91
  # By default, libgit2 is built with WinHTTP. To use the built-in
98
92
  # HTTP transport, invoke CMake with the "-DWINHTTP=OFF" argument.
99
- OPTION(WINHTTP "Use Win32 WinHTTP routines" ON)
93
+ OPTION( WINHTTP "Use Win32 WinHTTP routines" ON )
100
94
  ENDIF()
101
95
 
102
96
  IF(MSVC)
103
97
  # Enable MSVC CRTDBG memory leak reporting when in debug mode.
104
- OPTION(MSVC_CRTDBG "Enable CRTDBG memory leak reporting" OFF)
98
+ OPTION(MSVC_CRTDBG "Enable CRTDBG memory leak reporting" OFF)
105
99
  ENDIF()
106
100
 
107
101
  FILE(STRINGS "${libgit2_SOURCE_DIR}/include/git2/version.h" GIT2_HEADER REGEX "^#define LIBGIT2_VERSION \"[^\"]*\"$")
@@ -114,16 +108,8 @@ SET(LIBGIT2_VERSION_STRING "${LIBGIT2_VERSION_MAJOR}.${LIBGIT2_VERSION_MINOR}.${
114
108
  FILE(STRINGS "${libgit2_SOURCE_DIR}/include/git2/version.h" GIT2_HEADER_SOVERSION REGEX "^#define LIBGIT2_SOVERSION [0-9]+$")
115
109
  STRING(REGEX REPLACE "^.*LIBGIT2_SOVERSION ([0-9]+)$" "\\1" LIBGIT2_SOVERSION "${GIT2_HEADER_SOVERSION}")
116
110
 
117
- IF (DEPRECATE_HARD)
118
- ADD_DEFINITIONS(-DGIT_DEPRECATE_HARD)
119
- ENDIF()
120
-
121
111
  # Platform specific compilation flags
122
112
  IF (MSVC)
123
- IF (STDCALL)
124
- MESSAGE(FATAL_ERROR "The STDCALL option is no longer supported; libgit2 is now always built as a cdecl library. If you're using PInvoke, please add the CallingConventions.Cdecl attribute for support.")
125
- ENDIF()
126
-
127
113
  ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS)
128
114
  ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
129
115
  ADD_DEFINITIONS(-D_CRT_NONSTDC_NO_DEPRECATE)
@@ -134,8 +120,10 @@ IF (MSVC)
134
120
  # /MP - Parallel build
135
121
  SET(CMAKE_C_FLAGS "/GF /MP /nologo ${CMAKE_C_FLAGS}")
136
122
 
137
- # /Gd - explicitly set cdecl calling convention
138
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Gd")
123
+ IF (STDCALL)
124
+ # /Gz - stdcall calling convention
125
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Gz")
126
+ ENDIF ()
139
127
 
140
128
  IF (STATIC_CRT)
141
129
  SET(CRT_FLAG_DEBUG "/MTd")
@@ -174,9 +162,6 @@ IF (MSVC)
174
162
  # /O1 - Optimize for size
175
163
  SET(CMAKE_C_FLAGS_MINSIZEREL "/DNDEBUG /O1 /Oy /GL /Gy ${CRT_FLAG_RELEASE}")
176
164
 
177
- # /IGNORE:4221 - Ignore empty compilation units
178
- SET(CMAKE_STATIC_LINKER_FLAGS "/IGNORE:4221")
179
-
180
165
  # /DYNAMICBASE - Address space load randomization (ASLR)
181
166
  # /NXCOMPAT - Data execution prevention (DEP)
182
167
  # /LARGEADDRESSAWARE - >2GB user address space on x86
@@ -212,7 +197,7 @@ ELSE ()
212
197
  ENABLE_WARNINGS(extra)
213
198
 
214
199
  IF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
215
- SET(CMAKE_C_FLAGS "-D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS ${CMAKE_C_FLAGS}")
200
+ SET(CMAKE_C_FLAGS "-std=c99 -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS ${CMAKE_C_FLAGS}")
216
201
  ENDIF()
217
202
 
218
203
  SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG -O0")
@@ -238,23 +223,14 @@ ELSE ()
238
223
  ENABLE_WARNINGS(strict-prototypes)
239
224
  ENABLE_WARNINGS(declaration-after-statement)
240
225
  ENABLE_WARNINGS(shift-count-overflow)
241
- ENABLE_WARNINGS(unused-const-variable)
242
- ENABLE_WARNINGS(unused-function)
226
+ DISABLE_WARNINGS(unused-const-variable)
227
+ DISABLE_WARNINGS(unused-function)
228
+ ENABLE_WARNINGS(format)
229
+ ENABLE_WARNINGS(format-security)
243
230
  ENABLE_WARNINGS(int-conversion)
244
231
 
245
- # MinGW uses gcc, which expects POSIX formatting for printf, but
246
- # uses the Windows C library, which uses its own format specifiers.
247
- # Disable format specifier warnings.
248
- IF(MINGW)
249
- DISABLE_WARNINGS(format)
250
- DISABLE_WARNINGS(format-security)
251
- ELSE()
252
- ENABLE_WARNINGS(format)
253
- ENABLE_WARNINGS(format-security)
254
- ENDIF()
255
-
256
- IF("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
257
- DISABLE_WARNINGS(documentation-deprecated-sync)
232
+ IF (APPLE) # Apple deprecated OpenSSL
233
+ DISABLE_WARNINGS(deprecated-declarations)
258
234
  ENDIF()
259
235
 
260
236
  IF (PROFILE)
@@ -263,11 +239,6 @@ ELSE ()
263
239
  ENDIF ()
264
240
  ENDIF()
265
241
 
266
- # Ensure that MinGW provides the correct header files.
267
- IF (WIN32 AND NOT CYGWIN)
268
- ADD_DEFINITIONS(-DWIN32 -D_WIN32_WINNT=0x0600)
269
- ENDIF()
270
-
271
242
  IF( NOT CMAKE_CONFIGURATION_TYPES )
272
243
  # Build Debug by default
273
244
  IF (NOT CMAKE_BUILD_TYPE)
@@ -278,14 +249,6 @@ ELSE()
278
249
  # that uses CMAKE_CONFIGURATION_TYPES and not CMAKE_BUILD_TYPE
279
250
  ENDIF()
280
251
 
281
- IF(BUILD_FUZZERS AND NOT USE_STANDALONE_FUZZERS)
282
- # The actual sanitizer link target will be added when linking the fuzz
283
- # targets.
284
- SET(CMAKE_REQUIRED_FLAGS "-fsanitize=fuzzer-no-link")
285
- ADD_C_FLAG(-fsanitize=fuzzer-no-link)
286
- UNSET(CMAKE_REQUIRED_FLAGS)
287
- ENDIF ()
288
-
289
252
  ADD_SUBDIRECTORY(src)
290
253
 
291
254
  # Tests
@@ -323,17 +286,10 @@ IF (BUILD_EXAMPLES)
323
286
  ADD_SUBDIRECTORY(examples)
324
287
  ENDIF ()
325
288
 
326
- IF(BUILD_FUZZERS)
327
- IF(NOT USE_STANDALONE_FUZZERS)
328
- IF(BUILD_EXAMPLES)
329
- MESSAGE(FATAL_ERROR "Cannot build the fuzzer targets and the examples together")
330
- ENDIF()
331
- IF(BUILD_CLAR)
332
- MESSAGE(FATAL_ERROR "Cannot build the fuzzer targets and the tests together")
333
- ENDIF()
334
- ENDIF()
335
- ADD_SUBDIRECTORY(fuzzers)
289
+ IF(CMAKE_VERSION VERSION_GREATER 3)
290
+ FEATURE_SUMMARY(WHAT ENABLED_FEATURES DESCRIPTION "Enabled features:")
291
+ FEATURE_SUMMARY(WHAT DISABLED_FEATURES DESCRIPTION "Disabled features:")
292
+ ELSE()
293
+ PRINT_ENABLED_FEATURES()
294
+ PRINT_DISABLED_FEATURES()
336
295
  ENDIF()
337
-
338
- FEATURE_SUMMARY(WHAT ENABLED_FEATURES DESCRIPTION "Enabled features:")
339
- FEATURE_SUMMARY(WHAT DISABLED_FEATURES DESCRIPTION "Disabled features:")
@@ -991,31 +991,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
991
991
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
992
992
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
993
993
  SOFTWARE.
994
-
995
- ----------------------------------------------------------------------
996
-
997
- The bundled wildmatch code is licensed under the BSD license:
998
-
999
- Copyright Rich Salz.
1000
- All rights reserved.
1001
-
1002
- Redistribution and use in any form are permitted provided that the
1003
- following restrictions are are met:
1004
-
1005
- 1. Source distributions must retain this entire copyright notice
1006
- and comment.
1007
- 2. Binary distributions must include the acknowledgement ``This
1008
- product includes software developed by Rich Salz'' in the
1009
- documentation or other materials provided with the
1010
- distribution. This must not be represented as an endorsement
1011
- or promotion without specific prior written permission.
1012
- 3. The origin of this software must not be misrepresented, either
1013
- by explicit claim or by omission. Credits must appear in the
1014
- source and documentation.
1015
- 4. Altered versions must be plainly marked as such in the source
1016
- and documentation and must not be misrepresented as being the
1017
- original software.
1018
-
1019
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
1020
- WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
1021
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
@@ -5,23 +5,9 @@
5
5
 
6
6
  INCLUDE(CheckCCompilerFlag)
7
7
 
8
- MACRO(ADD_C_FLAG _FLAG)
9
- STRING(TOUPPER ${_FLAG} UPCASE)
10
- STRING(REGEX REPLACE "[-=]" "_" UPCASE_PRETTY ${UPCASE})
11
- STRING(REGEX REPLACE "^_+" "" UPCASE_PRETTY ${UPCASE_PRETTY})
12
- CHECK_C_COMPILER_FLAG(${_FLAG} IS_${UPCASE_PRETTY}_SUPPORTED)
13
-
14
- IF(IS_${UPCASE_PRETTY}_SUPPORTED)
15
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_FLAG}")
16
- ELSE()
17
- MESSAGE(FATAL_ERROR "Required flag ${_FLAG} is not supported")
18
- ENDIF()
19
- ENDMACRO()
20
-
21
8
  MACRO(ADD_C_FLAG_IF_SUPPORTED _FLAG)
22
9
  STRING(TOUPPER ${_FLAG} UPCASE)
23
- STRING(REGEX REPLACE "[-=]" "_" UPCASE_PRETTY ${UPCASE})
24
- STRING(REGEX REPLACE "^_+" "" UPCASE_PRETTY ${UPCASE_PRETTY})
10
+ STRING(REGEX REPLACE "^-" "" UPCASE_PRETTY ${UPCASE})
25
11
  CHECK_C_COMPILER_FLAG(${_FLAG} IS_${UPCASE_PRETTY}_SUPPORTED)
26
12
 
27
13
  IF(IS_${UPCASE_PRETTY}_SUPPORTED)
@@ -1,15 +1,14 @@
1
1
  MACRO(ENABLE_WARNINGS flag)
2
- ADD_C_FLAG_IF_SUPPORTED(-W${flag})
2
+ IF(ENABLE_WERROR)
3
+ ADD_C_FLAG_IF_SUPPORTED(-Werror=${flag})
4
+ ELSE()
5
+ ADD_C_FLAG_IF_SUPPORTED(-W${flag})
6
+ ENDIF()
3
7
  ENDMACRO()
4
8
 
5
9
  MACRO(DISABLE_WARNINGS flag)
6
10
  ADD_C_FLAG_IF_SUPPORTED(-Wno-${flag})
7
- ENDMACRO()
8
-
9
- IF(ENABLE_WERROR)
10
- IF(MSVC)
11
- ADD_COMPILE_OPTIONS(-WX)
12
- ELSE()
13
- ADD_C_FLAG_IF_SUPPORTED(-Werror)
11
+ IF(ENABLE_WERROR)
12
+ ADD_C_FLAG_IF_SUPPORTED(-Wno-error=${flag})
14
13
  ENDIF()
15
- ENDIF()
14
+ ENDMACRO()
@@ -10,14 +10,14 @@ FIND_PATH(COREFOUNDATION_INCLUDE_DIR NAMES CoreFoundation.h)
10
10
  FIND_LIBRARY(COREFOUNDATION_LIBRARIES NAMES CoreFoundation)
11
11
  IF (COREFOUNDATION_INCLUDE_DIR AND COREFOUNDATION_LIBRARIES)
12
12
  IF (NOT CoreFoundation_FIND_QUIETLY)
13
- MESSAGE(STATUS "Found CoreFoundation ${COREFOUNDATION_LIBRARIES}")
13
+ MESSAGE("-- Found CoreFoundation ${COREFOUNDATION_LIBRARIES}")
14
14
  ENDIF()
15
15
  SET(COREFOUNDATION_FOUND TRUE)
16
16
  SET(COREFOUNDATION_LDFLAGS "-framework CoreFoundation")
17
17
  ENDIF ()
18
18
 
19
19
  IF (CoreFoundation_FIND_REQUIRED AND NOT COREFOUNDATION_FOUND)
20
- MESSAGE(FATAL_ERROR "CoreFoundation not found")
20
+ MESSAGE(FATAL "-- CoreFoundation not found")
21
21
  ENDIF()
22
22
 
23
23
  MARK_AS_ADVANCED(
@@ -6,7 +6,7 @@
6
6
  #
7
7
  # Read-Only variables:
8
8
  # GSSAPI_FLAVOR_MIT - set to TURE if MIT Kerberos has been found
9
- # GSSAPI_FLAVOR_HEIMDAL - set to TRUE if Heimdal Kerberos has been found
9
+ # GSSAPI_FLAVOR_HEIMDAL - set to TRUE if Heimdal Keberos has been found
10
10
  # GSSAPI_FOUND - system has GSSAPI
11
11
  # GSSAPI_INCLUDE_DIR - the GSSAPI include directory
12
12
  # GSSAPI_LIBRARIES - Link these to use GSSAPI
@@ -11,7 +11,7 @@ FIND_PATH(SECURITY_INCLUDE_DIR NAMES Security/Security.h)
11
11
  FIND_LIBRARY(SECURITY_LIBRARIES NAMES Security)
12
12
  IF (SECURITY_INCLUDE_DIR AND SECURITY_LIBRARIES)
13
13
  IF (NOT Security_FIND_QUIETLY)
14
- MESSAGE(STATUS "Found Security ${SECURITY_LIBRARIES}")
14
+ MESSAGE("-- Found Security ${SECURITY_LIBRARIES}")
15
15
  ENDIF()
16
16
  SET(SECURITY_FOUND TRUE)
17
17
  SET(SECURITY_LDFLAGS "-framework Security")
@@ -19,7 +19,7 @@ IF (SECURITY_INCLUDE_DIR AND SECURITY_LIBRARIES)
19
19
  ENDIF ()
20
20
 
21
21
  IF (Security_FIND_REQUIRED AND NOT SECURITY_FOUND)
22
- MESSAGE(FATAL_ERROR "Security not found")
22
+ MESSAGE(FATAL "-- Security not found")
23
23
  ENDIF()
24
24
 
25
25
  MARK_AS_ADVANCED(
@@ -1,5 +1,3 @@
1
- INCLUDE(FeatureSummary)
2
-
3
1
  CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtim "sys/types.h;sys/stat.h"
4
2
  HAVE_STRUCT_STAT_ST_MTIM LANGUAGE C)
5
3
  CHECK_STRUCT_HAS_MEMBER ("struct stat" st_mtimespec "sys/types.h;sys/stat.h"
@@ -19,8 +17,4 @@ ENDIF()
19
17
 
20
18
  IF (HAVE_STRUCT_STAT_NSEC OR WIN32)
21
19
  OPTION( USE_NSEC "Care about sub-second file mtimes and ctimes" ON )
22
- ELSE()
23
- SET(USE_NSEC OFF)
24
20
  ENDIF()
25
-
26
- ADD_FEATURE_INFO(nanoseconds USE_NSEC "whether to use sub-second file mtimes and ctimes")
@@ -1,5 +1,3 @@
1
1
  FILE(GLOB SRC_HTTP "*.c" "*.h")
2
2
 
3
3
  ADD_LIBRARY(http-parser OBJECT ${SRC_HTTP})
4
-
5
- ENABLE_WARNINGS(implicit-fallthrough=1)
@@ -1992,9 +1992,6 @@ http_parse_host(const char * buf, struct http_parser_url *u, int found_at) {
1992
1992
  const char *p;
1993
1993
  size_t buflen = u->field_data[UF_HOST].off + u->field_data[UF_HOST].len;
1994
1994
 
1995
- if (buflen > UINT16_MAX)
1996
- return 1;
1997
-
1998
1995
  u->field_data[UF_HOST].len = 0;
1999
1996
 
2000
1997
  s = found_at ? s_http_userinfo_start : s_http_host_start;
@@ -2009,21 +2006,21 @@ http_parse_host(const char * buf, struct http_parser_url *u, int found_at) {
2009
2006
  switch(new_s) {
2010
2007
  case s_http_host:
2011
2008
  if (s != s_http_host) {
2012
- u->field_data[UF_HOST].off = (uint16_t)(p - buf);
2009
+ u->field_data[UF_HOST].off = p - buf;
2013
2010
  }
2014
2011
  u->field_data[UF_HOST].len++;
2015
2012
  break;
2016
2013
 
2017
2014
  case s_http_host_v6:
2018
2015
  if (s != s_http_host_v6) {
2019
- u->field_data[UF_HOST].off = (uint16_t)(p - buf);
2016
+ u->field_data[UF_HOST].off = p - buf;
2020
2017
  }
2021
2018
  u->field_data[UF_HOST].len++;
2022
2019
  break;
2023
2020
 
2024
2021
  case s_http_host_port:
2025
2022
  if (s != s_http_host_port) {
2026
- u->field_data[UF_PORT].off = (uint16_t)(p - buf);
2023
+ u->field_data[UF_PORT].off = p - buf;
2027
2024
  u->field_data[UF_PORT].len = 0;
2028
2025
  u->field_set |= (1 << UF_PORT);
2029
2026
  }
@@ -2032,7 +2029,7 @@ http_parse_host(const char * buf, struct http_parser_url *u, int found_at) {
2032
2029
 
2033
2030
  case s_http_userinfo:
2034
2031
  if (s != s_http_userinfo) {
2035
- u->field_data[UF_USERINFO].off = (uint16_t)(p - buf);
2032
+ u->field_data[UF_USERINFO].off = p - buf ;
2036
2033
  u->field_data[UF_USERINFO].len = 0;
2037
2034
  u->field_set |= (1 << UF_USERINFO);
2038
2035
  }
@@ -2050,6 +2047,7 @@ http_parse_host(const char * buf, struct http_parser_url *u, int found_at) {
2050
2047
  case s_http_host_start:
2051
2048
  case s_http_host_v6_start:
2052
2049
  case s_http_host_v6:
2050
+ case s_http_host_port_start:
2053
2051
  case s_http_userinfo:
2054
2052
  case s_http_userinfo_start:
2055
2053
  return 1;
@@ -2069,9 +2067,6 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
2069
2067
  enum http_parser_url_fields uf, old_uf;
2070
2068
  int found_at = 0;
2071
2069
 
2072
- if (buflen > UINT16_MAX)
2073
- return 1;
2074
-
2075
2070
  u->port = u->field_set = 0;
2076
2071
  s = is_connect ? s_req_server_start : s_req_spaces_before_url;
2077
2072
  uf = old_uf = UF_MAX;
@@ -2127,7 +2122,7 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
2127
2122
  continue;
2128
2123
  }
2129
2124
 
2130
- u->field_data[uf].off = (uint16_t)(p - buf);
2125
+ u->field_data[uf].off = p - buf;
2131
2126
  u->field_data[uf].len = 1;
2132
2127
 
2133
2128
  u->field_set |= (1 << uf);