libarchive-static 1.0.6 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/ext/extconf.rb +2 -9
  3. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.c +6 -6
  4. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.o +0 -0
  5. data/ext/libarchive-0.1.1/ext/archive_read_support_format.o +0 -0
  6. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.c +1 -1
  7. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.o +0 -0
  8. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.c +5 -5
  9. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.o +0 -0
  10. data/ext/libarchive-0.1.1/ext/config.h +23 -0
  11. data/ext/libarchive-0.1.1/ext/config.log +230 -0
  12. data/ext/libarchive-0.1.1/ext/config.status +671 -0
  13. data/ext/libarchive-0.1.1/ext/libarchive.c +1 -1
  14. data/ext/libarchive-0.1.1/ext/libarchive.o +0 -0
  15. data/ext/libarchive-0.1.1/ext/libarchive_archive.c +7 -7
  16. data/ext/libarchive-0.1.1/ext/libarchive_archive.o +0 -0
  17. data/ext/libarchive-0.1.1/ext/libarchive_entry.c +6 -0
  18. data/ext/libarchive-0.1.1/ext/libarchive_entry.o +0 -0
  19. data/ext/libarchive-0.1.1/ext/libarchive_reader.c +6 -4
  20. data/ext/libarchive-0.1.1/ext/libarchive_reader.o +0 -0
  21. data/ext/libarchive-0.1.1/ext/libarchive_ruby.so +0 -0
  22. data/ext/libarchive-0.1.1/ext/libarchive_win32.h +1 -1
  23. data/ext/libarchive-0.1.1/ext/libarchive_writer.c +2 -2
  24. data/ext/libarchive-0.1.1/ext/libarchive_writer.o +0 -0
  25. data/ext/libarchive-3.6.2/Makefile.in +16892 -0
  26. data/ext/libarchive-3.6.2/build/autoconf/ax_append_compile_flags.m4 +67 -0
  27. data/ext/libarchive-3.6.2/build/autoconf/ax_append_flag.m4 +71 -0
  28. data/ext/libarchive-3.6.2/build/autoconf/ax_check_compile_flag.m4 +74 -0
  29. data/ext/libarchive-3.6.2/build/autoconf/ax_require_defined.m4 +37 -0
  30. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/check_stdcall_func.m4 +0 -0
  31. data/ext/libarchive-3.6.2/build/autoconf/compile +348 -0
  32. data/ext/libarchive-3.6.2/build/autoconf/config.guess +1754 -0
  33. data/ext/libarchive-3.6.2/build/autoconf/config.rpath +696 -0
  34. data/ext/libarchive-3.6.2/build/autoconf/config.sub +1890 -0
  35. data/ext/libarchive-3.6.2/build/autoconf/depcomp +791 -0
  36. data/ext/libarchive-3.6.2/build/autoconf/iconv.m4 +271 -0
  37. data/ext/libarchive-3.6.2/build/autoconf/install-sh +541 -0
  38. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/la_uid_t.m4 +0 -0
  39. data/ext/libarchive-3.6.2/build/autoconf/lib-ld.m4 +109 -0
  40. data/ext/libarchive-3.6.2/build/autoconf/lib-link.m4 +777 -0
  41. data/ext/libarchive-3.6.2/build/autoconf/lib-prefix.m4 +224 -0
  42. data/ext/libarchive-3.6.2/build/autoconf/ltmain.sh +11251 -0
  43. data/ext/libarchive-3.6.2/build/autoconf/m4_ax_compile_check_sizeof.m4 +115 -0
  44. data/ext/libarchive-3.6.2/build/autoconf/missing +215 -0
  45. data/ext/libarchive-3.6.2/build/autoconf/test-driver +153 -0
  46. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/pkgconfig/libarchive.pc.in +4 -1
  47. data/ext/libarchive-3.6.2/config.h.in +1504 -0
  48. data/ext/libarchive-3.6.2/configure +25558 -0
  49. data/ext/libarchive-3.6.2/libarchive/archive.h +1212 -0
  50. data/ext/libarchive-3.6.2/libarchive/archive_acl.c +2097 -0
  51. data/ext/libarchive-3.6.2/libarchive/archive_acl_private.h +83 -0
  52. data/ext/libarchive-3.6.2/libarchive/archive_blake2.h +197 -0
  53. data/ext/libarchive-3.6.2/libarchive/archive_blake2_impl.h +161 -0
  54. data/ext/libarchive-3.6.2/libarchive/archive_blake2s_ref.c +369 -0
  55. data/ext/libarchive-3.6.2/libarchive/archive_blake2sp_ref.c +361 -0
  56. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_check_magic.c +63 -22
  57. data/ext/libarchive-3.6.2/libarchive/archive_cmdline.c +227 -0
  58. data/ext/libarchive-3.6.2/libarchive/archive_cmdline_private.h +47 -0
  59. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_crc32.h +17 -0
  60. data/ext/libarchive-3.6.2/libarchive/archive_cryptor.c +534 -0
  61. data/ext/libarchive-3.6.2/libarchive/archive_cryptor_private.h +188 -0
  62. data/ext/libarchive-3.6.2/libarchive/archive_digest.c +1505 -0
  63. data/ext/libarchive-3.6.2/libarchive/archive_digest_private.h +416 -0
  64. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_darwin.c +559 -0
  65. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_freebsd.c +712 -0
  66. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_linux.c +760 -0
  67. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_sunos.c +824 -0
  68. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_endian.h +48 -15
  69. data/ext/libarchive-3.6.2/libarchive/archive_entry.c +2149 -0
  70. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry.h +305 -106
  71. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_bhfi.c +5 -4
  72. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_stat.c +9 -3
  73. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_link_resolver.c +104 -62
  74. data/ext/libarchive-3.6.2/libarchive/archive_entry_locale.h +92 -0
  75. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_private.h +65 -49
  76. data/ext/libarchive-3.6.2/libarchive/archive_entry_sparse.c +156 -0
  77. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_stat.c +6 -6
  78. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_strmode.c +1 -1
  79. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_xattr.c +4 -6
  80. data/ext/libarchive-3.6.2/libarchive/archive_getdate.c +1165 -0
  81. data/ext/libarchive-3.6.2/libarchive/archive_getdate.h +39 -0
  82. data/ext/libarchive-3.6.2/libarchive/archive_hmac.c +334 -0
  83. data/ext/libarchive-3.6.2/libarchive/archive_hmac_private.h +117 -0
  84. data/ext/libarchive-3.6.2/libarchive/archive_match.c +1875 -0
  85. data/ext/libarchive-3.6.2/libarchive/archive_openssl_evp_private.h +53 -0
  86. data/ext/libarchive-3.6.2/libarchive/archive_openssl_hmac_private.h +54 -0
  87. data/ext/libarchive-3.6.2/libarchive/archive_options.c +218 -0
  88. data/ext/libarchive-3.6.2/libarchive/archive_options_private.h +51 -0
  89. data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.c +337 -0
  90. data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.h +49 -0
  91. data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.c +463 -0
  92. data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.h +52 -0
  93. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_platform.h +77 -9
  94. data/ext/libarchive-3.6.2/libarchive/archive_platform_acl.h +55 -0
  95. data/ext/libarchive-3.6.2/libarchive/archive_platform_xattr.h +47 -0
  96. data/ext/libarchive-3.6.2/libarchive/archive_ppmd7.c +1168 -0
  97. data/ext/libarchive-3.6.2/libarchive/archive_ppmd7_private.h +119 -0
  98. data/ext/libarchive-3.6.2/libarchive/archive_ppmd8.c +1287 -0
  99. data/ext/libarchive-3.6.2/libarchive/archive_ppmd8_private.h +148 -0
  100. data/ext/libarchive-3.6.2/libarchive/archive_ppmd_private.h +151 -0
  101. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_private.h +74 -18
  102. data/ext/libarchive-3.6.2/libarchive/archive_random.c +272 -0
  103. data/ext/libarchive-3.6.2/libarchive/archive_random_private.h +36 -0
  104. data/ext/libarchive-3.6.2/libarchive/archive_rb.c +709 -0
  105. data/ext/libarchive-3.6.2/libarchive/archive_rb.h +113 -0
  106. data/ext/libarchive-3.6.2/libarchive/archive_read.c +1756 -0
  107. data/ext/libarchive-3.6.2/libarchive/archive_read_add_passphrase.c +190 -0
  108. data/ext/libarchive-3.6.2/libarchive/archive_read_append_filter.c +204 -0
  109. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_data_into_fd.c +64 -18
  110. data/ext/libarchive-3.6.2/libarchive/archive_read_disk_entry_from_file.c +1086 -0
  111. data/ext/libarchive-3.6.2/libarchive/archive_read_disk_posix.c +2732 -0
  112. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_private.h +40 -4
  113. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_set_standard_lookup.c +21 -11
  114. data/ext/libarchive-3.6.2/libarchive/archive_read_disk_windows.c +2479 -0
  115. data/ext/libarchive-3.6.2/libarchive/archive_read_extract.c +60 -0
  116. data/ext/{libarchive-2.8.4/libarchive/archive_read_extract.c → libarchive-3.6.2/libarchive/archive_read_extract2.c} +34 -61
  117. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_fd.c +70 -49
  118. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_file.c +38 -23
  119. data/ext/libarchive-3.6.2/libarchive/archive_read_open_filename.c +586 -0
  120. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_memory.c +58 -28
  121. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_private.h +127 -59
  122. data/ext/libarchive-3.6.2/libarchive/archive_read_set_format.c +117 -0
  123. data/ext/libarchive-3.6.2/libarchive/archive_read_set_options.c +133 -0
  124. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_all.c → libarchive-3.6.2/libarchive/archive_read_support_filter_all.c} +35 -10
  125. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_by_code.c +83 -0
  126. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_bzip2.c → libarchive-3.6.2/libarchive/archive_read_support_filter_bzip2.c} +38 -26
  127. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_compress.c → libarchive-3.6.2/libarchive/archive_read_support_filter_compress.c} +52 -44
  128. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_grzip.c +112 -0
  129. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_gzip.c → libarchive-3.6.2/libarchive/archive_read_support_filter_gzip.c} +108 -37
  130. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lrzip.c +122 -0
  131. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lz4.c +742 -0
  132. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lzop.c +499 -0
  133. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_none.c → libarchive-3.6.2/libarchive/archive_read_support_filter_none.c} +15 -3
  134. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_program.c → libarchive-3.6.2/libarchive/archive_read_support_filter_program.c} +114 -77
  135. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_rpm.c → libarchive-3.6.2/libarchive/archive_read_support_filter_rpm.c} +31 -31
  136. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_uu.c → libarchive-3.6.2/libarchive/archive_read_support_filter_uu.c} +141 -85
  137. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_xz.c → libarchive-3.6.2/libarchive/archive_read_support_filter_xz.c} +369 -284
  138. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_zstd.c +297 -0
  139. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_7zip.c +3900 -0
  140. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_all.c +89 -0
  141. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_ar.c +126 -72
  142. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_by_code.c +92 -0
  143. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cab.c +3228 -0
  144. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cpio.c +1104 -0
  145. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_empty.c +14 -11
  146. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_iso9660.c +990 -541
  147. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_lha.c +2916 -0
  148. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_mtree.c +2150 -0
  149. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar.c +3797 -0
  150. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar5.c +4251 -0
  151. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_raw.c +38 -31
  152. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_tar.c +1157 -629
  153. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_warc.c +848 -0
  154. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_xar.c +439 -258
  155. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_zip.c +4270 -0
  156. data/ext/libarchive-3.6.2/libarchive/archive_string.c +4240 -0
  157. data/ext/libarchive-3.6.2/libarchive/archive_string.h +243 -0
  158. data/ext/libarchive-3.6.2/libarchive/archive_string_composition.h +2292 -0
  159. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_string_sprintf.c +44 -16
  160. data/ext/libarchive-3.6.2/libarchive/archive_util.c +655 -0
  161. data/ext/libarchive-3.6.2/libarchive/archive_version_details.c +151 -0
  162. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_virtual.c +85 -16
  163. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.c +214 -541
  164. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.h +74 -106
  165. data/ext/libarchive-3.6.2/libarchive/archive_write.c +828 -0
  166. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter.c +72 -0
  167. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_b64encode.c +304 -0
  168. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_by_name.c +77 -0
  169. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_bzip2.c +401 -0
  170. data/ext/{libarchive-2.8.4/libarchive/archive_write_set_compression_compress.c → libarchive-3.6.2/libarchive/archive_write_add_filter_compress.c} +86 -131
  171. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_grzip.c +135 -0
  172. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_gzip.c +442 -0
  173. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lrzip.c +197 -0
  174. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lz4.c +700 -0
  175. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lzop.c +478 -0
  176. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_format_all.c → libarchive-3.6.2/libarchive/archive_write_add_filter_none.c} +11 -11
  177. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_program.c +391 -0
  178. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_uuencode.c +295 -0
  179. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_xz.c +545 -0
  180. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_zstd.c +418 -0
  181. data/ext/libarchive-3.6.2/libarchive/archive_write_disk_posix.c +4711 -0
  182. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_private.h +9 -2
  183. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_set_standard_lookup.c +30 -29
  184. data/ext/libarchive-3.6.2/libarchive/archive_write_disk_windows.c +2842 -0
  185. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_fd.c +15 -10
  186. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_file.c +15 -9
  187. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_filename.c +128 -20
  188. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_memory.c +7 -18
  189. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_private.h +72 -29
  190. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format.c +56 -3
  191. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_7zip.c +2322 -0
  192. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ar.c +54 -34
  193. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_by_name.c +20 -2
  194. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio.c +11 -0
  195. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_binary.c +610 -0
  196. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_newc.c +457 -0
  197. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_odc.c +500 -0
  198. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_filter_by_ext.c +142 -0
  199. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_gnutar.c +755 -0
  200. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_iso9660.c +8165 -0
  201. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_mtree.c +2217 -0
  202. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_pax.c +1049 -387
  203. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_private.h +42 -0
  204. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_raw.c +125 -0
  205. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_shar.c +62 -47
  206. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ustar.c +279 -108
  207. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_v7tar.c +638 -0
  208. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_warc.c +453 -0
  209. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_xar.c +3259 -0
  210. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_zip.c +1704 -0
  211. data/ext/libarchive-3.6.2/libarchive/archive_write_set_options.c +130 -0
  212. data/ext/libarchive-3.6.2/libarchive/archive_write_set_passphrase.c +95 -0
  213. data/ext/libarchive-3.6.2/libarchive/archive_xxhash.h +48 -0
  214. data/ext/libarchive-3.6.2/libarchive/config_freebsd.h +271 -0
  215. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/filter_fork.h +10 -5
  216. data/ext/{libarchive-2.8.4/libarchive/filter_fork.c → libarchive-3.6.2/libarchive/filter_fork_posix.c} +98 -19
  217. data/ext/libarchive-3.6.2/libarchive/filter_fork_windows.c +236 -0
  218. data/ext/libarchive-3.6.2/libarchive/xxhash.c +525 -0
  219. data/ext/libarchive-static-makefile +144 -80
  220. data/ext/libarchive-static-wrapper-makefile +1 -1
  221. data/ext/zlib-1.2.13/Makefile.in +404 -0
  222. data/ext/{zlib-1.2.5 → zlib-1.2.13}/adler32.c +51 -34
  223. data/ext/{zlib-1.2.5 → zlib-1.2.13}/compress.c +27 -21
  224. data/ext/zlib-1.2.13/configure +922 -0
  225. data/ext/zlib-1.2.13/crc32.c +1125 -0
  226. data/ext/zlib-1.2.13/crc32.h +9446 -0
  227. data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.c +842 -459
  228. data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.h +37 -33
  229. data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzclose.c +0 -0
  230. data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzguts.h +103 -16
  231. data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzlib.c +155 -53
  232. data/ext/zlib-1.2.13/gzread.c +650 -0
  233. data/ext/zlib-1.2.13/gzwrite.c +677 -0
  234. data/ext/{zlib-1.2.5 → zlib-1.2.13}/infback.c +24 -12
  235. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.c +49 -66
  236. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.h +0 -0
  237. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffixed.h +3 -3
  238. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.c +209 -94
  239. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.h +9 -5
  240. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.c +24 -50
  241. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.h +1 -1
  242. data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.c +135 -198
  243. data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.h +0 -0
  244. data/ext/zlib-1.2.13/uncompr.c +93 -0
  245. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zconf.h +182 -63
  246. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zlib.h +617 -295
  247. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.c +50 -41
  248. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.h +83 -82
  249. metadata +241 -133
  250. data/ext/libarchive-0.1.1/libarchive.c +0 -1762
  251. data/ext/libarchive-2.8.4/Makefile.in +0 -7076
  252. data/ext/libarchive-2.8.4/build/autoconf/compile +0 -143
  253. data/ext/libarchive-2.8.4/build/autoconf/config.guess +0 -1502
  254. data/ext/libarchive-2.8.4/build/autoconf/config.sub +0 -1708
  255. data/ext/libarchive-2.8.4/build/autoconf/depcomp +0 -630
  256. data/ext/libarchive-2.8.4/build/autoconf/install-sh +0 -291
  257. data/ext/libarchive-2.8.4/build/autoconf/ltmain.sh +0 -8406
  258. data/ext/libarchive-2.8.4/build/autoconf/missing +0 -376
  259. data/ext/libarchive-2.8.4/config.h.in +0 -772
  260. data/ext/libarchive-2.8.4/configure +0 -17916
  261. data/ext/libarchive-2.8.4/libarchive/archive.h +0 -741
  262. data/ext/libarchive-2.8.4/libarchive/archive_entry.c +0 -2202
  263. data/ext/libarchive-2.8.4/libarchive/archive_hash.h +0 -281
  264. data/ext/libarchive-2.8.4/libarchive/archive_read.c +0 -1249
  265. data/ext/libarchive-2.8.4/libarchive/archive_read_disk.c +0 -198
  266. data/ext/libarchive-2.8.4/libarchive/archive_read_disk_entry_from_file.c +0 -570
  267. data/ext/libarchive-2.8.4/libarchive/archive_read_open_filename.c +0 -272
  268. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_cpio.c +0 -777
  269. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_mtree.c +0 -1304
  270. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_zip.c +0 -903
  271. data/ext/libarchive-2.8.4/libarchive/archive_string.c +0 -453
  272. data/ext/libarchive-2.8.4/libarchive/archive_string.h +0 -148
  273. data/ext/libarchive-2.8.4/libarchive/archive_util.c +0 -391
  274. data/ext/libarchive-2.8.4/libarchive/archive_write.c +0 -466
  275. data/ext/libarchive-2.8.4/libarchive/archive_write_disk.c +0 -2628
  276. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_bzip2.c +0 -408
  277. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_gzip.c +0 -477
  278. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_none.c +0 -257
  279. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_program.c +0 -347
  280. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_xz.c +0 -438
  281. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio.c +0 -344
  282. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio_newc.c +0 -295
  283. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_mtree.c +0 -1050
  284. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_zip.c +0 -667
  285. data/ext/libarchive-2.8.4/libarchive/config_freebsd.h +0 -154
  286. data/ext/libarchive-2.8.4/libarchive/filter_fork_windows.c +0 -113
  287. data/ext/zlib-1.2.5/Makefile.in +0 -257
  288. data/ext/zlib-1.2.5/configure +0 -596
  289. data/ext/zlib-1.2.5/crc32.c +0 -442
  290. data/ext/zlib-1.2.5/crc32.h +0 -441
  291. data/ext/zlib-1.2.5/example.c +0 -565
  292. data/ext/zlib-1.2.5/gzread.c +0 -653
  293. data/ext/zlib-1.2.5/gzwrite.c +0 -531
  294. data/ext/zlib-1.2.5/minigzip.c +0 -440
  295. data/ext/zlib-1.2.5/uncompr.c +0 -59
