rugged 0.28.4 → 0.28.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) 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 +16 -36
  5. data/vendor/libgit2/COPYING +0 -28
  6. data/vendor/libgit2/cmake/Modules/EnableWarnings.cmake +1 -5
  7. data/vendor/libgit2/cmake/Modules/FindCoreFoundation.cmake +2 -2
  8. data/vendor/libgit2/cmake/Modules/FindGSSAPI.cmake +1 -1
  9. data/vendor/libgit2/cmake/Modules/FindSecurity.cmake +2 -2
  10. data/vendor/libgit2/cmake/Modules/FindStatNsec.cmake +0 -6
  11. data/vendor/libgit2/deps/http-parser/http_parser.c +6 -11
  12. data/vendor/libgit2/deps/regex/CMakeLists.txt +2 -0
  13. data/vendor/libgit2/deps/regex/COPYING +502 -0
  14. data/vendor/libgit2/deps/regex/config.h +7 -0
  15. data/vendor/libgit2/deps/regex/regcomp.c +3857 -0
  16. data/vendor/libgit2/deps/regex/regex.c +92 -0
  17. data/vendor/libgit2/deps/regex/regex.h +582 -0
  18. data/vendor/libgit2/deps/regex/regex_internal.c +1744 -0
  19. data/vendor/libgit2/deps/regex/regex_internal.h +819 -0
  20. data/vendor/libgit2/deps/regex/regexec.c +4369 -0
  21. data/vendor/libgit2/deps/zlib/adler32.c +7 -0
  22. data/vendor/libgit2/deps/zlib/crc32.c +7 -0
  23. data/vendor/libgit2/include/git2.h +0 -2
  24. data/vendor/libgit2/include/git2/apply.h +2 -22
  25. data/vendor/libgit2/include/git2/attr.h +12 -19
  26. data/vendor/libgit2/include/git2/blame.h +2 -2
  27. data/vendor/libgit2/include/git2/blob.h +12 -44
  28. data/vendor/libgit2/include/git2/buffer.h +14 -20
  29. data/vendor/libgit2/include/git2/checkout.h +14 -46
  30. data/vendor/libgit2/include/git2/cherrypick.h +3 -3
  31. data/vendor/libgit2/include/git2/clone.h +2 -2
  32. data/vendor/libgit2/include/git2/commit.h +1 -23
  33. data/vendor/libgit2/include/git2/common.h +5 -7
  34. data/vendor/libgit2/include/git2/config.h +12 -12
  35. data/vendor/libgit2/include/git2/deprecated.h +3 -243
  36. data/vendor/libgit2/include/git2/describe.h +4 -4
  37. data/vendor/libgit2/include/git2/diff.h +14 -16
  38. data/vendor/libgit2/include/git2/filter.h +0 -8
  39. data/vendor/libgit2/include/git2/index.h +1 -2
  40. data/vendor/libgit2/include/git2/indexer.h +4 -48
  41. data/vendor/libgit2/include/git2/inttypes.h +309 -0
  42. data/vendor/libgit2/include/git2/merge.h +10 -6
  43. data/vendor/libgit2/include/git2/net.h +5 -0
  44. data/vendor/libgit2/include/git2/object.h +14 -2
  45. data/vendor/libgit2/include/git2/odb.h +2 -3
  46. data/vendor/libgit2/include/git2/odb_backend.h +4 -5
  47. data/vendor/libgit2/include/git2/oid.h +1 -1
  48. data/vendor/libgit2/include/git2/pack.h +1 -12
  49. data/vendor/libgit2/include/git2/proxy.h +3 -5
  50. data/vendor/libgit2/include/git2/rebase.h +2 -46
  51. data/vendor/libgit2/include/git2/refs.h +0 -19
  52. data/vendor/libgit2/include/git2/remote.h +12 -35
  53. data/vendor/libgit2/include/git2/repository.h +2 -24
  54. data/vendor/libgit2/include/git2/revert.h +1 -1
  55. data/vendor/libgit2/include/git2/stash.h +3 -3
  56. data/vendor/libgit2/include/git2/status.h +16 -25
  57. data/vendor/libgit2/include/git2/submodule.h +3 -20
  58. data/vendor/libgit2/include/git2/sys/alloc.h +9 -9
  59. data/vendor/libgit2/include/git2/sys/odb_backend.h +4 -48
  60. data/vendor/libgit2/include/git2/sys/refdb_backend.h +21 -57
  61. data/vendor/libgit2/include/git2/sys/repository.h +1 -5
  62. data/vendor/libgit2/include/git2/sys/time.h +31 -0
  63. data/vendor/libgit2/include/git2/sys/transport.h +2 -2
  64. data/vendor/libgit2/include/git2/tag.h +2 -11
  65. data/vendor/libgit2/include/git2/trace.h +2 -2
  66. data/vendor/libgit2/include/git2/transport.h +340 -11
  67. data/vendor/libgit2/include/git2/tree.h +1 -1
  68. data/vendor/libgit2/include/git2/types.h +89 -4
  69. data/vendor/libgit2/include/git2/version.h +2 -2
  70. data/vendor/libgit2/include/git2/worktree.h +5 -5
  71. data/vendor/libgit2/libgit2.pc.in +13 -0
  72. data/vendor/libgit2/src/CMakeLists.txt +222 -88
  73. data/vendor/libgit2/src/alloc.c +14 -2
  74. data/vendor/libgit2/src/apply.c +30 -60
  75. data/vendor/libgit2/src/attr.c +64 -70
  76. data/vendor/libgit2/src/attr_file.c +96 -189
  77. data/vendor/libgit2/src/attr_file.h +9 -9
  78. data/vendor/libgit2/src/attrcache.c +46 -44
  79. data/vendor/libgit2/src/attrcache.h +1 -2
  80. data/vendor/libgit2/src/blame.c +5 -17
  81. data/vendor/libgit2/src/blame.h +1 -1
  82. data/vendor/libgit2/src/blame_git.c +7 -21
  83. data/vendor/libgit2/src/blob.c +17 -81
  84. data/vendor/libgit2/src/blob.h +2 -2
  85. data/vendor/libgit2/src/branch.c +5 -29
  86. data/vendor/libgit2/src/buffer.c +7 -14
  87. data/vendor/libgit2/src/cache.c +33 -26
  88. data/vendor/libgit2/src/cache.h +1 -1
  89. data/vendor/libgit2/src/cc-compat.h +0 -5
  90. data/vendor/libgit2/src/checkout.c +16 -26
  91. data/vendor/libgit2/src/cherrypick.c +3 -9
  92. data/vendor/libgit2/src/clone.c +7 -29
  93. data/vendor/libgit2/src/clone.h +0 -4
  94. data/vendor/libgit2/src/commit.c +21 -69
  95. data/vendor/libgit2/src/commit.h +0 -6
  96. data/vendor/libgit2/src/commit_list.c +76 -28
  97. data/vendor/libgit2/src/commit_list.h +2 -2
  98. data/vendor/libgit2/src/common.h +75 -3
  99. data/vendor/libgit2/src/config.c +40 -31
  100. data/vendor/libgit2/src/config.h +6 -7
  101. data/vendor/libgit2/src/config_backend.h +0 -12
  102. data/vendor/libgit2/src/config_cache.c +39 -39
  103. data/vendor/libgit2/src/config_entries.c +99 -69
  104. data/vendor/libgit2/src/config_entries.h +0 -1
  105. data/vendor/libgit2/src/config_file.c +380 -337
  106. data/vendor/libgit2/src/config_mem.c +16 -12
  107. data/vendor/libgit2/src/config_parse.c +29 -49
  108. data/vendor/libgit2/src/config_parse.h +12 -13
  109. data/vendor/libgit2/src/crlf.c +14 -14
  110. data/vendor/libgit2/src/describe.c +20 -21
  111. data/vendor/libgit2/src/diff.c +58 -43
  112. data/vendor/libgit2/src/diff.h +1 -2
  113. data/vendor/libgit2/src/diff_driver.c +38 -37
  114. data/vendor/libgit2/src/diff_file.c +7 -9
  115. data/vendor/libgit2/src/diff_file.h +1 -1
  116. data/vendor/libgit2/src/diff_generate.c +85 -135
  117. data/vendor/libgit2/src/diff_generate.h +2 -2
  118. data/vendor/libgit2/src/diff_parse.c +1 -1
  119. data/vendor/libgit2/src/diff_print.c +13 -25
  120. data/vendor/libgit2/src/diff_stats.c +1 -1
  121. data/vendor/libgit2/src/diff_tform.c +4 -4
  122. data/vendor/libgit2/src/errors.c +22 -12
  123. data/vendor/libgit2/src/features.h.in +2 -9
  124. data/vendor/libgit2/src/fetch.c +2 -7
  125. data/vendor/libgit2/src/fetchhead.c +1 -1
  126. data/vendor/libgit2/src/filebuf.c +10 -6
  127. data/vendor/libgit2/src/filebuf.h +2 -2
  128. data/vendor/libgit2/src/{futils.c → fileops.c} +17 -21
  129. data/vendor/libgit2/src/{futils.h → fileops.h} +5 -5
  130. data/vendor/libgit2/src/filter.c +8 -16
  131. data/vendor/libgit2/src/fnmatch.c +248 -0
  132. data/vendor/libgit2/src/fnmatch.h +48 -0
  133. data/vendor/libgit2/src/global.c +40 -12
  134. data/vendor/libgit2/src/global.h +2 -0
  135. data/vendor/libgit2/src/hash.c +0 -61
  136. data/vendor/libgit2/src/hash.h +21 -19
  137. data/vendor/libgit2/src/hash/{sha1/collisiondetect.c → hash_collisiondetect.h} +17 -14
  138. data/vendor/libgit2/src/hash/{sha1/common_crypto.c → hash_common_crypto.h} +19 -15
  139. data/vendor/libgit2/src/hash/{sha1/generic.c → hash_generic.c} +10 -22
  140. data/vendor/libgit2/src/hash/{sha1/generic.h → hash_generic.h} +14 -4
  141. data/vendor/libgit2/src/hash/{sha1/mbedtls.c → hash_mbedtls.c} +7 -15
  142. data/vendor/libgit2/src/hash/{sha1/mbedtls.h → hash_mbedtls.h} +11 -6
  143. data/vendor/libgit2/src/hash/{sha1/openssl.c → hash_openssl.h} +18 -14
  144. data/vendor/libgit2/src/hash/{sha1/win32.c → hash_win32.c} +24 -34
  145. data/vendor/libgit2/src/hash/{sha1/win32.h → hash_win32.h} +19 -6
  146. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/sha1.c +3 -14
  147. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/sha1.h +0 -0
  148. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/ubc_check.c +0 -0
  149. data/vendor/libgit2/src/hash/{sha1/sha1dc → sha1dc}/ubc_check.h +0 -0
  150. data/vendor/libgit2/src/hashsig.c +1 -1
  151. data/vendor/libgit2/src/idxmap.c +65 -91
  152. data/vendor/libgit2/src/idxmap.h +15 -151
  153. data/vendor/libgit2/src/ignore.c +38 -32
  154. data/vendor/libgit2/src/index.c +43 -66
  155. data/vendor/libgit2/src/index.h +1 -1
  156. data/vendor/libgit2/src/indexer.c +70 -69
  157. data/vendor/libgit2/src/integer.h +4 -39
  158. data/vendor/libgit2/src/iterator.c +22 -27
  159. data/vendor/libgit2/src/map.h +1 -1
  160. data/vendor/libgit2/src/merge.c +44 -58
  161. data/vendor/libgit2/src/merge_driver.c +4 -4
  162. data/vendor/libgit2/src/merge_file.c +1 -1
  163. data/vendor/libgit2/src/mwindow.c +23 -18
  164. data/vendor/libgit2/src/mwindow.h +4 -4
  165. data/vendor/libgit2/src/netops.c +165 -55
  166. data/vendor/libgit2/src/netops.h +25 -3
  167. data/vendor/libgit2/src/notes.c +2 -2
  168. data/vendor/libgit2/src/object.c +2 -2
  169. data/vendor/libgit2/src/object.h +0 -2
  170. data/vendor/libgit2/src/odb.c +23 -41
  171. data/vendor/libgit2/src/odb.h +2 -3
  172. data/vendor/libgit2/src/odb_loose.c +10 -17
  173. data/vendor/libgit2/src/odb_mempack.c +23 -10
  174. data/vendor/libgit2/src/odb_pack.c +4 -4
  175. data/vendor/libgit2/src/offmap.c +55 -43
  176. data/vendor/libgit2/src/offmap.h +24 -102
  177. data/vendor/libgit2/src/oid.c +1 -6
  178. data/vendor/libgit2/src/oidmap.c +57 -39
  179. data/vendor/libgit2/src/oidmap.h +19 -99
  180. data/vendor/libgit2/src/pack-objects.c +32 -25
  181. data/vendor/libgit2/src/pack-objects.h +1 -1
  182. data/vendor/libgit2/src/pack.c +47 -45
  183. data/vendor/libgit2/src/pack.h +14 -12
  184. data/vendor/libgit2/src/parse.c +0 -10
  185. data/vendor/libgit2/src/parse.h +3 -3
  186. data/vendor/libgit2/src/patch.c +1 -1
  187. data/vendor/libgit2/src/patch_generate.c +2 -2
  188. data/vendor/libgit2/src/patch_parse.c +31 -124
  189. data/vendor/libgit2/src/path.c +6 -43
  190. data/vendor/libgit2/src/path.h +0 -2
  191. data/vendor/libgit2/src/pathspec.c +13 -13
  192. data/vendor/libgit2/src/pool.c +22 -26
  193. data/vendor/libgit2/src/pool.h +7 -7
  194. data/vendor/libgit2/src/posix.c +7 -7
  195. data/vendor/libgit2/src/posix.h +1 -12
  196. data/vendor/libgit2/src/proxy.c +2 -7
  197. data/vendor/libgit2/src/push.c +5 -10
  198. data/vendor/libgit2/src/reader.c +2 -2
  199. data/vendor/libgit2/src/rebase.c +7 -66
  200. data/vendor/libgit2/src/refdb.c +0 -12
  201. data/vendor/libgit2/src/refdb_fs.c +165 -214
  202. data/vendor/libgit2/src/reflog.c +13 -11
  203. data/vendor/libgit2/src/refs.c +18 -24
  204. data/vendor/libgit2/src/refspec.c +16 -9
  205. data/vendor/libgit2/src/remote.c +52 -50
  206. data/vendor/libgit2/src/remote.h +2 -2
  207. data/vendor/libgit2/src/repository.c +100 -115
  208. data/vendor/libgit2/src/repository.h +40 -49
  209. data/vendor/libgit2/src/revert.c +3 -8
  210. data/vendor/libgit2/src/revparse.c +19 -18
  211. data/vendor/libgit2/src/revwalk.c +30 -63
  212. data/vendor/libgit2/src/revwalk.h +0 -20
  213. data/vendor/libgit2/src/settings.c +0 -5
  214. data/vendor/libgit2/src/sortedcache.c +26 -12
  215. data/vendor/libgit2/src/sortedcache.h +1 -1
  216. data/vendor/libgit2/src/stash.c +65 -45
  217. data/vendor/libgit2/src/status.c +9 -15
  218. data/vendor/libgit2/src/{allocators/stdalloc.c → stdalloc.c} +4 -3
  219. data/vendor/libgit2/src/{allocators/stdalloc.h → stdalloc.h} +4 -4
  220. data/vendor/libgit2/src/streams/openssl.c +0 -20
  221. data/vendor/libgit2/src/streams/socket.c +2 -2
  222. data/vendor/libgit2/src/strmap.c +84 -37
  223. data/vendor/libgit2/src/strmap.h +33 -105
  224. data/vendor/libgit2/src/submodule.c +70 -102
  225. data/vendor/libgit2/src/submodule.h +1 -1
  226. data/vendor/libgit2/src/sysdir.c +1 -11
  227. data/vendor/libgit2/src/tag.c +2 -10
  228. data/vendor/libgit2/src/trace.c +1 -1
  229. data/vendor/libgit2/src/trace.h +2 -2
  230. data/vendor/libgit2/src/trailer.c +32 -46
  231. data/vendor/libgit2/src/transaction.c +9 -10
  232. data/vendor/libgit2/src/transports/auth.c +9 -10
  233. data/vendor/libgit2/src/transports/auth.h +4 -11
  234. data/vendor/libgit2/src/transports/auth_negotiate.c +9 -23
  235. data/vendor/libgit2/src/transports/auth_negotiate.h +2 -2
  236. data/vendor/libgit2/src/transports/cred.c +6 -6
  237. data/vendor/libgit2/src/{allocators/win32_crtdbg.h → transports/cred.h} +4 -5
  238. data/vendor/libgit2/src/transports/git.c +16 -11
  239. data/vendor/libgit2/src/transports/http.c +276 -419
  240. data/vendor/libgit2/src/transports/http.h +1 -1
  241. data/vendor/libgit2/src/transports/local.c +9 -9
  242. data/vendor/libgit2/src/transports/smart.c +17 -17
  243. data/vendor/libgit2/src/transports/smart.h +2 -2
  244. data/vendor/libgit2/src/transports/smart_protocol.c +60 -36
  245. data/vendor/libgit2/src/transports/ssh.c +36 -46
  246. data/vendor/libgit2/src/transports/winhttp.c +207 -231
  247. data/vendor/libgit2/src/tree-cache.c +7 -14
  248. data/vendor/libgit2/src/tree.c +24 -10
  249. data/vendor/libgit2/src/unix/map.c +1 -1
  250. data/vendor/libgit2/src/unix/posix.h +11 -1
  251. data/vendor/libgit2/src/userdiff.h +1 -3
  252. data/vendor/libgit2/src/util.c +53 -51
  253. data/vendor/libgit2/src/util.h +21 -16
  254. data/vendor/libgit2/src/win32/map.c +5 -3
  255. data/vendor/libgit2/src/win32/path_w32.c +2 -12
  256. data/vendor/libgit2/src/win32/path_w32.h +29 -0
  257. data/vendor/libgit2/src/win32/posix.h +4 -1
  258. data/vendor/libgit2/src/win32/posix_w32.c +5 -40
  259. data/vendor/libgit2/src/win32/precompiled.h +2 -0
  260. data/vendor/libgit2/src/win32/thread.c +10 -5
  261. data/vendor/libgit2/src/win32/w32_buffer.c +3 -7
  262. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c +93 -0
  263. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.h +2 -0
  264. data/vendor/libgit2/src/win32/w32_stack.c +9 -4
  265. data/vendor/libgit2/src/win32/w32_stack.h +3 -3
  266. data/vendor/libgit2/src/win32/w32_util.c +0 -31
  267. data/vendor/libgit2/src/win32/w32_util.h +32 -6
  268. data/vendor/libgit2/src/worktree.c +22 -36
  269. data/vendor/libgit2/src/xdiff/xdiffi.c +1 -1
  270. data/vendor/libgit2/src/xdiff/xmerge.c +0 -12
  271. data/vendor/libgit2/src/xdiff/xpatience.c +0 -3
  272. metadata +34 -98
  273. data/vendor/libgit2/cmake/Modules/FindGSSFramework.cmake +0 -28
  274. data/vendor/libgit2/cmake/Modules/FindPCRE.cmake +0 -38
  275. data/vendor/libgit2/cmake/Modules/FindPCRE2.cmake +0 -37
  276. data/vendor/libgit2/cmake/Modules/PkgBuildConfig.cmake +0 -110
  277. data/vendor/libgit2/cmake/Modules/SelectGSSAPI.cmake +0 -53
  278. data/vendor/libgit2/cmake/Modules/SelectHTTPSBackend.cmake +0 -124
  279. data/vendor/libgit2/cmake/Modules/SelectHashes.cmake +0 -66
  280. data/vendor/libgit2/deps/ntlmclient/CMakeLists.txt +0 -21
  281. data/vendor/libgit2/deps/ntlmclient/compat.h +0 -33
  282. data/vendor/libgit2/deps/ntlmclient/crypt.h +0 -64
  283. data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.c +0 -120
  284. data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.h +0 -18
  285. data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.c +0 -145
  286. data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.h +0 -18
  287. data/vendor/libgit2/deps/ntlmclient/crypt_openssl.c +0 -130
  288. data/vendor/libgit2/deps/ntlmclient/crypt_openssl.h +0 -21
  289. data/vendor/libgit2/deps/ntlmclient/ntlm.c +0 -1420
  290. data/vendor/libgit2/deps/ntlmclient/ntlm.h +0 -174
  291. data/vendor/libgit2/deps/ntlmclient/ntlmclient.h +0 -320
  292. data/vendor/libgit2/deps/ntlmclient/unicode.h +0 -36
  293. data/vendor/libgit2/deps/ntlmclient/unicode_builtin.c +0 -445
  294. data/vendor/libgit2/deps/ntlmclient/unicode_iconv.c +0 -201
  295. data/vendor/libgit2/deps/ntlmclient/utf8.h +0 -1257
  296. data/vendor/libgit2/deps/ntlmclient/util.c +0 -21
  297. data/vendor/libgit2/deps/ntlmclient/util.h +0 -14
  298. data/vendor/libgit2/deps/pcre/CMakeLists.txt +0 -140
  299. data/vendor/libgit2/deps/pcre/COPYING +0 -5
  300. data/vendor/libgit2/deps/pcre/cmake/COPYING-CMAKE-SCRIPTS +0 -22
  301. data/vendor/libgit2/deps/pcre/cmake/FindEditline.cmake +0 -17
  302. data/vendor/libgit2/deps/pcre/cmake/FindPackageHandleStandardArgs.cmake +0 -58
  303. data/vendor/libgit2/deps/pcre/cmake/FindReadline.cmake +0 -29
  304. data/vendor/libgit2/deps/pcre/config.h.in +0 -57
  305. data/vendor/libgit2/deps/pcre/pcre.h +0 -641
  306. data/vendor/libgit2/deps/pcre/pcre_byte_order.c +0 -319
  307. data/vendor/libgit2/deps/pcre/pcre_chartables.c +0 -198
  308. data/vendor/libgit2/deps/pcre/pcre_compile.c +0 -9800
  309. data/vendor/libgit2/deps/pcre/pcre_config.c +0 -190
  310. data/vendor/libgit2/deps/pcre/pcre_dfa_exec.c +0 -3676
  311. data/vendor/libgit2/deps/pcre/pcre_exec.c +0 -7173
  312. data/vendor/libgit2/deps/pcre/pcre_fullinfo.c +0 -245
  313. data/vendor/libgit2/deps/pcre/pcre_get.c +0 -669
  314. data/vendor/libgit2/deps/pcre/pcre_globals.c +0 -86
  315. data/vendor/libgit2/deps/pcre/pcre_internal.h +0 -2787
  316. data/vendor/libgit2/deps/pcre/pcre_jit_compile.c +0 -11913
  317. data/vendor/libgit2/deps/pcre/pcre_maketables.c +0 -156
  318. data/vendor/libgit2/deps/pcre/pcre_newline.c +0 -210
  319. data/vendor/libgit2/deps/pcre/pcre_ord2utf8.c +0 -94
  320. data/vendor/libgit2/deps/pcre/pcre_printint.c +0 -834
  321. data/vendor/libgit2/deps/pcre/pcre_refcount.c +0 -92
  322. data/vendor/libgit2/deps/pcre/pcre_string_utils.c +0 -211
  323. data/vendor/libgit2/deps/pcre/pcre_study.c +0 -1686
  324. data/vendor/libgit2/deps/pcre/pcre_tables.c +0 -727
  325. data/vendor/libgit2/deps/pcre/pcre_ucd.c +0 -3644
  326. data/vendor/libgit2/deps/pcre/pcre_valid_utf8.c +0 -301
  327. data/vendor/libgit2/deps/pcre/pcre_version.c +0 -98
  328. data/vendor/libgit2/deps/pcre/pcre_xclass.c +0 -268
  329. data/vendor/libgit2/deps/pcre/pcreposix.c +0 -421
  330. data/vendor/libgit2/deps/pcre/pcreposix.h +0 -117
  331. data/vendor/libgit2/deps/pcre/ucp.h +0 -224
  332. data/vendor/libgit2/include/git2/cert.h +0 -135
  333. data/vendor/libgit2/include/git2/cred.h +0 -308
  334. data/vendor/libgit2/include/git2/sys/cred.h +0 -90
  335. data/vendor/libgit2/src/allocators/win32_crtdbg.c +0 -118
  336. data/vendor/libgit2/src/config_snapshot.c +0 -206
  337. data/vendor/libgit2/src/errors.h +0 -81
  338. data/vendor/libgit2/src/hash/sha1.h +0 -38
  339. data/vendor/libgit2/src/hash/sha1/collisiondetect.h +0 -19
  340. data/vendor/libgit2/src/hash/sha1/common_crypto.h +0 -19
  341. data/vendor/libgit2/src/hash/sha1/openssl.h +0 -19
  342. data/vendor/libgit2/src/net.c +0 -184
  343. data/vendor/libgit2/src/net.h +0 -36
  344. data/vendor/libgit2/src/regexp.c +0 -221
  345. data/vendor/libgit2/src/regexp.h +0 -97
  346. data/vendor/libgit2/src/transports/auth_ntlm.c +0 -223
  347. data/vendor/libgit2/src/transports/auth_ntlm.h +0 -35
  348. data/vendor/libgit2/src/wildmatch.c +0 -320
  349. data/vendor/libgit2/src/wildmatch.h +0 -23
  350. data/vendor/libgit2/src/win32/w32_common.h +0 -39
