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,140 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
+
* Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
7
|
+
* in the file LICENSE in the source distribution or at
|
|
8
|
+
* https://www.openssl.org/source/license.html
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#ifndef OPENSSL_EVPERR_H
|
|
12
|
+
# define OPENSSL_EVPERR_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/opensslconf.h>
|
|
16
|
+
# include <openssl/symhacks.h>
|
|
17
|
+
# include <openssl/cryptoerr_legacy.h>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* EVP reason codes.
|
|
23
|
+
*/
|
|
24
|
+
# define EVP_R_AES_KEY_SETUP_FAILED 143
|
|
25
|
+
# define EVP_R_ARIA_KEY_SETUP_FAILED 176
|
|
26
|
+
# define EVP_R_BAD_ALGORITHM_NAME 200
|
|
27
|
+
# define EVP_R_BAD_DECRYPT 100
|
|
28
|
+
# define EVP_R_BAD_KEY_LENGTH 195
|
|
29
|
+
# define EVP_R_BUFFER_TOO_SMALL 155
|
|
30
|
+
# define EVP_R_CACHE_CONSTANTS_FAILED 225
|
|
31
|
+
# define EVP_R_CAMELLIA_KEY_SETUP_FAILED 157
|
|
32
|
+
# define EVP_R_CANNOT_GET_PARAMETERS 197
|
|
33
|
+
# define EVP_R_CANNOT_SET_PARAMETERS 198
|
|
34
|
+
# define EVP_R_CIPHER_NOT_GCM_MODE 184
|
|
35
|
+
# define EVP_R_CIPHER_PARAMETER_ERROR 122
|
|
36
|
+
# define EVP_R_COMMAND_NOT_SUPPORTED 147
|
|
37
|
+
# define EVP_R_CONFLICTING_ALGORITHM_NAME 201
|
|
38
|
+
# define EVP_R_COPY_ERROR 173
|
|
39
|
+
# define EVP_R_CTRL_NOT_IMPLEMENTED 132
|
|
40
|
+
# define EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED 133
|
|
41
|
+
# define EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH 138
|
|
42
|
+
# define EVP_R_DECODE_ERROR 114
|
|
43
|
+
# define EVP_R_DEFAULT_QUERY_PARSE_ERROR 210
|
|
44
|
+
# define EVP_R_DIFFERENT_KEY_TYPES 101
|
|
45
|
+
# define EVP_R_DIFFERENT_PARAMETERS 153
|
|
46
|
+
# define EVP_R_ERROR_LOADING_SECTION 165
|
|
47
|
+
# define EVP_R_EXPECTING_AN_HMAC_KEY 174
|
|
48
|
+
# define EVP_R_EXPECTING_AN_RSA_KEY 127
|
|
49
|
+
# define EVP_R_EXPECTING_A_DH_KEY 128
|
|
50
|
+
# define EVP_R_EXPECTING_A_DSA_KEY 129
|
|
51
|
+
# define EVP_R_EXPECTING_A_ECX_KEY 219
|
|
52
|
+
# define EVP_R_EXPECTING_A_EC_KEY 142
|
|
53
|
+
# define EVP_R_EXPECTING_A_POLY1305_KEY 164
|
|
54
|
+
# define EVP_R_EXPECTING_A_SIPHASH_KEY 175
|
|
55
|
+
# define EVP_R_FINAL_ERROR 188
|
|
56
|
+
# define EVP_R_GENERATE_ERROR 214
|
|
57
|
+
# define EVP_R_GETTING_ALGORITHMIDENTIFIER_NOT_SUPPORTED 229
|
|
58
|
+
# define EVP_R_GET_RAW_KEY_FAILED 182
|
|
59
|
+
# define EVP_R_ILLEGAL_SCRYPT_PARAMETERS 171
|
|
60
|
+
# define EVP_R_INACCESSIBLE_DOMAIN_PARAMETERS 204
|
|
61
|
+
# define EVP_R_INACCESSIBLE_KEY 203
|
|
62
|
+
# define EVP_R_INITIALIZATION_ERROR 134
|
|
63
|
+
# define EVP_R_INPUT_NOT_INITIALIZED 111
|
|
64
|
+
# define EVP_R_INVALID_CUSTOM_LENGTH 185
|
|
65
|
+
# define EVP_R_INVALID_DIGEST 152
|
|
66
|
+
# define EVP_R_INVALID_IV_LENGTH 194
|
|
67
|
+
# define EVP_R_INVALID_KEY 163
|
|
68
|
+
# define EVP_R_INVALID_KEY_LENGTH 130
|
|
69
|
+
# define EVP_R_INVALID_LENGTH 221
|
|
70
|
+
# define EVP_R_INVALID_NULL_ALGORITHM 218
|
|
71
|
+
# define EVP_R_INVALID_OPERATION 148
|
|
72
|
+
# define EVP_R_INVALID_PROVIDER_FUNCTIONS 193
|
|
73
|
+
# define EVP_R_INVALID_SALT_LENGTH 186
|
|
74
|
+
# define EVP_R_INVALID_SECRET_LENGTH 223
|
|
75
|
+
# define EVP_R_INVALID_SEED_LENGTH 220
|
|
76
|
+
# define EVP_R_INVALID_VALUE 222
|
|
77
|
+
# define EVP_R_KEYMGMT_EXPORT_FAILURE 205
|
|
78
|
+
# define EVP_R_KEY_SETUP_FAILED 180
|
|
79
|
+
# define EVP_R_LOCKING_NOT_SUPPORTED 213
|
|
80
|
+
# define EVP_R_MEMORY_LIMIT_EXCEEDED 172
|
|
81
|
+
# define EVP_R_MESSAGE_DIGEST_IS_NULL 159
|
|
82
|
+
# define EVP_R_METHOD_NOT_SUPPORTED 144
|
|
83
|
+
# define EVP_R_MISSING_PARAMETERS 103
|
|
84
|
+
# define EVP_R_NOT_ABLE_TO_COPY_CTX 190
|
|
85
|
+
# define EVP_R_NOT_XOF_OR_INVALID_LENGTH 178
|
|
86
|
+
# define EVP_R_NO_CIPHER_SET 131
|
|
87
|
+
# define EVP_R_NO_DEFAULT_DIGEST 158
|
|
88
|
+
# define EVP_R_NO_DIGEST_SET 139
|
|
89
|
+
# define EVP_R_NO_IMPORT_FUNCTION 206
|
|
90
|
+
# define EVP_R_NO_KEYMGMT_AVAILABLE 199
|
|
91
|
+
# define EVP_R_NO_KEYMGMT_PRESENT 196
|
|
92
|
+
# define EVP_R_NO_KEY_SET 154
|
|
93
|
+
# define EVP_R_NO_OPERATION_SET 149
|
|
94
|
+
# define EVP_R_NULL_MAC_PKEY_CTX 208
|
|
95
|
+
# define EVP_R_ONLY_ONESHOT_SUPPORTED 177
|
|
96
|
+
# define EVP_R_OPERATION_NOT_INITIALIZED 151
|
|
97
|
+
# define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 150
|
|
98
|
+
# define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_SIGNATURE_TYPE 226
|
|
99
|
+
# define EVP_R_OUTPUT_WOULD_OVERFLOW 202
|
|
100
|
+
# define EVP_R_PARAMETER_TOO_LARGE 187
|
|
101
|
+
# define EVP_R_PARTIALLY_OVERLAPPING 162
|
|
102
|
+
# define EVP_R_PBKDF2_ERROR 181
|
|
103
|
+
# define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179
|
|
104
|
+
# define EVP_R_PRIVATE_KEY_DECODE_ERROR 145
|
|
105
|
+
# define EVP_R_PRIVATE_KEY_ENCODE_ERROR 146
|
|
106
|
+
# define EVP_R_PUBLIC_KEY_NOT_RSA 106
|
|
107
|
+
# define EVP_R_SETTING_XOF_FAILED 227
|
|
108
|
+
# define EVP_R_SET_DEFAULT_PROPERTY_FAILURE 209
|
|
109
|
+
# define EVP_R_SIGNATURE_TYPE_AND_KEY_TYPE_INCOMPATIBLE 228
|
|
110
|
+
# define EVP_R_TOO_MANY_RECORDS 183
|
|
111
|
+
# define EVP_R_UNABLE_TO_ENABLE_LOCKING 212
|
|
112
|
+
# define EVP_R_UNABLE_TO_GET_MAXIMUM_REQUEST_SIZE 215
|
|
113
|
+
# define EVP_R_UNABLE_TO_GET_RANDOM_STRENGTH 216
|
|
114
|
+
# define EVP_R_UNABLE_TO_LOCK_CONTEXT 211
|
|
115
|
+
# define EVP_R_UNABLE_TO_SET_CALLBACKS 217
|
|
116
|
+
# define EVP_R_UNKNOWN_BITS 166
|
|
117
|
+
# define EVP_R_UNKNOWN_CIPHER 160
|
|
118
|
+
# define EVP_R_UNKNOWN_DIGEST 161
|
|
119
|
+
# define EVP_R_UNKNOWN_KEY_TYPE 207
|
|
120
|
+
# define EVP_R_UNKNOWN_MAX_SIZE 167
|
|
121
|
+
# define EVP_R_UNKNOWN_OPTION 169
|
|
122
|
+
# define EVP_R_UNKNOWN_PBE_ALGORITHM 121
|
|
123
|
+
# define EVP_R_UNKNOWN_SECURITY_BITS 168
|
|
124
|
+
# define EVP_R_UNSUPPORTED_ALGORITHM 156
|
|
125
|
+
# define EVP_R_UNSUPPORTED_CIPHER 107
|
|
126
|
+
# define EVP_R_UNSUPPORTED_KEYLENGTH 123
|
|
127
|
+
# define EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION 124
|
|
128
|
+
# define EVP_R_UNSUPPORTED_KEY_SIZE 108
|
|
129
|
+
# define EVP_R_UNSUPPORTED_KEY_TYPE 224
|
|
130
|
+
# define EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS 135
|
|
131
|
+
# define EVP_R_UNSUPPORTED_PRF 125
|
|
132
|
+
# define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM 118
|
|
133
|
+
# define EVP_R_UNSUPPORTED_SALT_TYPE 126
|
|
134
|
+
# define EVP_R_UPDATE_ERROR 189
|
|
135
|
+
# define EVP_R_WRAP_MODE_NOT_ALLOWED 170
|
|
136
|
+
# define EVP_R_WRONG_FINAL_BLOCK_LENGTH 109
|
|
137
|
+
# define EVP_R_XTS_DATA_UNIT_IS_TOO_LARGE 191
|
|
138
|
+
# define EVP_R_XTS_DUPLICATED_KEYS 192
|
|
139
|
+
|
|
140
|
+
#endif
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
6
|
+
* in the file LICENSE in the source distribution or at
|
|
7
|
+
* https://www.openssl.org/source/license.html
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef OPENSSL_FIPS_NAMES_H
|
|
11
|
+
# define OPENSSL_FIPS_NAMES_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# ifdef __cplusplus
|
|
15
|
+
extern "C" {
|
|
16
|
+
# endif
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* Parameter names that the FIPS Provider defines
|
|
20
|
+
* All parameters are of type: OSSL_PARAM_UTF8_STRING
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/* The following 4 Parameters are used for FIPS Self Testing */
|
|
24
|
+
|
|
25
|
+
/* The calculated MAC of the module file */
|
|
26
|
+
# define OSSL_PROV_FIPS_PARAM_MODULE_MAC "module-mac"
|
|
27
|
+
/* The Version number for the fips install process */
|
|
28
|
+
# define OSSL_PROV_FIPS_PARAM_INSTALL_VERSION "install-version"
|
|
29
|
+
/* The calculated MAC of the install status indicator */
|
|
30
|
+
# define OSSL_PROV_FIPS_PARAM_INSTALL_MAC "install-mac"
|
|
31
|
+
/* The install status indicator */
|
|
32
|
+
# define OSSL_PROV_FIPS_PARAM_INSTALL_STATUS "install-status"
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
* A boolean that determines if the FIPS conditional test errors result in
|
|
36
|
+
* the module entering an error state.
|
|
37
|
+
* Type: OSSL_PARAM_UTF8_STRING
|
|
38
|
+
*/
|
|
39
|
+
# define OSSL_PROV_FIPS_PARAM_CONDITIONAL_ERRORS "conditional-errors"
|
|
40
|
+
|
|
41
|
+
/* The following are provided for backwards compatibility */
|
|
42
|
+
# define OSSL_PROV_FIPS_PARAM_SECURITY_CHECKS OSSL_PROV_PARAM_SECURITY_CHECKS
|
|
43
|
+
# define OSSL_PROV_FIPS_PARAM_TLS1_PRF_EMS_CHECK OSSL_PROV_PARAM_TLS1_PRF_EMS_CHECK
|
|
44
|
+
# define OSSL_PROV_FIPS_PARAM_DRBG_TRUNC_DIGEST OSSL_PROV_PARAM_DRBG_TRUNC_DIGEST
|
|
45
|
+
|
|
46
|
+
# ifdef __cplusplus
|
|
47
|
+
}
|
|
48
|
+
# endif
|
|
49
|
+
|
|
50
|
+
#endif /* OPENSSL_FIPS_NAMES_H */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* WARNING: do not edit!
|
|
3
|
+
* Generated by makefile from include\openssl\fipskey.h.in
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2020-2024 The OpenSSL Project Authors. All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
8
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
9
|
+
* in the file LICENSE in the source distribution or at
|
|
10
|
+
* https://www.openssl.org/source/license.html
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
#ifndef OPENSSL_FIPSKEY_H
|
|
14
|
+
# define OPENSSL_FIPSKEY_H
|
|
15
|
+
# pragma once
|
|
16
|
+
|
|
17
|
+
# ifdef __cplusplus
|
|
18
|
+
extern "C" {
|
|
19
|
+
# endif
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* The FIPS validation HMAC key, usable as an array initializer.
|
|
23
|
+
*/
|
|
24
|
+
#define FIPS_KEY_ELEMENTS \
|
|
25
|
+
0xf4, 0x55, 0x66, 0x50, 0xac, 0x31, 0xd3, 0x54, 0x61, 0x61, 0x0b, 0xac, 0x4e, 0xd8, 0x1b, 0x1a, 0x18, 0x1b, 0x2d, 0x8a, 0x43, 0xea, 0x28, 0x54, 0xcb, 0xae, 0x22, 0xca, 0x74, 0x56, 0x08, 0x13
|
|
26
|
+
|
|
27
|
+
/*
|
|
28
|
+
* The FIPS validation key, as a string.
|
|
29
|
+
*/
|
|
30
|
+
#define FIPS_KEY_STRING "f4556650ac31d35461610bac4ed81b1a181b2d8a43ea2854cbae22ca74560813"
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
* The FIPS provider vendor name, as a string.
|
|
34
|
+
*/
|
|
35
|
+
#define FIPS_VENDOR "OpenSSL non-compliant FIPS Provider"
|
|
36
|
+
|
|
37
|
+
# ifdef __cplusplus
|
|
38
|
+
}
|
|
39
|
+
# endif
|
|
40
|
+
|
|
41
|
+
#endif
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
6
|
+
* in the file LICENSE in the source distribution or at
|
|
7
|
+
* https://www.openssl.org/source/license.html
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef OPENSSL_HMAC_H
|
|
11
|
+
# define OPENSSL_HMAC_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/macros.h>
|
|
15
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
16
|
+
# define HEADER_HMAC_H
|
|
17
|
+
# endif
|
|
18
|
+
|
|
19
|
+
# include <openssl/opensslconf.h>
|
|
20
|
+
|
|
21
|
+
# include <openssl/evp.h>
|
|
22
|
+
|
|
23
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
24
|
+
# define HMAC_MAX_MD_CBLOCK 200 /* Deprecated */
|
|
25
|
+
# endif
|
|
26
|
+
|
|
27
|
+
# ifdef __cplusplus
|
|
28
|
+
extern "C" {
|
|
29
|
+
# endif
|
|
30
|
+
|
|
31
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
32
|
+
OSSL_DEPRECATEDIN_3_0 size_t HMAC_size(const HMAC_CTX *e);
|
|
33
|
+
OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void);
|
|
34
|
+
OSSL_DEPRECATEDIN_3_0 int HMAC_CTX_reset(HMAC_CTX *ctx);
|
|
35
|
+
OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx);
|
|
36
|
+
# endif
|
|
37
|
+
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
|
38
|
+
OSSL_DEPRECATEDIN_1_1_0 __owur int HMAC_Init(HMAC_CTX *ctx,
|
|
39
|
+
const void *key, int len,
|
|
40
|
+
const EVP_MD *md);
|
|
41
|
+
# endif
|
|
42
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
43
|
+
OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
|
|
44
|
+
const EVP_MD *md, ENGINE *impl);
|
|
45
|
+
OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
|
|
46
|
+
size_t len);
|
|
47
|
+
OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,
|
|
48
|
+
unsigned int *len);
|
|
49
|
+
OSSL_DEPRECATEDIN_3_0 __owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
|
|
50
|
+
OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);
|
|
51
|
+
OSSL_DEPRECATEDIN_3_0 const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx);
|
|
52
|
+
# endif
|
|
53
|
+
|
|
54
|
+
unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
|
|
55
|
+
const unsigned char *data, size_t data_len,
|
|
56
|
+
unsigned char *md, unsigned int *md_len);
|
|
57
|
+
|
|
58
|
+
# ifdef __cplusplus
|
|
59
|
+
}
|
|
60
|
+
# endif
|
|
61
|
+
|
|
62
|
+
#endif
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022-2024 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
6
|
+
* in the file LICENSE in the source distribution or at
|
|
7
|
+
* https://www.openssl.org/source/license.html
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/* APIs and data structures for HPKE (RFC9180) */
|
|
11
|
+
#ifndef OSSL_HPKE_H
|
|
12
|
+
# define OSSL_HPKE_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/types.h>
|
|
16
|
+
|
|
17
|
+
/* HPKE modes */
|
|
18
|
+
# define OSSL_HPKE_MODE_BASE 0 /* Base mode */
|
|
19
|
+
# define OSSL_HPKE_MODE_PSK 1 /* Pre-shared key mode */
|
|
20
|
+
# define OSSL_HPKE_MODE_AUTH 2 /* Authenticated mode */
|
|
21
|
+
# define OSSL_HPKE_MODE_PSKAUTH 3 /* PSK+authenticated mode */
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* Max for ikm, psk, pskid, info and exporter contexts.
|
|
25
|
+
* RFC9180, section 7.2.1 RECOMMENDS 64 octets but we have test vectors from
|
|
26
|
+
* Appendix A.6.1 with a 66 octet IKM so we'll allow that.
|
|
27
|
+
*/
|
|
28
|
+
# define OSSL_HPKE_MAX_PARMLEN 66
|
|
29
|
+
# define OSSL_HPKE_MIN_PSKLEN 32
|
|
30
|
+
# define OSSL_HPKE_MAX_INFOLEN 1024
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
* The (16bit) HPKE algorithm ID IANA codepoints
|
|
34
|
+
* If/when new IANA codepoints are added there are tables in
|
|
35
|
+
* crypto/hpke/hpke_util.c that must also be updated.
|
|
36
|
+
*/
|
|
37
|
+
# define OSSL_HPKE_KEM_ID_RESERVED 0x0000 /* not used */
|
|
38
|
+
# define OSSL_HPKE_KEM_ID_P256 0x0010 /* NIST P-256 */
|
|
39
|
+
# define OSSL_HPKE_KEM_ID_P384 0x0011 /* NIST P-384 */
|
|
40
|
+
# define OSSL_HPKE_KEM_ID_P521 0x0012 /* NIST P-521 */
|
|
41
|
+
# define OSSL_HPKE_KEM_ID_X25519 0x0020 /* Curve25519 */
|
|
42
|
+
# define OSSL_HPKE_KEM_ID_X448 0x0021 /* Curve448 */
|
|
43
|
+
|
|
44
|
+
# define OSSL_HPKE_KDF_ID_RESERVED 0x0000 /* not used */
|
|
45
|
+
# define OSSL_HPKE_KDF_ID_HKDF_SHA256 0x0001 /* HKDF-SHA256 */
|
|
46
|
+
# define OSSL_HPKE_KDF_ID_HKDF_SHA384 0x0002 /* HKDF-SHA384 */
|
|
47
|
+
# define OSSL_HPKE_KDF_ID_HKDF_SHA512 0x0003 /* HKDF-SHA512 */
|
|
48
|
+
|
|
49
|
+
# define OSSL_HPKE_AEAD_ID_RESERVED 0x0000 /* not used */
|
|
50
|
+
# define OSSL_HPKE_AEAD_ID_AES_GCM_128 0x0001 /* AES-GCM-128 */
|
|
51
|
+
# define OSSL_HPKE_AEAD_ID_AES_GCM_256 0x0002 /* AES-GCM-256 */
|
|
52
|
+
# define OSSL_HPKE_AEAD_ID_CHACHA_POLY1305 0x0003 /* Chacha20-Poly1305 */
|
|
53
|
+
# define OSSL_HPKE_AEAD_ID_EXPORTONLY 0xFFFF /* export-only fake ID */
|
|
54
|
+
|
|
55
|
+
/* strings for suite components */
|
|
56
|
+
# define OSSL_HPKE_KEMSTR_P256 "P-256" /* KEM id 0x10 */
|
|
57
|
+
# define OSSL_HPKE_KEMSTR_P384 "P-384" /* KEM id 0x11 */
|
|
58
|
+
# define OSSL_HPKE_KEMSTR_P521 "P-521" /* KEM id 0x12 */
|
|
59
|
+
# define OSSL_HPKE_KEMSTR_X25519 "X25519" /* KEM id 0x20 */
|
|
60
|
+
# define OSSL_HPKE_KEMSTR_X448 "X448" /* KEM id 0x21 */
|
|
61
|
+
# define OSSL_HPKE_KDFSTR_256 "hkdf-sha256" /* KDF id 1 */
|
|
62
|
+
# define OSSL_HPKE_KDFSTR_384 "hkdf-sha384" /* KDF id 2 */
|
|
63
|
+
# define OSSL_HPKE_KDFSTR_512 "hkdf-sha512" /* KDF id 3 */
|
|
64
|
+
# define OSSL_HPKE_AEADSTR_AES128GCM "aes-128-gcm" /* AEAD id 1 */
|
|
65
|
+
# define OSSL_HPKE_AEADSTR_AES256GCM "aes-256-gcm" /* AEAD id 2 */
|
|
66
|
+
# define OSSL_HPKE_AEADSTR_CP "chacha20-poly1305" /* AEAD id 3 */
|
|
67
|
+
# define OSSL_HPKE_AEADSTR_EXP "exporter" /* AEAD id 0xff */
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
* Roles for use in creating an OSSL_HPKE_CTX, most
|
|
71
|
+
* important use of this is to control nonce reuse.
|
|
72
|
+
*/
|
|
73
|
+
# define OSSL_HPKE_ROLE_SENDER 0
|
|
74
|
+
# define OSSL_HPKE_ROLE_RECEIVER 1
|
|
75
|
+
|
|
76
|
+
# ifdef __cplusplus
|
|
77
|
+
extern "C" {
|
|
78
|
+
# endif
|
|
79
|
+
|
|
80
|
+
typedef struct {
|
|
81
|
+
uint16_t kem_id; /* Key Encapsulation Method id */
|
|
82
|
+
uint16_t kdf_id; /* Key Derivation Function id */
|
|
83
|
+
uint16_t aead_id; /* AEAD alg id */
|
|
84
|
+
} OSSL_HPKE_SUITE;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Suite constants, use this like:
|
|
88
|
+
* OSSL_HPKE_SUITE myvar = OSSL_HPKE_SUITE_DEFAULT;
|
|
89
|
+
*/
|
|
90
|
+
# ifndef OPENSSL_NO_ECX
|
|
91
|
+
# define OSSL_HPKE_SUITE_DEFAULT \
|
|
92
|
+
{\
|
|
93
|
+
OSSL_HPKE_KEM_ID_X25519, \
|
|
94
|
+
OSSL_HPKE_KDF_ID_HKDF_SHA256, \
|
|
95
|
+
OSSL_HPKE_AEAD_ID_AES_GCM_128 \
|
|
96
|
+
}
|
|
97
|
+
# else
|
|
98
|
+
# define OSSL_HPKE_SUITE_DEFAULT \
|
|
99
|
+
{\
|
|
100
|
+
OSSL_HPKE_KEM_ID_P256, \
|
|
101
|
+
OSSL_HPKE_KDF_ID_HKDF_SHA256, \
|
|
102
|
+
OSSL_HPKE_AEAD_ID_AES_GCM_128 \
|
|
103
|
+
}
|
|
104
|
+
#endif
|
|
105
|
+
|
|
106
|
+
typedef struct ossl_hpke_ctx_st OSSL_HPKE_CTX;
|
|
107
|
+
|
|
108
|
+
OSSL_HPKE_CTX *OSSL_HPKE_CTX_new(int mode, OSSL_HPKE_SUITE suite, int role,
|
|
109
|
+
OSSL_LIB_CTX *libctx, const char *propq);
|
|
110
|
+
void OSSL_HPKE_CTX_free(OSSL_HPKE_CTX *ctx);
|
|
111
|
+
|
|
112
|
+
int OSSL_HPKE_encap(OSSL_HPKE_CTX *ctx,
|
|
113
|
+
unsigned char *enc, size_t *enclen,
|
|
114
|
+
const unsigned char *pub, size_t publen,
|
|
115
|
+
const unsigned char *info, size_t infolen);
|
|
116
|
+
int OSSL_HPKE_seal(OSSL_HPKE_CTX *ctx,
|
|
117
|
+
unsigned char *ct, size_t *ctlen,
|
|
118
|
+
const unsigned char *aad, size_t aadlen,
|
|
119
|
+
const unsigned char *pt, size_t ptlen);
|
|
120
|
+
|
|
121
|
+
int OSSL_HPKE_keygen(OSSL_HPKE_SUITE suite,
|
|
122
|
+
unsigned char *pub, size_t *publen, EVP_PKEY **priv,
|
|
123
|
+
const unsigned char *ikm, size_t ikmlen,
|
|
124
|
+
OSSL_LIB_CTX *libctx, const char *propq);
|
|
125
|
+
int OSSL_HPKE_decap(OSSL_HPKE_CTX *ctx,
|
|
126
|
+
const unsigned char *enc, size_t enclen,
|
|
127
|
+
EVP_PKEY *recippriv,
|
|
128
|
+
const unsigned char *info, size_t infolen);
|
|
129
|
+
int OSSL_HPKE_open(OSSL_HPKE_CTX *ctx,
|
|
130
|
+
unsigned char *pt, size_t *ptlen,
|
|
131
|
+
const unsigned char *aad, size_t aadlen,
|
|
132
|
+
const unsigned char *ct, size_t ctlen);
|
|
133
|
+
|
|
134
|
+
int OSSL_HPKE_export(OSSL_HPKE_CTX *ctx,
|
|
135
|
+
unsigned char *secret,
|
|
136
|
+
size_t secretlen,
|
|
137
|
+
const unsigned char *label,
|
|
138
|
+
size_t labellen);
|
|
139
|
+
|
|
140
|
+
int OSSL_HPKE_CTX_set1_authpriv(OSSL_HPKE_CTX *ctx, EVP_PKEY *priv);
|
|
141
|
+
int OSSL_HPKE_CTX_set1_authpub(OSSL_HPKE_CTX *ctx,
|
|
142
|
+
const unsigned char *pub,
|
|
143
|
+
size_t publen);
|
|
144
|
+
int OSSL_HPKE_CTX_set1_psk(OSSL_HPKE_CTX *ctx,
|
|
145
|
+
const char *pskid,
|
|
146
|
+
const unsigned char *psk, size_t psklen);
|
|
147
|
+
|
|
148
|
+
int OSSL_HPKE_CTX_set1_ikme(OSSL_HPKE_CTX *ctx,
|
|
149
|
+
const unsigned char *ikme, size_t ikmelen);
|
|
150
|
+
|
|
151
|
+
int OSSL_HPKE_CTX_set_seq(OSSL_HPKE_CTX *ctx, uint64_t seq);
|
|
152
|
+
int OSSL_HPKE_CTX_get_seq(OSSL_HPKE_CTX *ctx, uint64_t *seq);
|
|
153
|
+
|
|
154
|
+
int OSSL_HPKE_suite_check(OSSL_HPKE_SUITE suite);
|
|
155
|
+
int OSSL_HPKE_get_grease_value(const OSSL_HPKE_SUITE *suite_in,
|
|
156
|
+
OSSL_HPKE_SUITE *suite,
|
|
157
|
+
unsigned char *enc, size_t *enclen,
|
|
158
|
+
unsigned char *ct, size_t ctlen,
|
|
159
|
+
OSSL_LIB_CTX *libctx, const char *propq);
|
|
160
|
+
int OSSL_HPKE_str2suite(const char *str, OSSL_HPKE_SUITE *suite);
|
|
161
|
+
size_t OSSL_HPKE_get_ciphertext_size(OSSL_HPKE_SUITE suite, size_t clearlen);
|
|
162
|
+
size_t OSSL_HPKE_get_public_encap_size(OSSL_HPKE_SUITE suite);
|
|
163
|
+
size_t OSSL_HPKE_get_recommended_ikmelen(OSSL_HPKE_SUITE suite);
|
|
164
|
+
|
|
165
|
+
# ifdef __cplusplus
|
|
166
|
+
}
|
|
167
|
+
# endif
|
|
168
|
+
|
|
169
|
+
#endif
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2000-2024 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
* Copyright Siemens AG 2018-2020
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
7
|
+
* in the file LICENSE in the source distribution or at
|
|
8
|
+
* https://www.openssl.org/source/license.html
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#ifndef OPENSSL_HTTP_H
|
|
12
|
+
# define OPENSSL_HTTP_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/opensslconf.h>
|
|
16
|
+
|
|
17
|
+
# include <openssl/bio.h>
|
|
18
|
+
# include <openssl/asn1.h>
|
|
19
|
+
# include <openssl/conf.h>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# ifdef __cplusplus
|
|
23
|
+
extern "C" {
|
|
24
|
+
# endif
|
|
25
|
+
|
|
26
|
+
# define OSSL_HTTP_NAME "http"
|
|
27
|
+
# define OSSL_HTTPS_NAME "https"
|
|
28
|
+
# define OSSL_HTTP_PREFIX OSSL_HTTP_NAME"://"
|
|
29
|
+
# define OSSL_HTTPS_PREFIX OSSL_HTTPS_NAME"://"
|
|
30
|
+
# define OSSL_HTTP_PORT "80"
|
|
31
|
+
# define OSSL_HTTPS_PORT "443"
|
|
32
|
+
# define OPENSSL_NO_PROXY "NO_PROXY"
|
|
33
|
+
# define OPENSSL_HTTP_PROXY "HTTP_PROXY"
|
|
34
|
+
# define OPENSSL_HTTPS_PROXY "HTTPS_PROXY"
|
|
35
|
+
|
|
36
|
+
# ifndef OPENSSL_NO_HTTP
|
|
37
|
+
|
|
38
|
+
# define OSSL_HTTP_DEFAULT_MAX_LINE_LEN (4 * 1024)
|
|
39
|
+
# define OSSL_HTTP_DEFAULT_MAX_RESP_LEN (100 * 1024)
|
|
40
|
+
# define OSSL_HTTP_DEFAULT_MAX_CRL_LEN (32 * 1024 * 1024)
|
|
41
|
+
# define OSSL_HTTP_DEFAULT_MAX_RESP_HDR_LINES 256
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/* Low-level HTTP API */
|
|
45
|
+
OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size);
|
|
46
|
+
void OSSL_HTTP_REQ_CTX_free(OSSL_HTTP_REQ_CTX *rctx);
|
|
47
|
+
int OSSL_HTTP_REQ_CTX_set_request_line(OSSL_HTTP_REQ_CTX *rctx, int method_POST,
|
|
48
|
+
const char *server, const char *port,
|
|
49
|
+
const char *path);
|
|
50
|
+
int OSSL_HTTP_REQ_CTX_add1_header(OSSL_HTTP_REQ_CTX *rctx,
|
|
51
|
+
const char *name, const char *value);
|
|
52
|
+
int OSSL_HTTP_REQ_CTX_set_expected(OSSL_HTTP_REQ_CTX *rctx,
|
|
53
|
+
const char *content_type, int asn1,
|
|
54
|
+
int timeout, int keep_alive);
|
|
55
|
+
int OSSL_HTTP_REQ_CTX_set1_req(OSSL_HTTP_REQ_CTX *rctx, const char *content_type,
|
|
56
|
+
const ASN1_ITEM *it, const ASN1_VALUE *req);
|
|
57
|
+
int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx);
|
|
58
|
+
int OSSL_HTTP_REQ_CTX_nbio_d2i(OSSL_HTTP_REQ_CTX *rctx,
|
|
59
|
+
ASN1_VALUE **pval, const ASN1_ITEM *it);
|
|
60
|
+
BIO *OSSL_HTTP_REQ_CTX_exchange(OSSL_HTTP_REQ_CTX *rctx);
|
|
61
|
+
BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx);
|
|
62
|
+
size_t OSSL_HTTP_REQ_CTX_get_resp_len(const OSSL_HTTP_REQ_CTX *rctx);
|
|
63
|
+
void OSSL_HTTP_REQ_CTX_set_max_response_length(OSSL_HTTP_REQ_CTX *rctx,
|
|
64
|
+
unsigned long len);
|
|
65
|
+
int OSSL_HTTP_is_alive(const OSSL_HTTP_REQ_CTX *rctx);
|
|
66
|
+
|
|
67
|
+
/* High-level HTTP API */
|
|
68
|
+
typedef BIO *(*OSSL_HTTP_bio_cb_t)(BIO *bio, void *arg, int connect, int detail);
|
|
69
|
+
OSSL_HTTP_REQ_CTX *OSSL_HTTP_open(const char *server, const char *port,
|
|
70
|
+
const char *proxy, const char *no_proxy,
|
|
71
|
+
int use_ssl, BIO *bio, BIO *rbio,
|
|
72
|
+
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
|
73
|
+
int buf_size, int overall_timeout);
|
|
74
|
+
int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port,
|
|
75
|
+
const char *proxyuser, const char *proxypass,
|
|
76
|
+
int timeout, BIO *bio_err, const char *prog);
|
|
77
|
+
int OSSL_HTTP_set1_request(OSSL_HTTP_REQ_CTX *rctx, const char *path,
|
|
78
|
+
const STACK_OF(CONF_VALUE) *headers,
|
|
79
|
+
const char *content_type, BIO *req,
|
|
80
|
+
const char *expected_content_type, int expect_asn1,
|
|
81
|
+
size_t max_resp_len, int timeout, int keep_alive);
|
|
82
|
+
BIO *OSSL_HTTP_exchange(OSSL_HTTP_REQ_CTX *rctx, char **redirection_url);
|
|
83
|
+
BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy,
|
|
84
|
+
BIO *bio, BIO *rbio,
|
|
85
|
+
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
|
86
|
+
int buf_size, const STACK_OF(CONF_VALUE) *headers,
|
|
87
|
+
const char *expected_content_type, int expect_asn1,
|
|
88
|
+
size_t max_resp_len, int timeout);
|
|
89
|
+
BIO *OSSL_HTTP_transfer(OSSL_HTTP_REQ_CTX **prctx,
|
|
90
|
+
const char *server, const char *port,
|
|
91
|
+
const char *path, int use_ssl,
|
|
92
|
+
const char *proxy, const char *no_proxy,
|
|
93
|
+
BIO *bio, BIO *rbio,
|
|
94
|
+
OSSL_HTTP_bio_cb_t bio_update_fn, void *arg,
|
|
95
|
+
int buf_size, const STACK_OF(CONF_VALUE) *headers,
|
|
96
|
+
const char *content_type, BIO *req,
|
|
97
|
+
const char *expected_content_type, int expect_asn1,
|
|
98
|
+
size_t max_resp_len, int timeout, int keep_alive);
|
|
99
|
+
int OSSL_HTTP_close(OSSL_HTTP_REQ_CTX *rctx, int ok);
|
|
100
|
+
|
|
101
|
+
/* Auxiliary functions */
|
|
102
|
+
int OSSL_parse_url(const char *url, char **pscheme, char **puser, char **phost,
|
|
103
|
+
char **pport, int *pport_num,
|
|
104
|
+
char **ppath, char **pquery, char **pfrag);
|
|
105
|
+
int OSSL_HTTP_parse_url(const char *url, int *pssl, char **puser, char **phost,
|
|
106
|
+
char **pport, int *pport_num,
|
|
107
|
+
char **ppath, char **pquery, char **pfrag);
|
|
108
|
+
const char *OSSL_HTTP_adapt_proxy(const char *proxy, const char *no_proxy,
|
|
109
|
+
const char *server, int use_ssl);
|
|
110
|
+
|
|
111
|
+
void OSSL_HTTP_REQ_CTX_set_max_response_hdr_lines(OSSL_HTTP_REQ_CTX *rctx,
|
|
112
|
+
size_t count);
|
|
113
|
+
|
|
114
|
+
# endif /* !defined(OPENSSL_NO_HTTP) */
|
|
115
|
+
# ifdef __cplusplus
|
|
116
|
+
}
|
|
117
|
+
# endif
|
|
118
|
+
#endif /* !defined(OPENSSL_HTTP_H) */
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
+
* Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
7
|
+
* in the file LICENSE in the source distribution or at
|
|
8
|
+
* https://www.openssl.org/source/license.html
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#ifndef OPENSSL_HTTPERR_H
|
|
12
|
+
# define OPENSSL_HTTPERR_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/opensslconf.h>
|
|
16
|
+
# include <openssl/symhacks.h>
|
|
17
|
+
# include <openssl/cryptoerr_legacy.h>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* HTTP reason codes.
|
|
23
|
+
*/
|
|
24
|
+
# define HTTP_R_ASN1_LEN_EXCEEDS_MAX_RESP_LEN 108
|
|
25
|
+
# define HTTP_R_CONNECT_FAILURE 100
|
|
26
|
+
# define HTTP_R_ERROR_PARSING_ASN1_LENGTH 109
|
|
27
|
+
# define HTTP_R_ERROR_PARSING_CONTENT_LENGTH 119
|
|
28
|
+
# define HTTP_R_ERROR_PARSING_URL 101
|
|
29
|
+
# define HTTP_R_ERROR_RECEIVING 103
|
|
30
|
+
# define HTTP_R_ERROR_SENDING 102
|
|
31
|
+
# define HTTP_R_FAILED_READING_DATA 128
|
|
32
|
+
# define HTTP_R_HEADER_PARSE_ERROR 126
|
|
33
|
+
# define HTTP_R_INCONSISTENT_CONTENT_LENGTH 120
|
|
34
|
+
# define HTTP_R_INVALID_PORT_NUMBER 123
|
|
35
|
+
# define HTTP_R_INVALID_URL_PATH 125
|
|
36
|
+
# define HTTP_R_INVALID_URL_SCHEME 124
|
|
37
|
+
# define HTTP_R_MAX_RESP_LEN_EXCEEDED 117
|
|
38
|
+
# define HTTP_R_MISSING_ASN1_ENCODING 110
|
|
39
|
+
# define HTTP_R_MISSING_CONTENT_TYPE 121
|
|
40
|
+
# define HTTP_R_MISSING_REDIRECT_LOCATION 111
|
|
41
|
+
# define HTTP_R_RECEIVED_ERROR 105
|
|
42
|
+
# define HTTP_R_RECEIVED_WRONG_HTTP_VERSION 106
|
|
43
|
+
# define HTTP_R_REDIRECTION_FROM_HTTPS_TO_HTTP 112
|
|
44
|
+
# define HTTP_R_REDIRECTION_NOT_ENABLED 116
|
|
45
|
+
# define HTTP_R_RESPONSE_LINE_TOO_LONG 113
|
|
46
|
+
# define HTTP_R_RESPONSE_PARSE_ERROR 104
|
|
47
|
+
# define HTTP_R_RESPONSE_TOO_MANY_HDRLINES 130
|
|
48
|
+
# define HTTP_R_RETRY_TIMEOUT 129
|
|
49
|
+
# define HTTP_R_SERVER_CANCELED_CONNECTION 127
|
|
50
|
+
# define HTTP_R_SOCK_NOT_SUPPORTED 122
|
|
51
|
+
# define HTTP_R_STATUS_CODE_UNSUPPORTED 114
|
|
52
|
+
# define HTTP_R_TLS_NOT_ENABLED 107
|
|
53
|
+
# define HTTP_R_TOO_MANY_REDIRECTIONS 115
|
|
54
|
+
# define HTTP_R_UNEXPECTED_CONTENT_TYPE 118
|
|
55
|
+
|
|
56
|
+
#endif
|