@@ -0,0 +1,416 @@
1
+ /*-
2
+ * Copyright (c) 2003-2007 Tim Kientzle
3
+ * Copyright (c) 2011 Andres Mejia
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
16
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18
+ * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
19
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
+ */
26
+
27
+ #ifndef ARCHIVE_DIGEST_PRIVATE_H_INCLUDED
28
+ #define ARCHIVE_DIGEST_PRIVATE_H_INCLUDED
29
+
30
+ #ifndef __LIBARCHIVE_BUILD
31
+ #error This header is only to be used internally to libarchive.
32
+ #endif
33
+ #ifndef __LIBARCHIVE_CONFIG_H_INCLUDED
34
+ #error "Should have include config.h first!"
35
+ #endif
36
+
37
+ /*
38
+ * Crypto support in various Operating Systems:
39
+ *
40
+ * NetBSD:
41
+ * - MD5 and SHA1 in libc: without _ after algorithm name
42
+ * - SHA2 in libc: with _ after algorithm name
43
+ *
44
+ * OpenBSD:
45
+ * - MD5, SHA1 and SHA2 in libc: without _ after algorithm name
46
+ * - OpenBSD 4.4 and earlier have SHA2 in libc with _ after algorithm name
47
+ *
48
+ * DragonFly and FreeBSD:
49
+ * - MD5 libmd: without _ after algorithm name
50
+ * - SHA1, SHA256 and SHA512 in libmd: with _ after algorithm name
51
+ *
52
+ * Mac OS X (10.4 and later):
53
+ * - MD5, SHA1 and SHA2 in libSystem: with CC_ prefix and _ after algorithm name
54
+ *
55
+ * OpenSSL:
56
+ * - MD5, SHA1 and SHA2 in libcrypto: with _ after algorithm name
57
+ *
58
+ * Windows:
59
+ * - MD5, SHA1 and SHA2 in archive_crypto.c using Windows crypto API
60
+ */
61
+
62
+ /* libc crypto headers */
63
+ #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
64
+ #include <md5.h>
65
+ #endif
66
+ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
67
+ #include <rmd160.h>
68
+ #endif
69
+ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
70
+ #include <sha1.h>
71
+ #endif
72
+ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) ||\
73
+ defined(ARCHIVE_CRYPTO_SHA256_LIBC2) ||\
74
+ defined(ARCHIVE_CRYPTO_SHA256_LIBC3) ||\
75
+ defined(ARCHIVE_CRYPTO_SHA384_LIBC) ||\
76
+ defined(ARCHIVE_CRYPTO_SHA384_LIBC2) ||\
77
+ defined(ARCHIVE_CRYPTO_SHA384_LIBC3) ||\
78
+ defined(ARCHIVE_CRYPTO_SHA512_LIBC) ||\
79
+ defined(ARCHIVE_CRYPTO_SHA512_LIBC2) ||\
80
+ defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
81
+ #include <sha2.h>
82
+ #endif
83
+
84
+ /* libmd crypto headers */
85
+ #if defined(ARCHIVE_CRYPTO_MD5_LIBMD) ||\
86
+ defined(ARCHIVE_CRYPTO_RMD160_LIBMD) ||\
87
+ defined(ARCHIVE_CRYPTO_SHA1_LIBMD) ||\
88
+ defined(ARCHIVE_CRYPTO_SHA256_LIBMD) ||\
89
+ defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
90
+ #define ARCHIVE_CRYPTO_LIBMD 1
91
+ #endif
92
+
93
+ #if defined(ARCHIVE_CRYPTO_MD5_LIBMD)
94
+ #include <md5.h>
95
+ #endif
96
+ #if defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
97
+ #include <ripemd.h>
98
+ #endif
99
+ #if defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
100
+ #include <sha.h>
101
+ #endif
102
+ #if defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
103
+ #include <sha256.h>
104
+ #endif
105
+ #if defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
106
+ #include <sha512.h>
107
+ #endif
108
+
109
+ /* libSystem crypto headers */
110
+ #if defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) ||\
111
+ defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) ||\
112
+ defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) ||\
113
+ defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) ||\
114
+ defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
115
+ #include <CommonCrypto/CommonDigest.h>
116
+ #endif
117
+
118
+ /* mbed TLS crypto headers */
119
+ #if defined(ARCHIVE_CRYPTO_MD5_MBEDTLS)
120
+ #include <mbedtls/md5.h>
121
+ #endif
122
+ #if defined(ARCHIVE_CRYPTO_RMD160_MBEDTLS)
123
+ #include <mbedtls/ripemd160.h>
124
+ #endif
125
+ #if defined(ARCHIVE_CRYPTO_SHA1_MBEDTLS)
126
+ #include <mbedtls/sha1.h>
127
+ #endif
128
+ #if defined(ARCHIVE_CRYPTO_SHA256_MBEDTLS)
129
+ #include <mbedtls/sha256.h>
130
+ #endif
131
+ #if defined(ARCHIVE_CRYPTO_SHA384_MBEDTLS) ||\
132
+ defined(ARCHIVE_CRYPTO_SHA512_MBEDTLS)
133
+ #include <mbedtls/sha512.h>
134
+ #endif
135
+
136
+ /* Nettle crypto headers */
137
+ #if defined(ARCHIVE_CRYPTO_MD5_NETTLE)
138
+ #include <nettle/md5.h>
139
+ #endif
140
+ #if defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
141
+ #include <nettle/ripemd160.h>
142
+ #endif
143
+ #if defined(ARCHIVE_CRYPTO_SHA1_NETTLE) ||\
144
+ defined(ARCHIVE_CRYPTO_SHA256_NETTLE) ||\
145
+ defined(ARCHIVE_CRYPTO_SHA384_NETTLE) ||\
146
+ defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
147
+ #include <nettle/sha.h>
148
+ #endif
149
+
150
+ /* OpenSSL crypto headers */
151
+ #if defined(ARCHIVE_CRYPTO_MD5_OPENSSL) ||\
152
+ defined(ARCHIVE_CRYPTO_RMD160_OPENSSL) ||\
153
+ defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) ||\
154
+ defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) ||\
155
+ defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) ||\
156
+ defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
157
+ #define ARCHIVE_CRYPTO_OPENSSL 1
158
+ #include "archive_openssl_evp_private.h"
159
+ #endif
160
+
161
+ /* Windows crypto headers */
162
+ #if defined(ARCHIVE_CRYPTO_MD5_WIN) ||\
163
+ defined(ARCHIVE_CRYPTO_SHA1_WIN) ||\
164
+ defined(ARCHIVE_CRYPTO_SHA256_WIN) ||\
165
+ defined(ARCHIVE_CRYPTO_SHA384_WIN) ||\
166
+ defined(ARCHIVE_CRYPTO_SHA512_WIN)
167
+ #include <windows.h>
168
+ #include <wincrypt.h>
169
+ typedef struct {
170
+ int valid;
171
+ HCRYPTPROV cryptProv;
172
+ HCRYPTHASH hash;
173
+ } Digest_CTX;
174
+ #endif
175
+
176
+ /* typedefs */
177
+ #if defined(ARCHIVE_CRYPTO_MD5_LIBC)
178
+ typedef MD5_CTX archive_md5_ctx;
179
+ #elif defined(ARCHIVE_CRYPTO_MD5_LIBMD)
180
+ typedef MD5_CTX archive_md5_ctx;
181
+ #elif defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM)
182
+ typedef CC_MD5_CTX archive_md5_ctx;
183
+ #elif defined(ARCHIVE_CRYPTO_MD5_MBEDTLS)
184
+ typedef mbedtls_md5_context archive_md5_ctx;
185
+ #elif defined(ARCHIVE_CRYPTO_MD5_NETTLE)
186
+ typedef struct md5_ctx archive_md5_ctx;
187
+ #elif defined(ARCHIVE_CRYPTO_MD5_OPENSSL)
188
+ typedef EVP_MD_CTX *archive_md5_ctx;
189
+ #elif defined(ARCHIVE_CRYPTO_MD5_WIN)
190
+ typedef Digest_CTX archive_md5_ctx;
191
+ #else
192
+ typedef unsigned char archive_md5_ctx;
193
+ #endif
194
+
195
+ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC)
196
+ typedef RMD160_CTX archive_rmd160_ctx;
197
+ #elif defined(ARCHIVE_CRYPTO_RMD160_LIBMD)
198
+ typedef RIPEMD160_CTX archive_rmd160_ctx;
199
+ #elif defined(ARCHIVE_CRYPTO_RMD160_MBEDTLS)
200
+ typedef mbedtls_ripemd160_context archive_rmd160_ctx;
201
+ #elif defined(ARCHIVE_CRYPTO_RMD160_NETTLE)
202
+ typedef struct ripemd160_ctx archive_rmd160_ctx;
203
+ #elif defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
204
+ typedef EVP_MD_CTX *archive_rmd160_ctx;
205
+ #else
206
+ typedef unsigned char archive_rmd160_ctx;
207
+ #endif
208
+
209
+ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC)
210
+ typedef SHA1_CTX archive_sha1_ctx;
211
+ #elif defined(ARCHIVE_CRYPTO_SHA1_LIBMD)
212
+ typedef SHA1_CTX archive_sha1_ctx;
213
+ #elif defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM)
214
+ typedef CC_SHA1_CTX archive_sha1_ctx;
215
+ #elif defined(ARCHIVE_CRYPTO_SHA1_MBEDTLS)
216
+ typedef mbedtls_sha1_context archive_sha1_ctx;
217
+ #elif defined(ARCHIVE_CRYPTO_SHA1_NETTLE)
218
+ typedef struct sha1_ctx archive_sha1_ctx;
219
+ #elif defined(ARCHIVE_CRYPTO_SHA1_OPENSSL)
220
+ typedef EVP_MD_CTX *archive_sha1_ctx;
221
+ #elif defined(ARCHIVE_CRYPTO_SHA1_WIN)
222
+ typedef Digest_CTX archive_sha1_ctx;
223
+ #else
224
+ typedef unsigned char archive_sha1_ctx;
225
+ #endif
226
+
227
+ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC)
228
+ typedef SHA256_CTX archive_sha256_ctx;
229
+ #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC2)
230
+ typedef SHA256_CTX archive_sha256_ctx;
231
+ #elif defined(ARCHIVE_CRYPTO_SHA256_LIBC3)
232
+ typedef SHA2_CTX archive_sha256_ctx;
233
+ #elif defined(ARCHIVE_CRYPTO_SHA256_LIBMD)
234
+ typedef SHA256_CTX archive_sha256_ctx;
235
+ #elif defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM)
236
+ typedef CC_SHA256_CTX archive_sha256_ctx;
237
+ #elif defined(ARCHIVE_CRYPTO_SHA256_MBEDTLS)
238
+ typedef mbedtls_sha256_context archive_sha256_ctx;
239
+ #elif defined(ARCHIVE_CRYPTO_SHA256_NETTLE)
240
+ typedef struct sha256_ctx archive_sha256_ctx;
241
+ #elif defined(ARCHIVE_CRYPTO_SHA256_OPENSSL)
242
+ typedef EVP_MD_CTX *archive_sha256_ctx;
243
+ #elif defined(ARCHIVE_CRYPTO_SHA256_WIN)
244
+ typedef Digest_CTX archive_sha256_ctx;
245
+ #else
246
+ typedef unsigned char archive_sha256_ctx;
247
+ #endif
248
+
249
+ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC)
250
+ typedef SHA384_CTX archive_sha384_ctx;
251
+ #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC2)
252
+ typedef SHA384_CTX archive_sha384_ctx;
253
+ #elif defined(ARCHIVE_CRYPTO_SHA384_LIBC3)
254
+ typedef SHA2_CTX archive_sha384_ctx;
255
+ #elif defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM)
256
+ typedef CC_SHA512_CTX archive_sha384_ctx;
257
+ #elif defined(ARCHIVE_CRYPTO_SHA384_MBEDTLS)
258
+ typedef mbedtls_sha512_context archive_sha384_ctx;
259
+ #elif defined(ARCHIVE_CRYPTO_SHA384_NETTLE)
260
+ typedef struct sha384_ctx archive_sha384_ctx;
261
+ #elif defined(ARCHIVE_CRYPTO_SHA384_OPENSSL)
262
+ typedef EVP_MD_CTX *archive_sha384_ctx;
263
+ #elif defined(ARCHIVE_CRYPTO_SHA384_WIN)
264
+ typedef Digest_CTX archive_sha384_ctx;
265
+ #else
266
+ typedef unsigned char archive_sha384_ctx;
267
+ #endif
268
+
269
+ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC)
270
+ typedef SHA512_CTX archive_sha512_ctx;
271
+ #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC2)
272
+ typedef SHA512_CTX archive_sha512_ctx;
273
+ #elif defined(ARCHIVE_CRYPTO_SHA512_LIBC3)
274
+ typedef SHA2_CTX archive_sha512_ctx;
275
+ #elif defined(ARCHIVE_CRYPTO_SHA512_LIBMD)
276
+ typedef SHA512_CTX archive_sha512_ctx;
277
+ #elif defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM)
278
+ typedef CC_SHA512_CTX archive_sha512_ctx;
279
+ #elif defined(ARCHIVE_CRYPTO_SHA512_MBEDTLS)
280
+ typedef mbedtls_sha512_context archive_sha512_ctx;
281
+ #elif defined(ARCHIVE_CRYPTO_SHA512_NETTLE)
282
+ typedef struct sha512_ctx archive_sha512_ctx;
283
+ #elif defined(ARCHIVE_CRYPTO_SHA512_OPENSSL)
284
+ typedef EVP_MD_CTX *archive_sha512_ctx;
285
+ #elif defined(ARCHIVE_CRYPTO_SHA512_WIN)
286
+ typedef Digest_CTX archive_sha512_ctx;
287
+ #else
288
+ typedef unsigned char archive_sha512_ctx;
289
+ #endif
290
+
291
+ /* defines */
292
+ #if defined(ARCHIVE_CRYPTO_MD5_LIBC) ||\
293
+ defined(ARCHIVE_CRYPTO_MD5_LIBMD) || \
294
+ defined(ARCHIVE_CRYPTO_MD5_LIBSYSTEM) ||\
295
+ defined(ARCHIVE_CRYPTO_MD5_MBEDTLS) ||\
296
+ defined(ARCHIVE_CRYPTO_MD5_NETTLE) ||\
297
+ defined(ARCHIVE_CRYPTO_MD5_OPENSSL) ||\
298
+ defined(ARCHIVE_CRYPTO_MD5_WIN)
299
+ #define ARCHIVE_HAS_MD5
300
+ #endif
301
+ #define archive_md5_init(ctx)\
302
+ __archive_digest.md5init(ctx)
303
+ #define archive_md5_final(ctx, md)\
304
+ __archive_digest.md5final(ctx, md)
305
+ #define archive_md5_update(ctx, buf, n)\
306
+ __archive_digest.md5update(ctx, buf, n)
307
+
308
+ #if defined(ARCHIVE_CRYPTO_RMD160_LIBC) ||\
309
+ defined(ARCHIVE_CRYPTO_RMD160_MBEDTLS) ||\
310
+ defined(ARCHIVE_CRYPTO_RMD160_NETTLE) ||\
311
+ defined(ARCHIVE_CRYPTO_RMD160_OPENSSL)
312
+ #define ARCHIVE_HAS_RMD160
313
+ #endif
314
+ #define archive_rmd160_init(ctx)\
315
+ __archive_digest.rmd160init(ctx)
316
+ #define archive_rmd160_final(ctx, md)\
317
+ __archive_digest.rmd160final(ctx, md)
318
+ #define archive_rmd160_update(ctx, buf, n)\
319
+ __archive_digest.rmd160update(ctx, buf, n)
320
+
321
+ #if defined(ARCHIVE_CRYPTO_SHA1_LIBC) ||\
322
+ defined(ARCHIVE_CRYPTO_SHA1_LIBMD) || \
323
+ defined(ARCHIVE_CRYPTO_SHA1_LIBSYSTEM) ||\
324
+ defined(ARCHIVE_CRYPTO_SHA1_MBEDTLS) ||\
325
+ defined(ARCHIVE_CRYPTO_SHA1_NETTLE) ||\
326
+ defined(ARCHIVE_CRYPTO_SHA1_OPENSSL) ||\
327
+ defined(ARCHIVE_CRYPTO_SHA1_WIN)
328
+ #define ARCHIVE_HAS_SHA1
329
+ #endif
330
+ #define archive_sha1_init(ctx)\
331
+ __archive_digest.sha1init(ctx)
332
+ #define archive_sha1_final(ctx, md)\
333
+ __archive_digest.sha1final(ctx, md)
334
+ #define archive_sha1_update(ctx, buf, n)\
335
+ __archive_digest.sha1update(ctx, buf, n)
336
+
337
+ #if defined(ARCHIVE_CRYPTO_SHA256_LIBC) ||\
338
+ defined(ARCHIVE_CRYPTO_SHA256_LIBC2) ||\
339
+ defined(ARCHIVE_CRYPTO_SHA256_LIBC3) ||\
340
+ defined(ARCHIVE_CRYPTO_SHA256_LIBMD) ||\
341
+ defined(ARCHIVE_CRYPTO_SHA256_LIBSYSTEM) ||\
342
+ defined(ARCHIVE_CRYPTO_SHA256_MBEDTLS) ||\
343
+ defined(ARCHIVE_CRYPTO_SHA256_NETTLE) ||\
344
+ defined(ARCHIVE_CRYPTO_SHA256_OPENSSL) ||\
345
+ defined(ARCHIVE_CRYPTO_SHA256_WIN)
346
+ #define ARCHIVE_HAS_SHA256
347
+ #endif
348
+ #define archive_sha256_init(ctx)\
349
+ __archive_digest.sha256init(ctx)
350
+ #define archive_sha256_final(ctx, md)\
351
+ __archive_digest.sha256final(ctx, md)
352
+ #define archive_sha256_update(ctx, buf, n)\
353
+ __archive_digest.sha256update(ctx, buf, n)
354
+
355
+ #if defined(ARCHIVE_CRYPTO_SHA384_LIBC) ||\
356
+ defined(ARCHIVE_CRYPTO_SHA384_LIBC2) ||\
357
+ defined(ARCHIVE_CRYPTO_SHA384_LIBC3) ||\
358
+ defined(ARCHIVE_CRYPTO_SHA384_LIBSYSTEM) ||\
359
+ defined(ARCHIVE_CRYPTO_SHA384_MBEDTLS) ||\
360
+ defined(ARCHIVE_CRYPTO_SHA384_NETTLE) ||\
361
+ defined(ARCHIVE_CRYPTO_SHA384_OPENSSL) ||\
362
+ defined(ARCHIVE_CRYPTO_SHA384_WIN)
363
+ #define ARCHIVE_HAS_SHA384
364
+ #endif
365
+ #define archive_sha384_init(ctx)\
366
+ __archive_digest.sha384init(ctx)
367
+ #define archive_sha384_final(ctx, md)\
368
+ __archive_digest.sha384final(ctx, md)
369
+ #define archive_sha384_update(ctx, buf, n)\
370
+ __archive_digest.sha384update(ctx, buf, n)
371
+
372
+ #if defined(ARCHIVE_CRYPTO_SHA512_LIBC) ||\
373
+ defined(ARCHIVE_CRYPTO_SHA512_LIBC2) ||\
374
+ defined(ARCHIVE_CRYPTO_SHA512_LIBC3) ||\
375
+ defined(ARCHIVE_CRYPTO_SHA512_LIBMD) ||\
376
+ defined(ARCHIVE_CRYPTO_SHA512_LIBSYSTEM) ||\
377
+ defined(ARCHIVE_CRYPTO_SHA512_MBEDTLS) ||\
378
+ defined(ARCHIVE_CRYPTO_SHA512_NETTLE) ||\
379
+ defined(ARCHIVE_CRYPTO_SHA512_OPENSSL) ||\
380
+ defined(ARCHIVE_CRYPTO_SHA512_WIN)
381
+ #define ARCHIVE_HAS_SHA512
382
+ #endif
383
+ #define archive_sha512_init(ctx)\
384
+ __archive_digest.sha512init(ctx)
385
+ #define archive_sha512_final(ctx, md)\
386
+ __archive_digest.sha512final(ctx, md)
387
+ #define archive_sha512_update(ctx, buf, n)\
388
+ __archive_digest.sha512update(ctx, buf, n)
389
+
390
+ /* Minimal interface to digest functionality for internal use in libarchive */
391
+ struct archive_digest
392
+ {
393
+ /* Message Digest */
394
+ int (*md5init)(archive_md5_ctx *ctx);
395
+ int (*md5update)(archive_md5_ctx *, const void *, size_t);
396
+ int (*md5final)(archive_md5_ctx *, void *);
397
+ int (*rmd160init)(archive_rmd160_ctx *);
398
+ int (*rmd160update)(archive_rmd160_ctx *, const void *, size_t);
399
+ int (*rmd160final)(archive_rmd160_ctx *, void *);
400
+ int (*sha1init)(archive_sha1_ctx *);
401
+ int (*sha1update)(archive_sha1_ctx *, const void *, size_t);
402
+ int (*sha1final)(archive_sha1_ctx *, void *);
403
+ int (*sha256init)(archive_sha256_ctx *);
404
+ int (*sha256update)(archive_sha256_ctx *, const void *, size_t);
405
+ int (*sha256final)(archive_sha256_ctx *, void *);
406
+ int (*sha384init)(archive_sha384_ctx *);
407
+ int (*sha384update)(archive_sha384_ctx *, const void *, size_t);
408
+ int (*sha384final)(archive_sha384_ctx *, void *);
409
+ int (*sha512init)(archive_sha512_ctx *);
410
+ int (*sha512update)(archive_sha512_ctx *, const void *, size_t);
411
+ int (*sha512final)(archive_sha512_ctx *, void *);
412
+ };
413
+
414
+ extern const struct archive_digest __archive_digest;
415
+
416
+ #endif