@@ -1,28 +0,0 @@
1
- # Find GSS.framework
2
- # This will define :
3
- #
4
- # GSSFRAMEWORK_FOUND
5
- # GSSFRAMEWORK_INCLUDE_DIR
6
- # GSSFRAMEWORK_LIBRARIES
7
- # GSSFRAMEWORK_LDFLAGS
8
- #
9
-
10
- FIND_PATH(GSSFRAMEWORK_INCLUDE_DIR NAMES GSS.h)
11
- FIND_LIBRARY(GSSFRAMEWORK_LIBRARIES NAMES GSS)
12
- IF (GSSFRAMEWORK_INCLUDE_DIR AND GSSFRAMEWORK_LIBRARIES)
13
- IF (NOT CoreFoundation_FIND_QUIETLY)
14
- MESSAGE(STATUS "Found GSS.framework ${GSSFRAMEWORK_LIBRARIES}")
15
- ENDIF()
16
- SET(GSSFRAMEWORK_FOUND TRUE)
17
- SET(GSSFRAMEWORK_LDFLAGS "-framework GSS")
18
- ENDIF ()
19
-
20
- IF (GSS_FIND_REQUIRED AND NOT GSSFRAMEWORK_FOUND)
21
- MESSAGE(FATAL_ERROR "CoreFoundation not found")
22
- ENDIF()
23
-
24
- MARK_AS_ADVANCED(
25
- GSSFRAMEWORK_INCLUDE_DIR
26
- GSSFRAMEWORK_LIBRARIES
27
- GSSFRAMEWORK_LDFLAGS
28
- )
@@ -1,38 +0,0 @@
1
- # Copyright (C) 2007-2009 LuaDist.
2
- # Created by Peter Kapec <kapecp@gmail.com>
3
- # Redistribution and use of this file is allowed according to the terms of the MIT license.
4
- # For details see the COPYRIGHT file distributed with LuaDist.
5
- # Note:
6
- # Searching headers and libraries is very simple and is NOT as powerful as scripts
7
- # distributed with CMake, because LuaDist defines directories to search for.
8
- # Everyone is encouraged to contact the author with improvements. Maybe this file
9
- # becomes part of CMake distribution sometimes.
10
-
11
- # - Find pcre
12
- # Find the native PCRE headers and libraries.
13
- #
14
- # PCRE_INCLUDE_DIRS - where to find pcre.h, etc.
15
- # PCRE_LIBRARIES - List of libraries when using pcre.
16
- # PCRE_FOUND - True if pcre found.
17
-
18
- # Look for the header file.
19
- FIND_PATH(PCRE_INCLUDE_DIR NAMES pcreposix.h)
20
-
21
- # Look for the library.
22
- FIND_LIBRARY(PCRE_LIBRARY NAMES pcre)
23
- FIND_LIBRARY(PCRE_POSIX_LIBRARY NAMES pcreposix)
24
-
25
- # Handle the QUIETLY and REQUIRED arguments and set PCRE_FOUND to TRUE if all listed variables are TRUE.
26
- INCLUDE(FindPackageHandleStandardArgs)
27
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCRE DEFAULT_MSG PCRE_LIBRARY PCRE_POSIX_LIBRARY PCRE_INCLUDE_DIR)
28
-
29
- # Copy the results to the output variables.
30
- IF(PCRE_FOUND)
31
- SET(PCRE_LIBRARIES ${PCRE_LIBRARY} ${PCRE_POSIX_LIBRARY})
32
- SET(PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIR})
33
- ELSE(PCRE_FOUND)
34
- SET(PCRE_LIBRARIES)
35
- SET(PCRE_INCLUDE_DIRS)
36
- ENDIF(PCRE_FOUND)
37
-
38
- MARK_AS_ADVANCED(PCRE_INCLUDE_DIRS PCRE_LIBRARIES)
@@ -1,37 +0,0 @@
1
- # Copyright (C) 2007-2009 LuaDist.
2
- # Created by Peter Kapec <kapecp@gmail.com>
3
- # Redistribution and use of this file is allowed according to the terms of the MIT license.
4
- # For details see the COPYRIGHT file distributed with LuaDist.
5
- # Note:
6
- # Searching headers and libraries is very simple and is NOT as powerful as scripts
7
- # distributed with CMake, because LuaDist defines directories to search for.
8
- # Everyone is encouraged to contact the author with improvements. Maybe this file
9
- # becomes part of CMake distribution sometimes.
10
-
11
- # - Find pcre
12
- # Find the native PCRE2 headers and libraries.
13
- #
14
- # PCRE2_INCLUDE_DIRS - where to find pcre.h, etc.
15
- # PCRE2_LIBRARIES - List of libraries when using pcre.
16
- # PCRE2_FOUND - True if pcre found.
17
-
18
- # Look for the header file.
19
- FIND_PATH(PCRE2_INCLUDE_DIR NAMES pcre2posix.h)
20
-
21
- # Look for the library.
22
- FIND_LIBRARY(PCRE2_LIBRARY NAMES pcre2-8)
23
-
24
- # Handle the QUIETLY and REQUIRED arguments and set PCRE2_FOUND to TRUE if all listed variables are TRUE.
25
- INCLUDE(FindPackageHandleStandardArgs)
26
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCRE2 DEFAULT_MSG PCRE2_LIBRARY PCRE2_INCLUDE_DIR)
27
-
28
- # Copy the results to the output variables.
29
- IF(PCRE2_FOUND)
30
- SET(PCRE2_LIBRARIES ${PCRE2_LIBRARY})
31
- SET(PCRE2_INCLUDE_DIRS ${PCRE2_INCLUDE_DIR})
32
- ELSE(PCRE2_FOUND)
33
- SET(PCRE2_LIBRARIES)
34
- SET(PCRE2_INCLUDE_DIRS)
35
- ENDIF(PCRE2_FOUND)
36
-
37
- MARK_AS_ADVANCED(PCRE2_INCLUDE_DIRS PCRE2_LIBRARIES)
@@ -1,110 +0,0 @@
1
- # pkg-config file generation
2
- #
3
- # Uses the following globals:
4
- # - PKG_BUILD_PREFIX: the build location (aka prefix). Defaults to CMAKE_INSTALL_PREFIX
5
- # - PKG_BUILD_LIBDIR: the libdir location. Defaults to ${prefix}/lib.
6
- # - PKG_BUILD_INCLUDEDIR: the includedir location. Defaults to ${prefix}/include.
7
- #
8
-
9
- function(pkg_build_config)
10
- set(options)
11
- set(oneValueArgs NAME DESCRIPTION VERSION FILENAME LIBS_SELF)
12
- set(multiValueArgs LIBS PRIVATE_LIBS REQUIRES CFLAGS)
13
-
14
- cmake_parse_arguments(PKGCONFIG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
15
-
16
- if (NOT DEFINED PKGCONFIG_FILENAME AND DEFINED PKGCONFIG_NAME)
17
- set(PKGCONFIG_FILENAME ${PKGCONFIG_NAME})
18
- endif()
19
- if (NOT DEFINED PKGCONFIG_FILENAME)
20
- message(FATAL_ERROR "Missing FILENAME argument")
21
- endif()
22
- set(PKGCONFIG_FILE "${PROJECT_BINARY_DIR}/${PKGCONFIG_FILENAME}.pc")
23
-
24
- if (NOT DEFINED PKGCONFIG_DESCRIPTION)
25
- message(FATAL_ERROR "Missing DESCRIPTION argument")
26
- endif()
27
-
28
- if (NOT DEFINED PKGCONFIG_VERSION)
29
- message(FATAL_ERROR "Missing VERSION argument")
30
- endif()
31
-
32
- if (DEFINED PKG_BUILD_PREFIX)
33
- set(PKGCONFIG_PREFIX "${PKG_BUILD_PREFIX}")
34
- else()
35
- set(PKGCONFIG_PREFIX "${CMAKE_INSTALL_PREFIX}")
36
- endif()
37
-
38
- if(DEFINED PKG_BUILD_LIBDIR)
39
- if (IS_ABSOLUTE ${PKG_BUILD_LIBDIR})
40
- set(PKGCONFIG_LIBDIR ${PKG_BUILD_LIBDIR})
41
- else()
42
- set(PKGCONFIG_LIBDIR "\${prefix}/${PKG_BUILD_LIBDIR}")
43
- endif()
44
- else()
45
- set(PKGCONFIG_LIBDIR "\${prefix}/lib")
46
- endif()
47
-
48
- if(DEFINED PKG_BUILD_INCLUDEDIR)
49
- if (IS_ABSOLUTE ${PKG_BUILD_INCLUDEDIR})
50
- set(PKGCONFIG_INCLUDEDIR ${PKG_BUILD_INCLUDEDIR})
51
- else()
52
- set(PKGCONFIG_INCLUDEDIR "\${prefix}/${PKG_BUILD_INCLUDEDIR}")
53
- endif()
54
- else()
55
- set(PKGCONFIG_INCLUDEDIR "\${prefix}/include")
56
- endif()
57
-
58
- # Write .pc "header"
59
- file(WRITE "${PKGCONFIG_FILE}"
60
- "prefix=\"${PKGCONFIG_PREFIX}\"\n"
61
- "libdir=\"${PKGCONFIG_LIBDIR}\"\n"
62
- "includedir=\"${PKGCONFIG_INCLUDEDIR}\"\n"
63
- "\n"
64
- "Name: ${PKGCONFIG_NAME}\n"
65
- "Description: ${PKGCONFIG_DESCRIPTION}\n"
66
- "Version: ${PKGCONFIG_VERSION}\n"
67
- )
68
-
69
- # Prepare Libs
70
- if(NOT DEFINED PKGCONFIG_LIBS_SELF)
71
- set(PKGCONFIG_LIBS_SELF "${PKGCONFIG_FILE}")
72
- endif()
73
-
74
- if(NOT DEFINED PKGCONFIG_LIBS)
75
- set(PKGCONFIG_LIBS "-l${PKGCONFIG_LIBS_SELF}")
76
- else()
77
- list(INSERT PKGCONFIG_LIBS 0 "-l${PKGCONFIG_LIBS_SELF}")
78
- endif()
79
-
80
- list(REMOVE_DUPLICATES PKGCONFIG_LIBS)
81
- string(REPLACE ";" " " PKGCONFIG_LIBS "${PKGCONFIG_LIBS}")
82
- file(APPEND "${PKGCONFIG_FILE}" "Libs: -L\${libdir} ${PKGCONFIG_LIBS}\n")
83
-
84
- # Prepare Libs.private
85
- if(DEFINED PKGCONFIG_PRIVATE_LIBS)
86
- list(REMOVE_DUPLICATES PKGCONFIG_PRIVATE_LIBS)
87
- string(REPLACE ";" " " PKGCONFIG_PRIVATE_LIBS "${PKGCONFIG_PRIVATE_LIBS}")
88
- file(APPEND "${PKGCONFIG_FILE}" "Libs.private: ${PKGCONFIG_PRIVATE_LIBS}\n")
89
- endif()
90
-
91
- # Prepare Requires.private
92
- if(DEFINED PKGCONFIG_REQUIRES)
93
- list(REMOVE_DUPLICATES PKGCONFIG_REQUIRES)
94
- string(REPLACE ";" " " PKGCONFIG_REQUIRES "${PKGCONFIG_REQUIRES}")
95
- file(APPEND "${PKGCONFIG_FILE}" "Requires.private: ${PKGCONFIG_REQUIRES}\n")
96
- endif()
97
-
98
- # Prepare Cflags
99
- if(DEFINED PKGCONFIG_CFLAGS)
100
- string(REPLACE ";" " " PKGCONFIG_CFLAGS "${PKGCONFIG_CFLAGS}")
101
- else()
102
- set(PKGCONFIG_CFLAGS "")
103
- endif()
104
- file(APPEND "${PKGCONFIG_FILE}" "Cflags: -I\${includedir} ${PKGCONFIG_CFLAGS}\n")
105
-
106
- # Install .pc file
107
- install(FILES "${PKGCONFIG_FILE}"
108
- DESTINATION "${PKGCONFIG_PREFIX}/${PKGCONFIG_LIBDIR}/pkgconfig"
109
- )
110
- endfunction()
@@ -1,53 +0,0 @@
1
- # Select the backend to use
2
-
3
- # We try to find any packages our backends might use
4
-
5
- FIND_PACKAGE(GSSAPI)
6
- IF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
7
- INCLUDE(FindGSSFramework)
8
- ENDIF()
9
-
10
- # Auto-select GSS backend
11
- IF (USE_GSSAPI STREQUAL ON)
12
- IF (GSSFRAMEWORK_FOUND)
13
- SET(GSS_BACKEND "GSS.framework")
14
- ELSEIF(GSSAPI_FOUND)
15
- SET(GSS_BACKEND "gssapi")
16
- ELSE()
17
- MESSAGE(FATAL_ERROR "Unable to autodetect a usable GSS backend."
18
- "Please pass the backend name explicitly (-DUSE_GSS=backend)")
19
- ENDIF()
20
- ELSEIF(USE_GSSAPI)
21
- # Backend was explicitly set
22
- SET(GSS_BACKEND ${USE_GSSAPI})
23
- ELSE()
24
- SET(GSS_BACKEND NO)
25
- ENDIF()
26
-
27
- IF(GSS_BACKEND)
28
- # Check that we can find what's required for the selected backend
29
- IF (GSS_BACKEND STREQUAL "GSS.framework")
30
- IF (NOT GSSFRAMEWORK_FOUND)
31
- MESSAGE(FATAL_ERROR "Asked for GSS.framework backend, but it wasn't found")
32
- ENDIF()
33
-
34
- LIST(APPEND LIBGIT2_LIBS ${GSSFRAMEWORK_LIBRARIES})
35
-
36
- SET(GIT_GSSFRAMEWORK 1)
37
- ADD_FEATURE_INFO(SPNEGO GIT_GSSFRAMEWORK "SPNEGO authentication support (${GSS_BACKEND})")
38
- ELSEIF (GSS_BACKEND STREQUAL "gssapi")
39
- IF (NOT GSSAPI_FOUND)
40
- MESSAGE(FATAL_ERROR "Asked for gssapi GSS backend, but it wasn't found")
41
- ENDIF()
42
-
43
- LIST(APPEND LIBGIT2_LIBS ${GSSAPI_LIBRARIES})
44
-
45
- SET(GIT_GSSAPI 1)
46
- ADD_FEATURE_INFO(SPNEGO GIT_GSSAPI "SPNEGO authentication support (${GSS_BACKEND})")
47
- ELSE()
48
- MESSAGE(FATAL_ERROR "Asked for backend ${GSS_BACKEND} but it wasn't found")
49
- ENDIF()
50
- ELSE()
51
- SET(GIT_GSSAPI 0)
52
- ADD_FEATURE_INFO(SPNEGO NO "")
53
- ENDIF()
@@ -1,124 +0,0 @@
1
- # Select the backend to use
2
-
3
- # We try to find any packages our backends might use
4
- FIND_PACKAGE(OpenSSL)
5
- FIND_PACKAGE(mbedTLS)
6
- IF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
7
- FIND_PACKAGE(Security)
8
- FIND_PACKAGE(CoreFoundation)
9
- ENDIF()
10
-
11
- # Auto-select TLS backend
12
- IF (USE_HTTPS STREQUAL ON)
13
- IF (SECURITY_FOUND)
14
- IF (SECURITY_HAS_SSLCREATECONTEXT)
15
- SET(HTTPS_BACKEND "SecureTransport")
16
- ELSE()
17
- MESSAGE(STATUS "Security framework is too old, falling back to OpenSSL")
18
- SET(HTTPS_BACKEND "OpenSSL")
19
- ENDIF()
20
- ELSEIF (WINHTTP)
21
- SET(HTTPS_BACKEND "WinHTTP")
22
- ELSEIF(OPENSSL_FOUND)
23
- SET(HTTPS_BACKEND "OpenSSL")
24
- ELSEIF(MBEDTLS_FOUND)
25
- SET(HTTPS_BACKEND "mbedTLS")
26
- ELSE()
27
- MESSAGE(FATAL_ERROR "Unable to autodetect a usable HTTPS backend."
28
- "Please pass the backend name explicitly (-DUSE_HTTPS=backend)")
29
- ENDIF()
30
- ELSEIF(USE_HTTPS)
31
- # HTTPS backend was explicitly set
32
- SET(HTTPS_BACKEND ${USE_HTTPS})
33
- ELSE()
34
- SET(HTTPS_BACKEND NO)
35
- ENDIF()
36
-
37
- IF(HTTPS_BACKEND)
38
- # Check that we can find what's required for the selected backend
39
- IF (HTTPS_BACKEND STREQUAL "SecureTransport")
40
- IF (NOT COREFOUNDATION_FOUND)
41
- MESSAGE(FATAL_ERROR "Cannot use SecureTransport backend, CoreFoundation.framework not found")
42
- ENDIF()
43
- IF (NOT SECURITY_FOUND)
44
- MESSAGE(FATAL_ERROR "Cannot use SecureTransport backend, Security.framework not found")
45
- ENDIF()
46
- IF (NOT SECURITY_HAS_SSLCREATECONTEXT)
47
- MESSAGE(FATAL_ERROR "Cannot use SecureTransport backend, SSLCreateContext not supported")
48
- ENDIF()
49
-
50
- SET(GIT_SECURE_TRANSPORT 1)
51
- LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${SECURITY_INCLUDE_DIR})
52
- LIST(APPEND LIBGIT2_LIBS ${COREFOUNDATION_LDFLAGS} ${SECURITY_LDFLAGS})
53
- LIST(APPEND LIBGIT2_PC_LIBS ${COREFOUNDATION_LDFLAGS} ${SECURITY_LDFLAGS})
54
- ELSEIF (HTTPS_BACKEND STREQUAL "OpenSSL")
55
- IF (NOT OPENSSL_FOUND)
56
- MESSAGE(FATAL_ERROR "Asked for OpenSSL TLS backend, but it wasn't found")
57
- ENDIF()
58
-
59
- SET(GIT_OPENSSL 1)
60
- LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${OPENSSL_INCLUDE_DIR})
61
- LIST(APPEND LIBGIT2_LIBS ${OPENSSL_LIBRARIES})
62
- LIST(APPEND LIBGIT2_PC_LIBS ${OPENSSL_LDFLAGS})
63
- LIST(APPEND LIBGIT2_PC_REQUIRES "openssl")
64
- ELSEIF(HTTPS_BACKEND STREQUAL "mbedTLS")
65
- IF (NOT MBEDTLS_FOUND)
66
- MESSAGE(FATAL_ERROR "Asked for mbedTLS backend, but it wasn't found")
67
- ENDIF()
68
-
69
- IF(NOT CERT_LOCATION)
70
- MESSAGE(STATUS "Auto-detecting default certificates location")
71
- IF(CMAKE_SYSTEM_NAME MATCHES Darwin)
72
- # Check for an Homebrew installation
73
- SET(OPENSSL_CMD "/usr/local/opt/openssl/bin/openssl")
74
- ELSE()
75
- SET(OPENSSL_CMD "openssl")
76
- ENDIF()
77
- EXECUTE_PROCESS(COMMAND ${OPENSSL_CMD} version -d OUTPUT_VARIABLE OPENSSL_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
78
- IF(OPENSSL_DIR)
79
- STRING(REGEX REPLACE "^OPENSSLDIR: \"(.*)\"$" "\\1/" OPENSSL_DIR ${OPENSSL_DIR})
80
-
81
- SET(OPENSSL_CA_LOCATIONS
82
- "ca-bundle.pem" # OpenSUSE Leap 42.1
83
- "cert.pem" # Ubuntu 14.04, FreeBSD
84
- "certs/ca-certificates.crt" # Ubuntu 16.04
85
- "certs/ca.pem" # Debian 7
86
- )
87
- FOREACH(SUFFIX IN LISTS OPENSSL_CA_LOCATIONS)
88
- SET(LOC "${OPENSSL_DIR}${SUFFIX}")
89
- IF(NOT CERT_LOCATION AND EXISTS "${OPENSSL_DIR}${SUFFIX}")
90
- SET(CERT_LOCATION ${LOC})
91
- ENDIF()
92
- ENDFOREACH()
93
- ELSE()
94
- MESSAGE(FATAL_ERROR "Unable to find OpenSSL executable. Please provide default certificate location via CERT_LOCATION")
95
- ENDIF()
96
- ENDIF()
97
-
98
- IF(CERT_LOCATION)
99
- IF(NOT EXISTS ${CERT_LOCATION})
100
- MESSAGE(FATAL_ERROR "Cannot use CERT_LOCATION=${CERT_LOCATION} as it doesn't exist")
101
- ENDIF()
102
- ADD_FEATURE_INFO(CERT_LOCATION ON "using certificates from ${CERT_LOCATION}")
103
- ADD_DEFINITIONS(-DGIT_DEFAULT_CERT_LOCATION="${CERT_LOCATION}")
104
- ENDIF()
105
-
106
- SET(GIT_MBEDTLS 1)
107
- LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${MBEDTLS_INCLUDE_DIR})
108
- LIST(APPEND LIBGIT2_LIBS ${MBEDTLS_LIBRARIES})
109
- # mbedTLS has no pkgconfig file, hence we can't require it
110
- # https://github.com/ARMmbed/mbedtls/issues/228
111
- # For now, pass its link flags as our own
112
- LIST(APPEND LIBGIT2_PC_LIBS ${MBEDTLS_LIBRARIES})
113
- ELSEIF (HTTPS_BACKEND STREQUAL "WinHTTP")
114
- # WinHTTP setup was handled in the WinHTTP-specific block above
115
- ELSE()
116
- MESSAGE(FATAL_ERROR "Asked for backend ${HTTPS_BACKEND} but it wasn't found")
117
- ENDIF()
118
-
119
- SET(GIT_HTTPS 1)
120
- ADD_FEATURE_INFO(HTTPS GIT_HTTPS "using ${HTTPS_BACKEND}")
121
- ELSE()
122
- SET(GIT_HTTPS 0)
123
- ADD_FEATURE_INFO(HTTPS NO "")
124
- ENDIF()
@@ -1,66 +0,0 @@
1
- # Select a hash backend
2
-
3
- # USE_SHA1=CollisionDetection(ON)/HTTPS/Generic/OFF
4
-
5
- IF(USE_SHA1 STREQUAL ON OR USE_SHA1 STREQUAL "CollisionDetection")
6
- SET(SHA1_BACKEND "CollisionDetection")
7
- ELSEIF(USE_SHA1 STREQUAL "HTTPS")
8
- message(STATUS "Checking HTTPS backend… ${HTTPS_BACKEND}")
9
- IF(HTTPS_BACKEND STREQUAL "SecureTransport")
10
- SET(SHA1_BACKEND "CommonCrypto")
11
- ELSEIF(HTTPS_BACKEND STREQUAL "WinHTTP")
12
- SET(SHA1_BACKEND "Win32")
13
- ELSEIF(HTTPS_BACKEND)
14
- SET(SHA1_BACKEND ${HTTPS_BACKEND})
15
- ELSE()
16
- ENDIF()
17
- IF(NOT HTTPS_BACKEND)
18
- SET(SHA1_BACKEND "CollisionDetection")
19
- ENDIF()
20
- message(STATUS "Using SHA1 backend ${SHA1_BACKEND}")
21
- ELSEIF(USE_SHA1 STREQUAL "Generic")
22
- SET(SHA1_BACKEND "Generic")
23
- # ELSEIF(NOT USE_SHA1)
24
- ELSE()
25
- MESSAGE(FATAL_ERROR "Invalid value for USE_SHA1: ${USE_SHA1}")
26
- ENDIF()
27
-
28
- IF(SHA1_BACKEND STREQUAL "CollisionDetection")
29
- SET(GIT_SHA1_COLLISIONDETECT 1)
30
- ADD_DEFINITIONS(-DSHA1DC_NO_STANDARD_INCLUDES=1)
31
- ADD_DEFINITIONS(-DSHA1DC_CUSTOM_INCLUDE_SHA1_C=\"common.h\")
32
- ADD_DEFINITIONS(-DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C=\"common.h\")
33
- FILE(GLOB SRC_SHA1 hash/sha1/collisiondetect.* hash/sha1/sha1dc/*)
34
- ELSEIF(SHA1_BACKEND STREQUAL "OpenSSL")
35
- # OPENSSL_FOUND should already be set, we're checking HTTPS_BACKEND
36
-
37
- SET(GIT_SHA1_OPENSSL 1)
38
- IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
39
- LIST(APPEND LIBGIT2_PC_LIBS "-lssl")
40
- ELSE()
41
- LIST(APPEND LIBGIT2_PC_REQUIRES "openssl")
42
- ENDIF()
43
- FILE(GLOB SRC_SHA1 hash/sha1/openssl.*)
44
- ELSEIF(SHA1_BACKEND STREQUAL "CommonCrypto")
45
- SET(GIT_SHA1_COMMON_CRYPTO 1)
46
- FILE(GLOB SRC_SHA1 hash/sha1/common_crypto.*)
47
- ELSEIF(SHA1_BACKEND STREQUAL "mbedTLS")
48
- SET(GIT_SHA1_MBEDTLS 1)
49
- FILE(GLOB SRC_SHA1 hash/sha1/mbedtls.*)
50
- LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${MBEDTLS_INCLUDE_DIR})
51
- LIST(APPEND LIBGIT2_LIBS ${MBEDTLS_LIBRARIES})
52
- # mbedTLS has no pkgconfig file, hence we can't require it
53
- # https://github.com/ARMmbed/mbedtls/issues/228
54
- # For now, pass its link flags as our own
55
- LIST(APPEND LIBGIT2_PC_LIBS ${MBEDTLS_LIBRARIES})
56
- ELSEIF(SHA1_BACKEND STREQUAL "Win32")
57
- SET(GIT_SHA1_WIN32 1)
58
- FILE(GLOB SRC_SHA1 hash/sha1/win32.*)
59
- ELSEIF(SHA1_BACKEND STREQUAL "Generic")
60
- FILE(GLOB SRC_SHA1 hash/sha1/generic.*)
61
- # ELSEIF(NOT USE_SHA1)
62
- ELSE()
63
- MESSAGE(FATAL_ERROR "Asked for unknown SHA1 backend: ${SHA1_BACKEND}")
64
- ENDIF()
65
-
66
- ADD_FEATURE_INFO(SHA ON "using ${SHA1_BACKEND}")