hane 1.0.0
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.
- package/README.md +32 -0
- package/binding.gyp +87 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +1 -0
- package/package.json +33 -0
- package/src/native/addon.cc +231 -0
- package/src/native/zsign_driver.cc +87 -0
- package/src/native/zsign_driver.h +38 -0
- package/vendor/zlib/.cmake-format.yaml +245 -0
- package/vendor/zlib/.github/workflows/c-std.yml +230 -0
- package/vendor/zlib/.github/workflows/cmake.yml +112 -0
- package/vendor/zlib/.github/workflows/configure.yml +136 -0
- package/vendor/zlib/.github/workflows/fuzz.yml +25 -0
- package/vendor/zlib/.github/workflows/msys-cygwin.yml +77 -0
- package/vendor/zlib/BUILD.bazel +134 -0
- package/vendor/zlib/CMakeLists.txt +330 -0
- package/vendor/zlib/ChangeLog +1621 -0
- package/vendor/zlib/FAQ +367 -0
- package/vendor/zlib/INDEX +68 -0
- package/vendor/zlib/LICENSE +22 -0
- package/vendor/zlib/MODULE.bazel +9 -0
- package/vendor/zlib/Makefile.in +419 -0
- package/vendor/zlib/README +115 -0
- package/vendor/zlib/README-cmake.md +83 -0
- package/vendor/zlib/adler32.c +164 -0
- package/vendor/zlib/amiga/Makefile.pup +69 -0
- package/vendor/zlib/amiga/Makefile.sas +68 -0
- package/vendor/zlib/compress.c +75 -0
- package/vendor/zlib/configure +966 -0
- package/vendor/zlib/contrib/README.contrib +57 -0
- package/vendor/zlib/contrib/ada/buffer_demo.adb +106 -0
- package/vendor/zlib/contrib/ada/mtest.adb +156 -0
- package/vendor/zlib/contrib/ada/read.adb +156 -0
- package/vendor/zlib/contrib/ada/readme.txt +65 -0
- package/vendor/zlib/contrib/ada/test.adb +463 -0
- package/vendor/zlib/contrib/ada/zlib-streams.adb +225 -0
- package/vendor/zlib/contrib/ada/zlib-streams.ads +114 -0
- package/vendor/zlib/contrib/ada/zlib-thin.adb +142 -0
- package/vendor/zlib/contrib/ada/zlib-thin.ads +450 -0
- package/vendor/zlib/contrib/ada/zlib.adb +701 -0
- package/vendor/zlib/contrib/ada/zlib.ads +328 -0
- package/vendor/zlib/contrib/ada/zlib.gpr +20 -0
- package/vendor/zlib/contrib/blast/Makefile +8 -0
- package/vendor/zlib/contrib/blast/README +4 -0
- package/vendor/zlib/contrib/blast/blast.c +466 -0
- package/vendor/zlib/contrib/blast/blast.h +83 -0
- package/vendor/zlib/contrib/blast/test.pk +0 -0
- package/vendor/zlib/contrib/blast/test.txt +1 -0
- package/vendor/zlib/contrib/delphi/ZLib.pas +557 -0
- package/vendor/zlib/contrib/delphi/ZLibConst.pas +11 -0
- package/vendor/zlib/contrib/delphi/readme.txt +76 -0
- package/vendor/zlib/contrib/delphi/zlibd32.mak +99 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.build +33 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.sln +21 -0
- package/vendor/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- package/vendor/zlib/contrib/dotzlib/readme.txt +58 -0
- package/vendor/zlib/contrib/gcc_gvmat64/gvmat64.S +574 -0
- package/vendor/zlib/contrib/infback9/README +1 -0
- package/vendor/zlib/contrib/infback9/infback9.c +603 -0
- package/vendor/zlib/contrib/infback9/infback9.h +37 -0
- package/vendor/zlib/contrib/infback9/inffix9.h +107 -0
- package/vendor/zlib/contrib/infback9/inflate9.h +47 -0
- package/vendor/zlib/contrib/infback9/inftree9.c +319 -0
- package/vendor/zlib/contrib/infback9/inftree9.h +61 -0
- package/vendor/zlib/contrib/iostream/test.cpp +24 -0
- package/vendor/zlib/contrib/iostream/zfstream.cpp +329 -0
- package/vendor/zlib/contrib/iostream/zfstream.h +128 -0
- package/vendor/zlib/contrib/iostream2/zstream.h +307 -0
- package/vendor/zlib/contrib/iostream2/zstream_test.cpp +25 -0
- package/vendor/zlib/contrib/iostream3/README +35 -0
- package/vendor/zlib/contrib/iostream3/TODO +17 -0
- package/vendor/zlib/contrib/iostream3/test.cc +50 -0
- package/vendor/zlib/contrib/iostream3/zfstream.cc +479 -0
- package/vendor/zlib/contrib/iostream3/zfstream.h +466 -0
- package/vendor/zlib/contrib/minizip/CMakeLists.txt +380 -0
- package/vendor/zlib/contrib/minizip/Makefile +37 -0
- package/vendor/zlib/contrib/minizip/Makefile.am +45 -0
- package/vendor/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
- package/vendor/zlib/contrib/minizip/MiniZip64_info.txt +74 -0
- package/vendor/zlib/contrib/minizip/configure.ac +32 -0
- package/vendor/zlib/contrib/minizip/crypt.h +128 -0
- package/vendor/zlib/contrib/minizip/ints.h +57 -0
- package/vendor/zlib/contrib/minizip/ioapi.c +231 -0
- package/vendor/zlib/contrib/minizip/ioapi.h +183 -0
- package/vendor/zlib/contrib/minizip/iowin32.c +448 -0
- package/vendor/zlib/contrib/minizip/iowin32.h +28 -0
- package/vendor/zlib/contrib/minizip/make_vms.com +25 -0
- package/vendor/zlib/contrib/minizip/miniunz.c +647 -0
- package/vendor/zlib/contrib/minizip/miniunzip.1 +63 -0
- package/vendor/zlib/contrib/minizip/minizip.1 +46 -0
- package/vendor/zlib/contrib/minizip/minizip.c +512 -0
- package/vendor/zlib/contrib/minizip/minizip.pc.in +12 -0
- package/vendor/zlib/contrib/minizip/minizip.pc.txt +13 -0
- package/vendor/zlib/contrib/minizip/minizipConfig.cmake.in +35 -0
- package/vendor/zlib/contrib/minizip/mztools.c +288 -0
- package/vendor/zlib/contrib/minizip/mztools.h +37 -0
- package/vendor/zlib/contrib/minizip/skipset.h +361 -0
- package/vendor/zlib/contrib/minizip/test/CMakeLists.txt +121 -0
- package/vendor/zlib/contrib/minizip/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/vendor/zlib/contrib/minizip/test/add_subdirectory_test.cmake.in +28 -0
- package/vendor/zlib/contrib/minizip/test/find_package_test.cmake.in +25 -0
- package/vendor/zlib/contrib/minizip/test/test_helper.cm +32 -0
- package/vendor/zlib/contrib/minizip/unzip.c +1981 -0
- package/vendor/zlib/contrib/minizip/unzip.h +441 -0
- package/vendor/zlib/contrib/minizip/zip.c +2199 -0
- package/vendor/zlib/contrib/minizip/zip.h +370 -0
- package/vendor/zlib/contrib/nuget/nuget.csproj +43 -0
- package/vendor/zlib/contrib/nuget/nuget.sln +22 -0
- package/vendor/zlib/contrib/pascal/example.pas +599 -0
- package/vendor/zlib/contrib/pascal/readme.txt +76 -0
- package/vendor/zlib/contrib/pascal/zlibd32.mak +99 -0
- package/vendor/zlib/contrib/pascal/zlibpas.pas +276 -0
- package/vendor/zlib/contrib/puff/Makefile +42 -0
- package/vendor/zlib/contrib/puff/README +63 -0
- package/vendor/zlib/contrib/puff/puff.c +840 -0
- package/vendor/zlib/contrib/puff/puff.h +35 -0
- package/vendor/zlib/contrib/puff/pufftest.c +169 -0
- package/vendor/zlib/contrib/puff/zeros.raw +0 -0
- package/vendor/zlib/contrib/testzlib/testzlib.c +275 -0
- package/vendor/zlib/contrib/testzlib/testzlib.txt +10 -0
- package/vendor/zlib/contrib/untgz/Makefile +14 -0
- package/vendor/zlib/contrib/untgz/Makefile.msc +17 -0
- package/vendor/zlib/contrib/untgz/untgz.c +667 -0
- package/vendor/zlib/contrib/vstudio/readme.txt +81 -0
- package/vendor/zlib/contrib/vstudio/vc10/miniunz.vcxproj +310 -0
- package/vendor/zlib/contrib/vstudio/vc10/miniunz.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/minizip.vcxproj +307 -0
- package/vendor/zlib/contrib/vstudio/vc10/minizip.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlib.vcxproj +412 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlib.vcxproj.filters +55 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj +310 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibstat.vcxproj +449 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibstat.vcxproj.filters +74 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.sln +135 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.vcxproj +633 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.vcxproj.filters +115 -0
- package/vendor/zlib/contrib/vstudio/vc11/miniunz.vcxproj +314 -0
- package/vendor/zlib/contrib/vstudio/vc11/minizip.vcxproj +311 -0
- package/vendor/zlib/contrib/vstudio/vc11/testzlib.vcxproj +418 -0
- package/vendor/zlib/contrib/vstudio/vc11/testzlibdll.vcxproj +314 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibstat.vcxproj +456 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.sln +117 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.vcxproj +664 -0
- package/vendor/zlib/contrib/vstudio/vc12/miniunz.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc12/minizip.vcxproj +313 -0
- package/vendor/zlib/contrib/vstudio/vc12/testzlib.vcxproj +422 -0
- package/vendor/zlib/contrib/vstudio/vc12/testzlibdll.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibstat.vcxproj +459 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.sln +119 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.vcxproj +668 -0
- package/vendor/zlib/contrib/vstudio/vc14/miniunz.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc14/minizip.vcxproj +313 -0
- package/vendor/zlib/contrib/vstudio/vc14/testzlib.vcxproj +422 -0
- package/vendor/zlib/contrib/vstudio/vc14/testzlibdll.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibstat.vcxproj +459 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.sln +119 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.vcxproj +668 -0
- package/vendor/zlib/contrib/vstudio/vc17/miniunz.vcxproj +409 -0
- package/vendor/zlib/contrib/vstudio/vc17/minizip.vcxproj +405 -0
- package/vendor/zlib/contrib/vstudio/vc17/testzlib.vcxproj +473 -0
- package/vendor/zlib/contrib/vstudio/vc17/testzlibdll.vcxproj +409 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibstat.vcxproj +602 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.sln +179 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.vcxproj +875 -0
- package/vendor/zlib/contrib/vstudio/vc9/miniunz.vcproj +565 -0
- package/vendor/zlib/contrib/vstudio/vc9/minizip.vcproj +562 -0
- package/vendor/zlib/contrib/vstudio/vc9/testzlib.vcproj +796 -0
- package/vendor/zlib/contrib/vstudio/vc9/testzlibdll.vcproj +565 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibstat.vcproj +781 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.sln +144 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.vcproj +1100 -0
- package/vendor/zlib/crc32.c +1049 -0
- package/vendor/zlib/crc32.h +9446 -0
- package/vendor/zlib/deflate.c +2152 -0
- package/vendor/zlib/deflate.h +380 -0
- package/vendor/zlib/doc/algorithm.txt +209 -0
- package/vendor/zlib/doc/crc-doc.1.0.pdf +0 -0
- package/vendor/zlib/doc/rfc1950.txt +619 -0
- package/vendor/zlib/doc/rfc1951.txt +955 -0
- package/vendor/zlib/doc/rfc1952.txt +675 -0
- package/vendor/zlib/doc/txtvsbin.txt +107 -0
- package/vendor/zlib/examples/README.examples +54 -0
- package/vendor/zlib/examples/enough.c +597 -0
- package/vendor/zlib/examples/fitblk.c +233 -0
- package/vendor/zlib/examples/gun.c +702 -0
- package/vendor/zlib/examples/gzappend.c +504 -0
- package/vendor/zlib/examples/gzjoin.c +449 -0
- package/vendor/zlib/examples/gzlog.c +1061 -0
- package/vendor/zlib/examples/gzlog.h +91 -0
- package/vendor/zlib/examples/gznorm.c +474 -0
- package/vendor/zlib/examples/zlib_how.html +549 -0
- package/vendor/zlib/examples/zpipe.c +209 -0
- package/vendor/zlib/examples/zran.c +550 -0
- package/vendor/zlib/examples/zran.h +53 -0
- package/vendor/zlib/gzclose.c +23 -0
- package/vendor/zlib/gzguts.h +215 -0
- package/vendor/zlib/gzlib.c +585 -0
- package/vendor/zlib/gzread.c +603 -0
- package/vendor/zlib/gzwrite.c +631 -0
- package/vendor/zlib/infback.c +628 -0
- package/vendor/zlib/inffast.c +320 -0
- package/vendor/zlib/inffast.h +11 -0
- package/vendor/zlib/inffixed.h +94 -0
- package/vendor/zlib/inflate.c +1526 -0
- package/vendor/zlib/inflate.h +126 -0
- package/vendor/zlib/inftrees.c +299 -0
- package/vendor/zlib/inftrees.h +62 -0
- package/vendor/zlib/make_vms.com +867 -0
- package/vendor/zlib/msdos/Makefile.bor +115 -0
- package/vendor/zlib/msdos/Makefile.dj2 +104 -0
- package/vendor/zlib/msdos/Makefile.emx +69 -0
- package/vendor/zlib/msdos/Makefile.msc +112 -0
- package/vendor/zlib/msdos/Makefile.tc +100 -0
- package/vendor/zlib/nintendods/Makefile +126 -0
- package/vendor/zlib/nintendods/README +5 -0
- package/vendor/zlib/old/Makefile.emx +69 -0
- package/vendor/zlib/old/Makefile.riscos +151 -0
- package/vendor/zlib/old/README +3 -0
- package/vendor/zlib/old/descrip.mms +48 -0
- package/vendor/zlib/old/os2/Makefile.os2 +136 -0
- package/vendor/zlib/old/os2/zlib.def +51 -0
- package/vendor/zlib/old/visual-basic.txt +160 -0
- package/vendor/zlib/os400/README400 +48 -0
- package/vendor/zlib/os400/bndsrc +133 -0
- package/vendor/zlib/os400/make.sh +366 -0
- package/vendor/zlib/os400/zlib.inc +531 -0
- package/vendor/zlib/qnx/package.qpg +141 -0
- package/vendor/zlib/test/CMakeLists.txt +265 -0
- package/vendor/zlib/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/vendor/zlib/test/add_subdirectory_test.cmake.in +28 -0
- package/vendor/zlib/test/example.c +552 -0
- package/vendor/zlib/test/find_package_test.cmake.in +26 -0
- package/vendor/zlib/test/infcover.c +672 -0
- package/vendor/zlib/test/minigzip.c +590 -0
- package/vendor/zlib/treebuild.xml +116 -0
- package/vendor/zlib/trees.c +1119 -0
- package/vendor/zlib/trees.h +128 -0
- package/vendor/zlib/uncompr.c +85 -0
- package/vendor/zlib/watcom/watcom_f.mak +43 -0
- package/vendor/zlib/watcom/watcom_l.mak +43 -0
- package/vendor/zlib/win32/DLL_FAQ.txt +381 -0
- package/vendor/zlib/win32/Makefile.bor +109 -0
- package/vendor/zlib/win32/Makefile.gcc +177 -0
- package/vendor/zlib/win32/Makefile.msc +159 -0
- package/vendor/zlib/win32/README-WIN32.txt +103 -0
- package/vendor/zlib/win32/VisualC.txt +3 -0
- package/vendor/zlib/win32/zlib.def +98 -0
- package/vendor/zlib/win32/zlib1.rc +37 -0
- package/vendor/zlib/zconf.h.in +544 -0
- package/vendor/zlib/zlib.3 +149 -0
- package/vendor/zlib/zlib.3.pdf +0 -0
- package/vendor/zlib/zlib.h +1957 -0
- package/vendor/zlib/zlib.map +104 -0
- package/vendor/zlib/zlib.pc.cmakein +13 -0
- package/vendor/zlib/zlib.pc.in +13 -0
- package/vendor/zlib/zlibConfig.cmake.in +26 -0
- package/vendor/zlib/zutil.c +299 -0
- package/vendor/zlib/zutil.h +257 -0
- package/vendor/zsign/.gitattributes +4 -0
- package/vendor/zsign/LICENSE +21 -0
- package/vendor/zsign/README.md +142 -0
- package/vendor/zsign/build/linux/Makefile +43 -0
- package/vendor/zsign/build/macos/Makefile +43 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/crypt.h +128 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/ioapi.h +216 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/iowin32.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/mztools.h +37 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/unzip.h +437 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/zip.h +364 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/__DECC_INCLUDE_EPILOGUE.H +22 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/__DECC_INCLUDE_PROLOGUE.H +26 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/aes.h +111 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/applink.c +153 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1.h +1133 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1_mac.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1err.h +142 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1t.h +946 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/async.h +104 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asyncerr.h +29 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bio.h +1015 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bioerr.h +72 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/blowfish.h +78 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bn.h +590 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bnerr.h +47 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/buffer.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/buffererr.h +25 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/camellia.h +117 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cast.h +71 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmac.h +52 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmp.h +727 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmp_util.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmperr.h +131 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cms.h +508 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmserr.h +125 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/comp.h +98 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/comperr.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conf.h +214 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conf_api.h +46 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conferr.h +52 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/configuration.h +188 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conftypes.h +44 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core.h +236 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_dispatch.h +1022 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_names.h +545 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_object.h +41 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crmf.h +260 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crmferr.h +50 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crypto.h +580 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cryptoerr.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cryptoerr_legacy.h +1466 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ct.h +573 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cterr.h +45 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/decoder.h +133 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/decodererr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/des.h +211 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dh.h +339 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dherr.h +59 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dsa.h +280 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dsaerr.h +44 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dtls1.h +57 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/e_os2.h +310 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/e_ostime.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ebcdic.h +39 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ec.h +1588 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecdh.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecdsa.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecerr.h +104 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/encoder.h +124 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/encodererr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/engine.h +833 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/engineerr.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/err.h +512 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ess.h +128 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/esserr.h +32 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/evp.h +2231 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/evperr.h +140 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/fips_names.h +50 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/fipskey.h +41 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/hmac.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/hpke.h +169 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/http.h +118 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/httperr.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/idea.h +82 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/indicator.h +31 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/kdf.h +138 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/kdferr.h +16 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/lhash.h +398 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/macros.h +338 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md2.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md4.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md5.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/mdc2.h +55 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/modes.h +219 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/obj_mac.h +5820 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/objects.h +184 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/objectserr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ocsp.h +483 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ocsperr.h +53 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/opensslconf.h +17 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/opensslv.h +114 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ossl_typ.h +16 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/param_build.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/params.h +160 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pem.h +543 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pem2.h +19 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pemerr.h +58 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs12.h +366 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs12err.h +46 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs7.h +430 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs7err.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/prov_ssl.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/proverr.h +162 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/provider.h +66 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/quic.h +70 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rand.h +125 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/randerr.h +69 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc2.h +68 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc4.h +47 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc5.h +79 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ripemd.h +59 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rsa.h +615 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rsaerr.h +107 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/safestack.h +297 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/seed.h +113 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/self_test.h +98 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sha.h +139 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/srp.h +285 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/srtp.h +68 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl.h +2878 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl2.h +30 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl3.h +357 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sslerr.h +379 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sslerr_legacy.h +467 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/stack.h +90 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/store.h +377 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/storeerr.h +49 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/symhacks.h +39 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/thread.h +31 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/tls1.h +1220 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/trace.h +320 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ts.h +522 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/tserr.h +67 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/txt_db.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/types.h +245 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ui.h +407 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/uierr.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/whrlpool.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509.h +1304 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509_acert.h +263 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509_vfy.h +902 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509err.h +70 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509v3.h +1500 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509v3err.h +96 -0
- package/vendor/zsign/build/windows/vs2022/include/zlib/zconf.h +553 -0
- package/vendor/zsign/build/windows/vs2022/include/zlib/zlib.h +1938 -0
- package/vendor/zsign/build/windows/vs2022/lib/minizip/x64/mt/minizip.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/openssl/x64/mt/libcrypto.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/openssl/x64/mt/libssl.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/zlib/x64/mt/zlib.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/common_win32.h +44 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/getopt.cpp +69 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/getopt.h +20 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/iconv.cpp +138 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/iconv.h +38 -0
- package/vendor/zsign/build/windows/vs2022/zsign/zsign.vcxproj +177 -0
- package/vendor/zsign/build/windows/vs2022/zsign/zsign.vcxproj.filters +120 -0
- package/vendor/zsign/build/windows/vs2022/zsign.sln +28 -0
- package/vendor/zsign/src/archo.cpp +742 -0
- package/vendor/zsign/src/archo.h +61 -0
- package/vendor/zsign/src/bundle.cpp +589 -0
- package/vendor/zsign/src/bundle.h +46 -0
- package/vendor/zsign/src/common/archive.cpp +246 -0
- package/vendor/zsign/src/common/archive.h +22 -0
- package/vendor/zsign/src/common/base64.cpp +166 -0
- package/vendor/zsign/src/common/base64.h +30 -0
- package/vendor/zsign/src/common/common.h +56 -0
- package/vendor/zsign/src/common/fs.cpp +573 -0
- package/vendor/zsign/src/common/fs.h +50 -0
- package/vendor/zsign/src/common/json.cpp +3380 -0
- package/vendor/zsign/src/common/json.h +530 -0
- package/vendor/zsign/src/common/log.cpp +145 -0
- package/vendor/zsign/src/common/log.h +37 -0
- package/vendor/zsign/src/common/mach-o.h +585 -0
- package/vendor/zsign/src/common/sha.cpp +133 -0
- package/vendor/zsign/src/common/sha.h +24 -0
- package/vendor/zsign/src/common/timer.cpp +28 -0
- package/vendor/zsign/src/common/timer.h +17 -0
- package/vendor/zsign/src/common/util.cpp +185 -0
- package/vendor/zsign/src/common/util.h +25 -0
- package/vendor/zsign/src/macho.cpp +273 -0
- package/vendor/zsign/src/macho.h +38 -0
- package/vendor/zsign/src/openssl.cpp +698 -0
- package/vendor/zsign/src/openssl.h +71 -0
- package/vendor/zsign/src/signing.cpp +745 -0
- package/vendor/zsign/src/signing.h +59 -0
- package/vendor/zsign/src/zsign.cpp +317 -0
- package/vendor/zsign/test/dylib/bin/demo1.dylib +0 -0
- package/vendor/zsign/test/dylib/bin/demo2.dylib +0 -0
- package/vendor/zsign/test/dylib/demo/Makefile +12 -0
- package/vendor/zsign/test/dylib/demo/control +9 -0
- package/vendor/zsign/test/dylib/demo/demo.m +21 -0
- package/vendor/zsign/test/linux/test.sh +19 -0
- package/vendor/zsign/test/macos/test.sh +19 -0
- package/vendor/zsign/test/windows/test.ps1 +17 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
All files under this contrib directory are UNSUPPORTED. They were
|
|
2
|
+
provided by users of zlib and were not tested by the authors of zlib.
|
|
3
|
+
Use at your own risk. Please contact the authors of the contributions
|
|
4
|
+
for help about these, not the zlib authors. Thanks.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
ada/ by Dmitriy Anisimkov <anisimkov@yahoo.com>
|
|
8
|
+
Support for Ada
|
|
9
|
+
See http://zlib-ada.sourceforge.net/
|
|
10
|
+
|
|
11
|
+
blast/ by Mark Adler <madler@alumni.caltech.edu>
|
|
12
|
+
Decompressor for output of PKWare Data Compression Library (DCL)
|
|
13
|
+
|
|
14
|
+
delphi/ by Cosmin Truta <cosmint@cs.ubbcluj.ro>
|
|
15
|
+
Support for Delphi and C++ Builder
|
|
16
|
+
|
|
17
|
+
dotzlib/ by Henrik Ravn <henrik@ravn.com>
|
|
18
|
+
Support for Microsoft .Net and Visual C++ .Net
|
|
19
|
+
|
|
20
|
+
gcc_gvmat64/by Gilles Vollant <info@winimage.com>
|
|
21
|
+
GCC Version of x86 64-bit (AMD64 and Intel EM64t) code for x64
|
|
22
|
+
assembler to replace longest_match() and inflate_fast()
|
|
23
|
+
|
|
24
|
+
infback9/ by Mark Adler <madler@alumni.caltech.edu>
|
|
25
|
+
Unsupported diffs to infback to decode the deflate64 format
|
|
26
|
+
|
|
27
|
+
iostream/ by Kevin Ruland <kevin@rodin.wustl.edu>
|
|
28
|
+
A C++ I/O streams interface to the zlib gz* functions
|
|
29
|
+
|
|
30
|
+
iostream2/ by Tyge Løvset <Tyge.Lovset@cmr.no>
|
|
31
|
+
Another C++ I/O streams interface
|
|
32
|
+
|
|
33
|
+
iostream3/ by Ludwig Schwardt <schwardt@sun.ac.za>
|
|
34
|
+
and Kevin Ruland <kevin@rodin.wustl.edu>
|
|
35
|
+
Yet another C++ I/O streams interface
|
|
36
|
+
|
|
37
|
+
minizip/ by Gilles Vollant <info@winimage.com>
|
|
38
|
+
Mini zip and unzip based on zlib
|
|
39
|
+
Includes Zip64 support by Mathias Svensson <mathias@result42.com>
|
|
40
|
+
See http://www.winimage.com/zLibDll/minizip.html
|
|
41
|
+
|
|
42
|
+
pascal/ by Bob Dellaca <bobdl@xtra.co.nz> et al.
|
|
43
|
+
Support for Pascal
|
|
44
|
+
|
|
45
|
+
puff/ by Mark Adler <madler@alumni.caltech.edu>
|
|
46
|
+
Small, low memory usage inflate. Also serves to provide an
|
|
47
|
+
unambiguous description of the deflate format.
|
|
48
|
+
|
|
49
|
+
testzlib/ by Gilles Vollant <info@winimage.com>
|
|
50
|
+
Example of the use of zlib
|
|
51
|
+
|
|
52
|
+
untgz/ by Pedro A. Aranda Gutierrez <paag@tid.es>
|
|
53
|
+
A very simple tar.gz file extractor using zlib
|
|
54
|
+
|
|
55
|
+
vstudio/ by Gilles Vollant <info@winimage.com>
|
|
56
|
+
Building a minizip-enhanced zlib with Microsoft Visual Studio
|
|
57
|
+
Includes vc11 from kreuzerkrieg and vc12 from davispuh
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
----------------------------------------------------------------
|
|
2
|
+
-- ZLib for Ada thick binding. --
|
|
3
|
+
-- --
|
|
4
|
+
-- Copyright (C) 2002-2004 Dmitriy Anisimkov --
|
|
5
|
+
-- --
|
|
6
|
+
-- Open source license information is in the zlib.ads file. --
|
|
7
|
+
----------------------------------------------------------------
|
|
8
|
+
--
|
|
9
|
+
-- $Id: buffer_demo.adb,v 1.3 2004/09/06 06:55:35 vagul Exp $
|
|
10
|
+
|
|
11
|
+
-- This demo program provided by Dr Steve Sangwine <sjs@essex.ac.uk>
|
|
12
|
+
--
|
|
13
|
+
-- Demonstration of a problem with Zlib-Ada (already fixed) when a buffer
|
|
14
|
+
-- of exactly the correct size is used for decompressed data, and the last
|
|
15
|
+
-- few bytes passed in to Zlib are checksum bytes.
|
|
16
|
+
|
|
17
|
+
-- This program compresses a string of text, and then decompresses the
|
|
18
|
+
-- compressed text into a buffer of the same size as the original text.
|
|
19
|
+
|
|
20
|
+
with Ada.Streams; use Ada.Streams;
|
|
21
|
+
with Ada.Text_IO;
|
|
22
|
+
|
|
23
|
+
with ZLib; use ZLib;
|
|
24
|
+
|
|
25
|
+
procedure Buffer_Demo is
|
|
26
|
+
EOL : Character renames ASCII.LF;
|
|
27
|
+
Text : constant String
|
|
28
|
+
:= "Four score and seven years ago our fathers brought forth," & EOL &
|
|
29
|
+
"upon this continent, a new nation, conceived in liberty," & EOL &
|
|
30
|
+
"and dedicated to the proposition that `all men are created equal'.";
|
|
31
|
+
|
|
32
|
+
Source : Stream_Element_Array (1 .. Text'Length);
|
|
33
|
+
for Source'Address use Text'Address;
|
|
34
|
+
|
|
35
|
+
begin
|
|
36
|
+
Ada.Text_IO.Put (Text);
|
|
37
|
+
Ada.Text_IO.New_Line;
|
|
38
|
+
Ada.Text_IO.Put_Line
|
|
39
|
+
("Uncompressed size : " & Positive'Image (Text'Length) & " bytes");
|
|
40
|
+
|
|
41
|
+
declare
|
|
42
|
+
Compressed_Data : Stream_Element_Array (1 .. Text'Length);
|
|
43
|
+
L : Stream_Element_Offset;
|
|
44
|
+
begin
|
|
45
|
+
Compress : declare
|
|
46
|
+
Compressor : Filter_Type;
|
|
47
|
+
I : Stream_Element_Offset;
|
|
48
|
+
begin
|
|
49
|
+
Deflate_Init (Compressor);
|
|
50
|
+
|
|
51
|
+
-- Compress the whole of T at once.
|
|
52
|
+
|
|
53
|
+
Translate (Compressor, Source, I, Compressed_Data, L, Finish);
|
|
54
|
+
pragma Assert (I = Source'Last);
|
|
55
|
+
|
|
56
|
+
Close (Compressor);
|
|
57
|
+
|
|
58
|
+
Ada.Text_IO.Put_Line
|
|
59
|
+
("Compressed size : "
|
|
60
|
+
& Stream_Element_Offset'Image (L) & " bytes");
|
|
61
|
+
end Compress;
|
|
62
|
+
|
|
63
|
+
-- Now we decompress the data, passing short blocks of data to Zlib
|
|
64
|
+
-- (because this demonstrates the problem - the last block passed will
|
|
65
|
+
-- contain checksum information and there will be no output, only a
|
|
66
|
+
-- check inside Zlib that the checksum is correct).
|
|
67
|
+
|
|
68
|
+
Decompress : declare
|
|
69
|
+
Decompressor : Filter_Type;
|
|
70
|
+
|
|
71
|
+
Uncompressed_Data : Stream_Element_Array (1 .. Text'Length);
|
|
72
|
+
|
|
73
|
+
Block_Size : constant := 4;
|
|
74
|
+
-- This makes sure that the last block contains
|
|
75
|
+
-- only Adler checksum data.
|
|
76
|
+
|
|
77
|
+
P : Stream_Element_Offset := Compressed_Data'First - 1;
|
|
78
|
+
O : Stream_Element_Offset;
|
|
79
|
+
begin
|
|
80
|
+
Inflate_Init (Decompressor);
|
|
81
|
+
|
|
82
|
+
loop
|
|
83
|
+
Translate
|
|
84
|
+
(Decompressor,
|
|
85
|
+
Compressed_Data
|
|
86
|
+
(P + 1 .. Stream_Element_Offset'Min (P + Block_Size, L)),
|
|
87
|
+
P,
|
|
88
|
+
Uncompressed_Data
|
|
89
|
+
(Total_Out (Decompressor) + 1 .. Uncompressed_Data'Last),
|
|
90
|
+
O,
|
|
91
|
+
No_Flush);
|
|
92
|
+
|
|
93
|
+
Ada.Text_IO.Put_Line
|
|
94
|
+
("Total in : " & Count'Image (Total_In (Decompressor)) &
|
|
95
|
+
", out : " & Count'Image (Total_Out (Decompressor)));
|
|
96
|
+
|
|
97
|
+
exit when P = L;
|
|
98
|
+
end loop;
|
|
99
|
+
|
|
100
|
+
Ada.Text_IO.New_Line;
|
|
101
|
+
Ada.Text_IO.Put_Line
|
|
102
|
+
("Decompressed text matches original text : "
|
|
103
|
+
& Boolean'Image (Uncompressed_Data = Source));
|
|
104
|
+
end Decompress;
|
|
105
|
+
end;
|
|
106
|
+
end Buffer_Demo;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
----------------------------------------------------------------
|
|
2
|
+
-- ZLib for Ada thick binding. --
|
|
3
|
+
-- --
|
|
4
|
+
-- Copyright (C) 2002-2003 Dmitriy Anisimkov --
|
|
5
|
+
-- --
|
|
6
|
+
-- Open source license information is in the zlib.ads file. --
|
|
7
|
+
----------------------------------------------------------------
|
|
8
|
+
-- Continuous test for ZLib multithreading. If the test would fail
|
|
9
|
+
-- we should provide thread safe allocation routines for the Z_Stream.
|
|
10
|
+
--
|
|
11
|
+
-- $Id: mtest.adb,v 1.4 2004/07/23 07:49:54 vagul Exp $
|
|
12
|
+
|
|
13
|
+
with ZLib;
|
|
14
|
+
with Ada.Streams;
|
|
15
|
+
with Ada.Numerics.Discrete_Random;
|
|
16
|
+
with Ada.Text_IO;
|
|
17
|
+
with Ada.Exceptions;
|
|
18
|
+
with Ada.Task_Identification;
|
|
19
|
+
|
|
20
|
+
procedure MTest is
|
|
21
|
+
use Ada.Streams;
|
|
22
|
+
use ZLib;
|
|
23
|
+
|
|
24
|
+
Stop : Boolean := False;
|
|
25
|
+
|
|
26
|
+
pragma Atomic (Stop);
|
|
27
|
+
|
|
28
|
+
subtype Visible_Symbols is Stream_Element range 16#20# .. 16#7E#;
|
|
29
|
+
|
|
30
|
+
package Random_Elements is
|
|
31
|
+
new Ada.Numerics.Discrete_Random (Visible_Symbols);
|
|
32
|
+
|
|
33
|
+
task type Test_Task;
|
|
34
|
+
|
|
35
|
+
task body Test_Task is
|
|
36
|
+
Buffer : Stream_Element_Array (1 .. 100_000);
|
|
37
|
+
Gen : Random_Elements.Generator;
|
|
38
|
+
|
|
39
|
+
Buffer_First : Stream_Element_Offset;
|
|
40
|
+
Compare_First : Stream_Element_Offset;
|
|
41
|
+
|
|
42
|
+
Deflate : Filter_Type;
|
|
43
|
+
Inflate : Filter_Type;
|
|
44
|
+
|
|
45
|
+
procedure Further (Item : in Stream_Element_Array);
|
|
46
|
+
|
|
47
|
+
procedure Read_Buffer
|
|
48
|
+
(Item : out Ada.Streams.Stream_Element_Array;
|
|
49
|
+
Last : out Ada.Streams.Stream_Element_Offset);
|
|
50
|
+
|
|
51
|
+
-------------
|
|
52
|
+
-- Further --
|
|
53
|
+
-------------
|
|
54
|
+
|
|
55
|
+
procedure Further (Item : in Stream_Element_Array) is
|
|
56
|
+
|
|
57
|
+
procedure Compare (Item : in Stream_Element_Array);
|
|
58
|
+
|
|
59
|
+
-------------
|
|
60
|
+
-- Compare --
|
|
61
|
+
-------------
|
|
62
|
+
|
|
63
|
+
procedure Compare (Item : in Stream_Element_Array) is
|
|
64
|
+
Next_First : Stream_Element_Offset := Compare_First + Item'Length;
|
|
65
|
+
begin
|
|
66
|
+
if Buffer (Compare_First .. Next_First - 1) /= Item then
|
|
67
|
+
raise Program_Error;
|
|
68
|
+
end if;
|
|
69
|
+
|
|
70
|
+
Compare_First := Next_First;
|
|
71
|
+
end Compare;
|
|
72
|
+
|
|
73
|
+
procedure Compare_Write is new ZLib.Write (Write => Compare);
|
|
74
|
+
begin
|
|
75
|
+
Compare_Write (Inflate, Item, No_Flush);
|
|
76
|
+
end Further;
|
|
77
|
+
|
|
78
|
+
-----------------
|
|
79
|
+
-- Read_Buffer --
|
|
80
|
+
-----------------
|
|
81
|
+
|
|
82
|
+
procedure Read_Buffer
|
|
83
|
+
(Item : out Ada.Streams.Stream_Element_Array;
|
|
84
|
+
Last : out Ada.Streams.Stream_Element_Offset)
|
|
85
|
+
is
|
|
86
|
+
Buff_Diff : Stream_Element_Offset := Buffer'Last - Buffer_First;
|
|
87
|
+
Next_First : Stream_Element_Offset;
|
|
88
|
+
begin
|
|
89
|
+
if Item'Length <= Buff_Diff then
|
|
90
|
+
Last := Item'Last;
|
|
91
|
+
|
|
92
|
+
Next_First := Buffer_First + Item'Length;
|
|
93
|
+
|
|
94
|
+
Item := Buffer (Buffer_First .. Next_First - 1);
|
|
95
|
+
|
|
96
|
+
Buffer_First := Next_First;
|
|
97
|
+
else
|
|
98
|
+
Last := Item'First + Buff_Diff;
|
|
99
|
+
Item (Item'First .. Last) := Buffer (Buffer_First .. Buffer'Last);
|
|
100
|
+
Buffer_First := Buffer'Last + 1;
|
|
101
|
+
end if;
|
|
102
|
+
end Read_Buffer;
|
|
103
|
+
|
|
104
|
+
procedure Translate is new Generic_Translate
|
|
105
|
+
(Data_In => Read_Buffer,
|
|
106
|
+
Data_Out => Further);
|
|
107
|
+
|
|
108
|
+
begin
|
|
109
|
+
Random_Elements.Reset (Gen);
|
|
110
|
+
|
|
111
|
+
Buffer := (others => 20);
|
|
112
|
+
|
|
113
|
+
Main : loop
|
|
114
|
+
for J in Buffer'Range loop
|
|
115
|
+
Buffer (J) := Random_Elements.Random (Gen);
|
|
116
|
+
|
|
117
|
+
Deflate_Init (Deflate);
|
|
118
|
+
Inflate_Init (Inflate);
|
|
119
|
+
|
|
120
|
+
Buffer_First := Buffer'First;
|
|
121
|
+
Compare_First := Buffer'First;
|
|
122
|
+
|
|
123
|
+
Translate (Deflate);
|
|
124
|
+
|
|
125
|
+
if Compare_First /= Buffer'Last + 1 then
|
|
126
|
+
raise Program_Error;
|
|
127
|
+
end if;
|
|
128
|
+
|
|
129
|
+
Ada.Text_IO.Put_Line
|
|
130
|
+
(Ada.Task_Identification.Image
|
|
131
|
+
(Ada.Task_Identification.Current_Task)
|
|
132
|
+
& Stream_Element_Offset'Image (J)
|
|
133
|
+
& ZLib.Count'Image (Total_Out (Deflate)));
|
|
134
|
+
|
|
135
|
+
Close (Deflate);
|
|
136
|
+
Close (Inflate);
|
|
137
|
+
|
|
138
|
+
exit Main when Stop;
|
|
139
|
+
end loop;
|
|
140
|
+
end loop Main;
|
|
141
|
+
exception
|
|
142
|
+
when E : others =>
|
|
143
|
+
Ada.Text_IO.Put_Line (Ada.Exceptions.Exception_Information (E));
|
|
144
|
+
Stop := True;
|
|
145
|
+
end Test_Task;
|
|
146
|
+
|
|
147
|
+
Test : array (1 .. 4) of Test_Task;
|
|
148
|
+
|
|
149
|
+
pragma Unreferenced (Test);
|
|
150
|
+
|
|
151
|
+
Dummy : Character;
|
|
152
|
+
|
|
153
|
+
begin
|
|
154
|
+
Ada.Text_IO.Get_Immediate (Dummy);
|
|
155
|
+
Stop := True;
|
|
156
|
+
end MTest;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
----------------------------------------------------------------
|
|
2
|
+
-- ZLib for Ada thick binding. --
|
|
3
|
+
-- --
|
|
4
|
+
-- Copyright (C) 2002-2003 Dmitriy Anisimkov --
|
|
5
|
+
-- --
|
|
6
|
+
-- Open source license information is in the zlib.ads file. --
|
|
7
|
+
----------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
-- $Id: read.adb,v 1.8 2004/05/31 10:53:40 vagul Exp $
|
|
10
|
+
|
|
11
|
+
-- Test/demo program for the generic read interface.
|
|
12
|
+
|
|
13
|
+
with Ada.Numerics.Discrete_Random;
|
|
14
|
+
with Ada.Streams;
|
|
15
|
+
with Ada.Text_IO;
|
|
16
|
+
|
|
17
|
+
with ZLib;
|
|
18
|
+
|
|
19
|
+
procedure Read is
|
|
20
|
+
|
|
21
|
+
use Ada.Streams;
|
|
22
|
+
|
|
23
|
+
------------------------------------
|
|
24
|
+
-- Test configuration parameters --
|
|
25
|
+
------------------------------------
|
|
26
|
+
|
|
27
|
+
File_Size : Stream_Element_Offset := 100_000;
|
|
28
|
+
|
|
29
|
+
Continuous : constant Boolean := False;
|
|
30
|
+
-- If this constant is True, the test would be repeated again and again,
|
|
31
|
+
-- with increment File_Size for every iteration.
|
|
32
|
+
|
|
33
|
+
Header : constant ZLib.Header_Type := ZLib.Default;
|
|
34
|
+
-- Do not use Header other than Default in ZLib versions 1.1.4 and older.
|
|
35
|
+
|
|
36
|
+
Init_Random : constant := 8;
|
|
37
|
+
-- We are using the same random sequence, in case of we catch bug,
|
|
38
|
+
-- so we would be able to reproduce it.
|
|
39
|
+
|
|
40
|
+
-- End --
|
|
41
|
+
|
|
42
|
+
Pack_Size : Stream_Element_Offset;
|
|
43
|
+
Offset : Stream_Element_Offset;
|
|
44
|
+
|
|
45
|
+
Filter : ZLib.Filter_Type;
|
|
46
|
+
|
|
47
|
+
subtype Visible_Symbols
|
|
48
|
+
is Stream_Element range 16#20# .. 16#7E#;
|
|
49
|
+
|
|
50
|
+
package Random_Elements is new
|
|
51
|
+
Ada.Numerics.Discrete_Random (Visible_Symbols);
|
|
52
|
+
|
|
53
|
+
Gen : Random_Elements.Generator;
|
|
54
|
+
Period : constant Stream_Element_Offset := 200;
|
|
55
|
+
-- Period constant variable for random generator not to be very random.
|
|
56
|
+
-- Bigger period, harder random.
|
|
57
|
+
|
|
58
|
+
Read_Buffer : Stream_Element_Array (1 .. 2048);
|
|
59
|
+
Read_First : Stream_Element_Offset;
|
|
60
|
+
Read_Last : Stream_Element_Offset;
|
|
61
|
+
|
|
62
|
+
procedure Reset;
|
|
63
|
+
|
|
64
|
+
procedure Read
|
|
65
|
+
(Item : out Stream_Element_Array;
|
|
66
|
+
Last : out Stream_Element_Offset);
|
|
67
|
+
-- this procedure is for generic instantiation of
|
|
68
|
+
-- ZLib.Read
|
|
69
|
+
-- reading data from the File_In.
|
|
70
|
+
|
|
71
|
+
procedure Read is new ZLib.Read
|
|
72
|
+
(Read,
|
|
73
|
+
Read_Buffer,
|
|
74
|
+
Rest_First => Read_First,
|
|
75
|
+
Rest_Last => Read_Last);
|
|
76
|
+
|
|
77
|
+
----------
|
|
78
|
+
-- Read --
|
|
79
|
+
----------
|
|
80
|
+
|
|
81
|
+
procedure Read
|
|
82
|
+
(Item : out Stream_Element_Array;
|
|
83
|
+
Last : out Stream_Element_Offset) is
|
|
84
|
+
begin
|
|
85
|
+
Last := Stream_Element_Offset'Min
|
|
86
|
+
(Item'Last,
|
|
87
|
+
Item'First + File_Size - Offset);
|
|
88
|
+
|
|
89
|
+
for J in Item'First .. Last loop
|
|
90
|
+
if J < Item'First + Period then
|
|
91
|
+
Item (J) := Random_Elements.Random (Gen);
|
|
92
|
+
else
|
|
93
|
+
Item (J) := Item (J - Period);
|
|
94
|
+
end if;
|
|
95
|
+
|
|
96
|
+
Offset := Offset + 1;
|
|
97
|
+
end loop;
|
|
98
|
+
end Read;
|
|
99
|
+
|
|
100
|
+
-----------
|
|
101
|
+
-- Reset --
|
|
102
|
+
-----------
|
|
103
|
+
|
|
104
|
+
procedure Reset is
|
|
105
|
+
begin
|
|
106
|
+
Random_Elements.Reset (Gen, Init_Random);
|
|
107
|
+
Pack_Size := 0;
|
|
108
|
+
Offset := 1;
|
|
109
|
+
Read_First := Read_Buffer'Last + 1;
|
|
110
|
+
Read_Last := Read_Buffer'Last;
|
|
111
|
+
end Reset;
|
|
112
|
+
|
|
113
|
+
begin
|
|
114
|
+
Ada.Text_IO.Put_Line ("ZLib " & ZLib.Version);
|
|
115
|
+
|
|
116
|
+
loop
|
|
117
|
+
for Level in ZLib.Compression_Level'Range loop
|
|
118
|
+
|
|
119
|
+
Ada.Text_IO.Put ("Level ="
|
|
120
|
+
& ZLib.Compression_Level'Image (Level));
|
|
121
|
+
|
|
122
|
+
-- Deflate using generic instantiation.
|
|
123
|
+
|
|
124
|
+
ZLib.Deflate_Init
|
|
125
|
+
(Filter,
|
|
126
|
+
Level,
|
|
127
|
+
Header => Header);
|
|
128
|
+
|
|
129
|
+
Reset;
|
|
130
|
+
|
|
131
|
+
Ada.Text_IO.Put
|
|
132
|
+
(Stream_Element_Offset'Image (File_Size) & " ->");
|
|
133
|
+
|
|
134
|
+
loop
|
|
135
|
+
declare
|
|
136
|
+
Buffer : Stream_Element_Array (1 .. 1024);
|
|
137
|
+
Last : Stream_Element_Offset;
|
|
138
|
+
begin
|
|
139
|
+
Read (Filter, Buffer, Last);
|
|
140
|
+
|
|
141
|
+
Pack_Size := Pack_Size + Last - Buffer'First + 1;
|
|
142
|
+
|
|
143
|
+
exit when Last < Buffer'Last;
|
|
144
|
+
end;
|
|
145
|
+
end loop;
|
|
146
|
+
|
|
147
|
+
Ada.Text_IO.Put_Line (Stream_Element_Offset'Image (Pack_Size));
|
|
148
|
+
|
|
149
|
+
ZLib.Close (Filter);
|
|
150
|
+
end loop;
|
|
151
|
+
|
|
152
|
+
exit when not Continuous;
|
|
153
|
+
|
|
154
|
+
File_Size := File_Size + 1;
|
|
155
|
+
end loop;
|
|
156
|
+
end Read;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
ZLib for Ada thick binding (ZLib.Ada)
|
|
2
|
+
Release 1.3
|
|
3
|
+
|
|
4
|
+
ZLib.Ada is a thick binding interface to the popular ZLib data
|
|
5
|
+
compression library, available at https://zlib.net/.
|
|
6
|
+
It provides Ada-style access to the ZLib C library.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Here are the main changes since ZLib.Ada 1.2:
|
|
10
|
+
|
|
11
|
+
- Attention: ZLib.Read generic routine have a initialization requirement
|
|
12
|
+
for Read_Last parameter now. It is a bit incompatible with previous version,
|
|
13
|
+
but extends functionality, we could use new parameters Allow_Read_Some and
|
|
14
|
+
Flush now.
|
|
15
|
+
|
|
16
|
+
- Added Is_Open routines to ZLib and ZLib.Streams packages.
|
|
17
|
+
|
|
18
|
+
- Add pragma Assert to check Stream_Element is 8 bit.
|
|
19
|
+
|
|
20
|
+
- Fix extraction to buffer with exact known decompressed size. Error reported by
|
|
21
|
+
Steve Sangwine.
|
|
22
|
+
|
|
23
|
+
- Fix definition of ULong (changed to unsigned_long), fix regression on 64 bits
|
|
24
|
+
computers. Patch provided by Pascal Obry.
|
|
25
|
+
|
|
26
|
+
- Add Status_Error exception definition.
|
|
27
|
+
|
|
28
|
+
- Add pragma Assertion that Ada.Streams.Stream_Element size is 8 bit.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
How to build ZLib.Ada under GNAT
|
|
32
|
+
|
|
33
|
+
You should have the ZLib library already build on your computer, before
|
|
34
|
+
building ZLib.Ada. Make the directory of ZLib.Ada sources current and
|
|
35
|
+
issue the command:
|
|
36
|
+
|
|
37
|
+
gnatmake test -largs -L<directory where libz.a is> -lz
|
|
38
|
+
|
|
39
|
+
Or use the GNAT project file build for GNAT 3.15 or later:
|
|
40
|
+
|
|
41
|
+
gnatmake -Pzlib.gpr -L<directory where libz.a is>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
How to build ZLib.Ada under Aonix ObjectAda for Win32 7.2.2
|
|
45
|
+
|
|
46
|
+
1. Make a project with all *.ads and *.adb files from the distribution.
|
|
47
|
+
2. Build the libz.a library from the ZLib C sources.
|
|
48
|
+
3. Rename libz.a to z.lib.
|
|
49
|
+
4. Add the library z.lib to the project.
|
|
50
|
+
5. Add the libc.lib library from the ObjectAda distribution to the project.
|
|
51
|
+
6. Build the executable using test.adb as a main procedure.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
How to use ZLib.Ada
|
|
55
|
+
|
|
56
|
+
The source files test.adb and read.adb are small demo programs that show
|
|
57
|
+
the main functionality of ZLib.Ada.
|
|
58
|
+
|
|
59
|
+
The routines from the package specifications are commented.
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
Homepage: http://zlib-ada.sourceforge.net/
|
|
63
|
+
Author: Dmitriy Anisimkov <anisimkov@yahoo.com>
|
|
64
|
+
|
|
65
|
+
Contributors: Pascal Obry <pascal@obry.org>, Steve Sangwine <sjs@essex.ac.uk>
|