├── .gitattributes ├── deps └── test │ ├── mbedtls │ ├── 3rdparty │ │ ├── .gitignore │ │ ├── everest │ │ │ ├── .gitignore │ │ │ ├── include │ │ │ │ └── everest │ │ │ │ │ ├── kremlin │ │ │ │ │ └── internal │ │ │ │ │ │ ├── wasmsupport.h │ │ │ │ │ │ └── builtin.h │ │ │ │ │ ├── vs2013 │ │ │ │ │ ├── stdbool.h │ │ │ │ │ ├── Hacl_Curve25519.h │ │ │ │ │ └── inttypes.h │ │ │ │ │ ├── kremlib.h │ │ │ │ │ └── Hacl_Curve25519.h │ │ │ ├── Makefile.inc │ │ │ └── README.md │ │ ├── p256-m │ │ │ ├── .gitignore │ │ │ ├── Makefile.inc │ │ │ └── README.md │ │ ├── CMakeLists.txt │ │ └── Makefile.inc │ ├── pkgconfig │ │ ├── .gitignore │ │ ├── mbedcrypto.pc.in │ │ ├── mbedx509.pc.in │ │ ├── mbedtls.pc.in │ │ └── JoinPaths.cmake │ ├── .globalrc │ ├── include │ │ ├── .gitignore │ │ ├── mbedtls │ │ │ └── private_access.h │ │ ├── psa │ │ │ ├── build_info.h │ │ │ └── crypto_adjust_auto_enabled.h │ │ └── CMakeLists.txt │ ├── .mypy.ini │ ├── cmake │ │ └── MbedTLSConfig.cmake.in │ ├── .gitmodules │ ├── .gitattributes │ ├── DartConfiguration.tcl │ ├── library │ │ ├── .gitignore │ │ ├── psa_crypto_client.c │ │ ├── ssl_client.h │ │ ├── ssl_tls13_invasive.h │ │ ├── md_psa.h │ │ ├── version.c │ │ ├── ctr.h │ │ ├── md_wrap.h │ │ ├── psa_crypto_driver_wrappers_no_static.h │ │ ├── bignum_mod_raw_invasive.h │ │ └── base64_internal.h │ ├── .github │ │ ├── ISSUE_TEMPLATE │ │ │ ├── feature_request.md │ │ │ ├── config.yml │ │ │ └── bug_report.md │ │ └── pull_request_template.md │ ├── configs │ │ ├── ext │ │ │ ├── config_tfm.h │ │ │ ├── mbedtls_entropy_nv_seed_config.h │ │ │ └── README.md │ │ ├── crypto-config-ccm-aes-sha256.h │ │ └── README.txt │ ├── visualc │ │ └── VS2017 │ │ │ └── .gitignore │ ├── doxygen │ │ └── input │ │ │ ├── doc_mainpage.h │ │ │ ├── doc_rng.h │ │ │ ├── doc_hashing.h │ │ │ ├── doc_tcpip.h │ │ │ └── doc_x509.h │ ├── SUPPORT.md │ ├── .travis.yml │ ├── BUGS.md │ └── .readthedocs.yaml │ ├── zlib │ ├── contrib │ │ ├── blast │ │ │ ├── test.txt │ │ │ ├── test.pk │ │ │ ├── README │ │ │ └── Makefile │ │ ├── infback9 │ │ │ └── README │ │ ├── puff │ │ │ └── zeros.raw │ │ ├── dotzlib │ │ │ ├── DotZLib.chm │ │ │ ├── DotZLib │ │ │ │ ├── DotZLib.cs │ │ │ │ ├── CodecBase.cs │ │ │ │ ├── Deflater.cs │ │ │ │ ├── Inflater.cs │ │ │ │ ├── ChecksumImpl.cs │ │ │ │ ├── GZipStream.cs │ │ │ │ └── CircularBuffer.cs │ │ │ ├── DotZLib.sln │ │ │ └── DotZLib.build │ │ ├── minizip │ │ │ ├── MiniZip64_Changes.txt │ │ │ ├── minizip.pc.in │ │ │ ├── Makefile │ │ │ ├── mztools.h │ │ │ ├── configure.ac │ │ │ ├── iowin32.h │ │ │ ├── make_vms.com │ │ │ └── Makefile.am │ │ ├── delphi │ │ │ └── ZLibConst.pas │ │ ├── testzlib │ │ │ └── testzlib.txt │ │ ├── untgz │ │ │ ├── Makefile │ │ │ └── Makefile.msc │ │ ├── iostream3 │ │ │ └── TODO │ │ ├── ada │ │ │ └── zlib.gpr │ │ ├── iostream │ │ │ └── test.cpp │ │ ├── iostream2 │ │ │ └── zstream_test.cpp │ │ ├── vstudio │ │ │ ├── vc10 │ │ │ │ ├── miniunz.vcxproj.filters │ │ │ │ ├── minizip.vcxproj.filters │ │ │ │ ├── testzlibdll.vcxproj.filters │ │ │ │ └── zlib.rc │ │ │ ├── vc12 │ │ │ │ └── zlib.rc │ │ │ ├── vc14 │ │ │ │ └── zlib.rc │ │ │ ├── vc17 │ │ │ │ └── zlib.rc │ │ │ ├── vc11 │ │ │ │ └── zlib.rc │ │ │ └── vc9 │ │ │ │ └── zlib.rc │ │ └── nuget │ │ │ └── nuget.sln │ ├── zlib.3.pdf │ ├── Makefile │ ├── win32 │ │ ├── VisualC.txt │ │ └── zlib1.rc │ ├── old │ │ ├── README │ │ └── os2 │ │ │ └── zlib.def │ ├── nintendods │ │ └── README │ ├── zlib.pc.in │ ├── zlib.pc.cmakein │ ├── inffast.h │ ├── .gitignore │ ├── .github │ │ └── workflows │ │ │ └── fuzz.yml │ ├── gzclose.c │ └── LICENSE │ └── libgit2 │ ├── src │ ├── cli │ │ ├── win32 │ │ │ ├── precompiled.c │ │ │ ├── precompiled.h │ │ │ └── sighandler.c │ │ ├── cmd.c │ │ ├── sighandler.h │ │ ├── unix │ │ │ └── sighandler.c │ │ ├── README.md │ │ ├── opt_usage.h │ │ ├── cmd.h │ │ └── error.h │ ├── util │ │ ├── win32 │ │ │ ├── precompiled.c │ │ │ ├── precompiled.h │ │ │ ├── error.h │ │ │ ├── w32_buffer.h │ │ │ ├── mingw-compat.h │ │ │ ├── msvc-compat.h │ │ │ ├── dir.h │ │ │ └── win32-compat.h │ │ ├── hash │ │ │ ├── builtin.h │ │ │ ├── collisiondetect.h │ │ │ ├── common_crypto.h │ │ │ ├── mbedtls.h │ │ │ ├── openssl.h │ │ │ ├── collisiondetect.c │ │ │ └── builtin.c │ │ ├── allocators │ │ │ ├── stdalloc.h │ │ │ ├── debugalloc.h │ │ │ ├── win32_leakcheck.h │ │ │ ├── failalloc.h │ │ │ ├── failalloc.c │ │ │ └── stdalloc.c │ │ ├── varint.h │ │ ├── wildmatch.h │ │ ├── strnlen.h │ │ ├── date.h │ │ ├── strlist.h │ │ ├── rand.h │ │ ├── unix │ │ │ └── realpath.c │ │ └── varint.c │ ├── libgit2 │ │ ├── experimental.h.in │ │ ├── attr.h │ │ ├── indexer.h │ │ ├── transaction.h │ │ ├── diff_parse.h │ │ ├── settings.h │ │ ├── transports │ │ │ ├── http.h │ │ │ ├── auth_negotiate.h │ │ │ ├── ssh_exec.h │ │ │ ├── ssh_libssh2.h │ │ │ └── auth_ntlm.h │ │ ├── diff_stats.h │ │ ├── proxy.h │ │ ├── status.h │ │ ├── fetch.h │ │ ├── clone.h │ │ ├── blame_git.h │ │ ├── streams │ │ │ ├── registry.h │ │ │ ├── stransport.h │ │ │ ├── socket.h │ │ │ ├── schannel.h │ │ │ ├── mbedtls.h │ │ │ ├── openssl.h │ │ │ └── tls.h │ │ ├── apply.h │ │ ├── trace.c │ │ ├── email.h │ │ ├── notes.h │ │ ├── strarray.h │ │ ├── tag.h │ │ ├── checkout.h │ │ ├── branch.h │ │ ├── oidarray.h │ │ ├── diff_tform.h │ │ ├── signature.h │ │ ├── reflog.h │ │ ├── fetchhead.h │ │ ├── diff_xdiff.h │ │ ├── worktree.h │ │ ├── mailmap.h │ │ ├── proxy.c │ │ └── trace.h │ └── README.md │ ├── .devcontainer │ ├── devcontainer.json │ └── setup.sh │ ├── .gitignore │ ├── ci │ ├── setup-osx-benchmark.sh │ ├── docker │ │ ├── docurium │ │ └── fedora │ ├── setup-osx-build.sh │ ├── setup-sanitizer-build.sh │ ├── setup-win32-benchmark.sh │ ├── setup-ubuntu-benchmark.sh │ ├── setup-win32-build.sh │ └── setup-mingw-build.sh │ ├── .gitattributes │ ├── deps │ ├── pcre │ │ ├── COPYING │ │ └── cmake │ │ │ └── FindEditline.cmake │ ├── llhttp │ │ ├── CMakeLists.txt │ │ └── LICENSE-MIT │ ├── zlib │ │ ├── CMakeLists.txt │ │ ├── inffast.h │ │ └── LICENSE │ ├── ntlmclient │ │ ├── util.h │ │ ├── crypt_commoncrypto.h │ │ ├── unicode_builtin.h │ │ ├── crypt_mbedtls.h │ │ ├── unicode_iconv.h │ │ ├── compat.h │ │ ├── util.c │ │ └── unicode.h │ ├── winhttp │ │ ├── winhttp64.def │ │ ├── winhttp.def │ │ └── CMakeLists.txt │ └── xdiff │ │ ├── xprepare.h │ │ ├── xinclude.h │ │ └── xemit.h │ ├── package.json │ ├── api.docurium │ ├── cmake │ ├── EnableWarnings.cmake │ ├── AddClarTest.cmake │ ├── SelectXdiff.cmake │ ├── FindLibSSH2.cmake │ ├── Findfutimens.cmake │ ├── CheckPrototypeDefinitionSafe.cmake │ ├── SanitizeBool.cmake │ ├── FindGSSFramework.cmake │ ├── FindCoreFoundation.cmake │ ├── FindStatNsec.cmake │ ├── FindSecurity.cmake │ ├── IdeSplitSources.cmake │ ├── ExperimentalFeatures.cmake │ ├── AddCFlagIfSupported.cmake │ └── FindPkgLibraries.cmake │ ├── .editorconfig │ ├── include │ └── git2 │ │ ├── sys │ │ ├── cred.h │ │ ├── reflog.h │ │ └── openssl.h │ │ ├── cred_helpers.h │ │ ├── experimental.h │ │ ├── oidarray.h │ │ ├── strarray.h │ │ ├── transport.h │ │ └── net.h │ ├── SECURITY.md │ ├── .github │ ├── ISSUE_TEMPLATE │ └── release.yml │ ├── .vscode │ ├── tasks.json │ └── launch.json │ └── .HEADER ├── src ├── test │ └── embed │ │ └── SekienAkashita.jpg ├── test.zig ├── testnet.zig └── lib.zig ├── .github └── workflows │ └── main.yaml └── LICENSE /.gitattributes: -------------------------------------------------------------------------------- 1 | deps/* linguist-vendored 2 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/.gitignore: -------------------------------------------------------------------------------- 1 | /Makefile 2 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/blast/test.txt: -------------------------------------------------------------------------------- 1 | AIAIAIAIAIAIA -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/p256-m/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | -------------------------------------------------------------------------------- /deps/test/mbedtls/pkgconfig/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | *.pc 3 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/win32/precompiled.c: -------------------------------------------------------------------------------- 1 | #include "precompiled.h" 2 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/win32/precompiled.c: -------------------------------------------------------------------------------- 1 | #include "precompiled.h" 2 | -------------------------------------------------------------------------------- /deps/test/mbedtls/.globalrc: -------------------------------------------------------------------------------- 1 | default:\ 2 | :langmap=c\:.c.h.function:\ 3 | 4 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/infback9/README: -------------------------------------------------------------------------------- 1 | See infback9.h for what this is and how to use it. 2 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/win32/precompiled.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "common.h" 4 | -------------------------------------------------------------------------------- /deps/test/mbedtls/include/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | *.sln 3 | *.vcxproj 4 | mbedtls/check_config 5 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(everest) 2 | add_subdirectory(p256-m) 3 | -------------------------------------------------------------------------------- /deps/test/zlib/zlib.3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/zlib.3.pdf -------------------------------------------------------------------------------- /deps/test/libgit2/.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- 1 | { 2 | "postCreateCommand": "bash .devcontainer/setup.sh" 3 | } 4 | -------------------------------------------------------------------------------- /src/test/embed/SekienAkashita.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/src/test/embed/SekienAkashita.jpg -------------------------------------------------------------------------------- /deps/test/libgit2/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | .DS_Store 3 | *~ 4 | .*.swp 5 | /tags 6 | CMakeSettings.json 7 | .vs 8 | .idea 9 | -------------------------------------------------------------------------------- /deps/test/libgit2/ci/setup-osx-benchmark.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ex 4 | 5 | brew update 6 | brew install hyperfine 7 | -------------------------------------------------------------------------------- /deps/test/mbedtls/.mypy.ini: -------------------------------------------------------------------------------- 1 | [mypy] 2 | mypy_path = scripts 3 | namespace_packages = True 4 | warn_unused_configs = True 5 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/blast/test.pk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/blast/test.pk -------------------------------------------------------------------------------- /deps/test/zlib/contrib/blast/README: -------------------------------------------------------------------------------- 1 | Read blast.h for purpose and usage. 2 | 3 | Mark Adler 4 | madler@alumni.caltech.edu 5 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/puff/zeros.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/puff/zeros.raw -------------------------------------------------------------------------------- /deps/test/mbedtls/cmake/MbedTLSConfig.cmake.in: -------------------------------------------------------------------------------- 1 | @PACKAGE_INIT@ 2 | 3 | include("${CMAKE_CURRENT_LIST_DIR}/MbedTLSTargets.cmake") 4 | -------------------------------------------------------------------------------- /deps/test/mbedtls/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "framework"] 2 | path = framework 3 | url = https://github.com/Mbed-TLS/mbedtls-framework 4 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/dotzlib/DotZLib.chm -------------------------------------------------------------------------------- /deps/test/mbedtls/.gitattributes: -------------------------------------------------------------------------------- 1 | # Classify all '.function' files as C for syntax highlighting purposes 2 | *.function linguist-language=C 3 | -------------------------------------------------------------------------------- /deps/test/zlib/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -@echo "Please use ./configure first. Thank you." 3 | 4 | distclean: 5 | make -f Makefile.in distclean 6 | -------------------------------------------------------------------------------- /deps/test/libgit2/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | ci/**/*.sh text eol=lf 3 | script/**/*.sh text eol=lf 4 | tests/resources/** linguist-vendored 5 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib/DotZLib.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/dotzlib/DotZLib/DotZLib.cs -------------------------------------------------------------------------------- /src/test.zig: -------------------------------------------------------------------------------- 1 | comptime { 2 | _ = @import("test/main.zig"); 3 | _ = @import("test/repo.zig"); 4 | _ = @import("test/pack.zig"); 5 | } 6 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/pcre/COPYING: -------------------------------------------------------------------------------- 1 | PCRE LICENCE 2 | 3 | Please see the file LICENCE in the PCRE distribution for licensing details. 4 | 5 | End 6 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib/CodecBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/dotzlib/DotZLib/CodecBase.cs -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib/Deflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/dotzlib/DotZLib/Deflater.cs -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib/Inflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/dotzlib/DotZLib/Inflater.cs -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib/GZipStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/dotzlib/DotZLib/GZipStream.cs -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/radarroark/xit/HEAD/deps/test/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs -------------------------------------------------------------------------------- /deps/test/mbedtls/DartConfiguration.tcl: -------------------------------------------------------------------------------- 1 | Site: localhost 2 | BuildName: Mbed TLS-test 3 | CoverageCommand: /usr/bin/gcov 4 | MemoryCheckCommand: /usr/bin/valgrind 5 | -------------------------------------------------------------------------------- /deps/test/zlib/win32/VisualC.txt: -------------------------------------------------------------------------------- 1 | 2 | To build zlib using the Microsoft Visual C++ environment, 3 | use the appropriate project from the contrib/vstudio/ directory. 4 | -------------------------------------------------------------------------------- /deps/test/zlib/old/README: -------------------------------------------------------------------------------- 1 | This directory contains files that have not been updated for zlib 1.2.x 2 | 3 | (Volunteers are encouraged to help clean this up. Thanks.) 4 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/minizip/MiniZip64_Changes.txt: -------------------------------------------------------------------------------- 1 | 2 | MiniZip 1.1 was derived from MiniZip at version 1.01f 3 | 4 | Change in 1.0 (Okt 2009) 5 | - **TODO - Add history** 6 | 7 | -------------------------------------------------------------------------------- /deps/test/libgit2/.devcontainer/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | sudo apt-get update 5 | sudo apt-get -y --no-install-recommends install cmake 6 | 7 | mkdir build 8 | cd build 9 | cmake .. -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/Makefile.inc: -------------------------------------------------------------------------------- 1 | THIRDPARTY_DIR := $(dir $(lastword $(MAKEFILE_LIST))) 2 | include $(THIRDPARTY_DIR)/everest/Makefile.inc 3 | include $(THIRDPARTY_DIR)/p256-m/Makefile.inc 4 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/blast/Makefile: -------------------------------------------------------------------------------- 1 | blast: blast.c blast.h 2 | cc -DTEST -o blast blast.c 3 | 4 | test: blast 5 | blast < test.pk | cmp - test.txt 6 | 7 | clean: 8 | rm -f blast blast.o 9 | -------------------------------------------------------------------------------- /deps/test/libgit2/ci/docker/docurium: -------------------------------------------------------------------------------- 1 | ARG BASE=ubuntu:bionic 2 | 3 | FROM ${BASE} 4 | RUN apt update && apt install -y cmake pkg-config ruby ruby-dev llvm libclang-dev libssl-dev python-pygments 5 | RUN gem install docurium 6 | -------------------------------------------------------------------------------- /deps/test/libgit2/ci/setup-osx-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ex 4 | 5 | brew update 6 | brew install pkgconfig libssh2 ninja 7 | 8 | ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libLeaksAtExit.dylib /usr/local/lib 9 | -------------------------------------------------------------------------------- /deps/test/libgit2/ci/setup-sanitizer-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ex 4 | 5 | # Linux updated its ASLR randomization in a way that is incompatible with 6 | # TSAN. See https://github.com/google/sanitizers/issues/1716 7 | sudo sysctl vm.mmap_rnd_bits=28 8 | -------------------------------------------------------------------------------- /deps/test/zlib/nintendods/README: -------------------------------------------------------------------------------- 1 | This Makefile requires devkitARM (http://www.devkitpro.org/category/devkitarm/) and works inside "contrib/nds". It is based on a devkitARM template. 2 | 3 | Eduardo Costa 4 | January 3, 2009 5 | 6 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/delphi/ZLibConst.pas: -------------------------------------------------------------------------------- 1 | unit ZLibConst; 2 | 3 | interface 4 | 5 | resourcestring 6 | sTargetBufferTooSmall = 'ZLib error: target buffer may be too small'; 7 | sInvalidStreamOp = 'Invalid stream operation'; 8 | 9 | implementation 10 | 11 | end. 12 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/testzlib/testzlib.txt: -------------------------------------------------------------------------------- 1 | To build testzLib with Visual Studio 2005: 2 | 3 | copy to a directory file from : 4 | - root of zLib tree 5 | - contrib/testzlib 6 | - contrib/masmx86 7 | - contrib/masmx64 8 | - contrib/vstudio/vc7 9 | 10 | and open testzlib8.sln -------------------------------------------------------------------------------- /src/testnet.zig: -------------------------------------------------------------------------------- 1 | comptime { 2 | _ = @import("test/net.zig"); 3 | 4 | // this has nothing to do with networking, 5 | // but it's here because it needs to shell 6 | // out to ssh, and I don't want the regular 7 | // tests to have to do that 8 | _ = @import("test/sign.zig"); 9 | } 10 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/llhttp/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | file(GLOB SRC_LLHTTP "*.c" "*.h") 2 | list(SORT SRC_LLHTTP) 3 | 4 | add_library(llhttp OBJECT ${SRC_LLHTTP}) 5 | 6 | if(NOT MSVC) 7 | set_source_files_properties(api.c http.c llhttp.c PROPERTIES COMPILE_FLAGS "-Wno-unused-parameter -Wno-missing-declarations") 8 | endif() 9 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/.gitignore: -------------------------------------------------------------------------------- 1 | libmbed* 2 | *.sln 3 | *.vcxproj 4 | 5 | ####START_COMMENTED_GENERATED_FILES### 6 | #/error.c 7 | #/version_features.c 8 | #/ssl_debug_helpers_generated.c 9 | #/psa_crypto_driver_wrappers.h 10 | #/psa_crypto_driver_wrappers_no_static.c 11 | ####END_COMMENTED_GENERATED_FILES### 12 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/include/everest/kremlin/internal/wasmsupport.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. 2 | Licensed under the Apache 2.0 License. */ 3 | 4 | /* This file is automatically included when compiling with -wasm -d force-c */ 5 | #define WasmSupport_check_buffer_size(X) 6 | -------------------------------------------------------------------------------- /deps/test/libgit2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "libgit2", 3 | "version": "1.8.4", 4 | "repo": "https://github.com/libgit2/libgit2", 5 | "description": " A cross-platform, linkable library implementation of Git that you can use in your application.", 6 | "install": "mkdir build && cd build && cmake .. && cmake --build ." 7 | } 8 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/untgz/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS=-g 3 | 4 | untgz: untgz.o ../../libz.a 5 | $(CC) $(CFLAGS) -o untgz untgz.o -L../.. -lz 6 | 7 | untgz.o: untgz.c ../../zlib.h 8 | $(CC) $(CFLAGS) -c -I../.. untgz.c 9 | 10 | ../../libz.a: 11 | cd ../..; ./configure; make 12 | 13 | clean: 14 | rm -f untgz untgz.o *~ 15 | -------------------------------------------------------------------------------- /deps/test/zlib/zlib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | sharedlibdir=@sharedlibdir@ 5 | includedir=@includedir@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /deps/test/mbedtls/.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Enhancement request 3 | about: To request an enhancement, please fill this form. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | ### Suggested enhancement 11 | 12 | 13 | 14 | ### Justification 15 | 16 | Mbed TLS needs this because 17 | 18 | -------------------------------------------------------------------------------- /deps/test/libgit2/api.docurium: -------------------------------------------------------------------------------- 1 | { 2 | "name": "libgit2", 3 | "github": "libgit2/libgit2", 4 | "input": "include", 5 | "prefix": "git_", 6 | "output": "docs", 7 | "branch": "gh-pages", 8 | "examples": "examples", 9 | "legacy": { 10 | "input": {"src/git": ["v0.1.0"], 11 | "src/git2": ["v0.2.0", "v0.3.0"]} 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/p256-m/Makefile.inc: -------------------------------------------------------------------------------- 1 | THIRDPARTY_INCLUDES+=-I$(THIRDPARTY_DIR)/p256-m/p256-m/include -I$(THIRDPARTY_DIR)/p256-m/p256-m/include/p256-m -I$(THIRDPARTY_DIR)/p256-m/p256-m_driver_interface 2 | 3 | THIRDPARTY_CRYPTO_OBJECTS+= \ 4 | $(THIRDPARTY_DIR)/p256-m//p256-m_driver_entrypoints.o \ 5 | $(THIRDPARTY_DIR)/p256-m//p256-m/p256-m.o 6 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/minizip/minizip.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@/minizip 5 | 6 | Name: minizip 7 | Description: Minizip zip file manipulation library 8 | Requires: 9 | Version: @PACKAGE_VERSION@ 10 | Libs: -L${libdir} -lminizip 11 | Libs.private: -lz 12 | Cflags: -I${includedir} 13 | -------------------------------------------------------------------------------- /deps/test/mbedtls/pkgconfig/mbedcrypto.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | includedir=@PKGCONFIG_INCLUDEDIR@ 3 | libdir=@PKGCONFIG_LIBDIR@ 4 | 5 | Name: @PROJECT_NAME@ 6 | Description: @PKGCONFIG_PROJECT_DESCRIPTION@ 7 | URL: @PKGCONFIG_PROJECT_HOMEPAGE_URL@ 8 | Version: @PROJECT_VERSION@ 9 | Cflags: -I"${includedir}" 10 | Libs: -L"${libdir}" -lmbedcrypto 11 | -------------------------------------------------------------------------------- /deps/test/libgit2/ci/setup-win32-benchmark.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ex 4 | 5 | choco install hyperfine zip 6 | 7 | CHOCO_PATH=$(mktemp -d) 8 | curl -L https://github.com/ethomson/PurgeStandbyList/releases/download/v1.0/purgestandbylist.1.0.0.nupkg -o "${CHOCO_PATH}/purgestandbylist.1.0.0.nupkg" 9 | choco install purgestandbylist -s $(cygpath -w "${CHOCO_PATH}") 10 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/EnableWarnings.cmake: -------------------------------------------------------------------------------- 1 | macro(ENABLE_WARNINGS flag) 2 | add_c_flag_if_supported(-W${flag}) 3 | endmacro() 4 | 5 | macro(DISABLE_WARNINGS flag) 6 | add_c_flag_if_supported(-Wno-${flag}) 7 | endmacro() 8 | 9 | if(ENABLE_WERROR) 10 | if(MSVC) 11 | add_compile_options(-WX) 12 | else() 13 | add_c_flag_if_supported(-Werror) 14 | endif() 15 | endif() 16 | -------------------------------------------------------------------------------- /deps/test/zlib/zlib.pc.cmakein: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=@INSTALL_LIB_DIR@ 4 | sharedlibdir=@INSTALL_LIB_DIR@ 5 | includedir=@INSTALL_INC_DIR@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/Makefile.inc: -------------------------------------------------------------------------------- 1 | THIRDPARTY_INCLUDES+=-I$(THIRDPARTY_DIR)/everest/include -I$(THIRDPARTY_DIR)/everest/include/everest -I$(THIRDPARTY_DIR)/everest/include/everest/kremlib 2 | 3 | THIRDPARTY_CRYPTO_OBJECTS+= \ 4 | $(THIRDPARTY_DIR)/everest/library/everest.o \ 5 | $(THIRDPARTY_DIR)/everest/library/x25519.o \ 6 | $(THIRDPARTY_DIR)/everest/library/Hacl_Curve25519_joined.o 7 | -------------------------------------------------------------------------------- /deps/test/mbedtls/pkgconfig/mbedx509.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | includedir=@PKGCONFIG_INCLUDEDIR@ 3 | libdir=@PKGCONFIG_LIBDIR@ 4 | 5 | Name: @PROJECT_NAME@ 6 | Description: @PKGCONFIG_PROJECT_DESCRIPTION@ 7 | URL: @PKGCONFIG_PROJECT_HOMEPAGE_URL@ 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: mbedcrypto 10 | Cflags: -I"${includedir}" 11 | Libs: -L"${libdir}" -lmbedx509 12 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/untgz/Makefile.msc: -------------------------------------------------------------------------------- 1 | CC=cl 2 | CFLAGS=-MD 3 | 4 | untgz.exe: untgz.obj ..\..\zlib.lib 5 | $(CC) $(CFLAGS) untgz.obj ..\..\zlib.lib 6 | 7 | untgz.obj: untgz.c ..\..\zlib.h 8 | $(CC) $(CFLAGS) -c -I..\.. untgz.c 9 | 10 | ..\..\zlib.lib: 11 | cd ..\.. 12 | $(MAKE) -f win32\makefile.msc 13 | cd contrib\untgz 14 | 15 | clean: 16 | -del untgz.obj 17 | -del untgz.exe 18 | -------------------------------------------------------------------------------- /deps/test/mbedtls/pkgconfig/mbedtls.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | includedir=@PKGCONFIG_INCLUDEDIR@ 3 | libdir=@PKGCONFIG_LIBDIR@ 4 | 5 | Name: @PROJECT_NAME@ 6 | Description: @PKGCONFIG_PROJECT_DESCRIPTION@ 7 | URL: @PKGCONFIG_PROJECT_HOMEPAGE_URL@ 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: mbedcrypto mbedx509 10 | Cflags: -I"${includedir}" 11 | Libs: -L"${libdir}" -lmbedtls 12 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/AddClarTest.cmake: -------------------------------------------------------------------------------- 1 | function(ADD_CLAR_TEST project name) 2 | if(NOT USE_LEAK_CHECKER STREQUAL "OFF") 3 | add_test(${name} "${PROJECT_SOURCE_DIR}/script/${USE_LEAK_CHECKER}.sh" "${PROJECT_BINARY_DIR}/${project}" ${ARGN}) 4 | else() 5 | add_test(${name} "${PROJECT_BINARY_DIR}/${project}" ${ARGN}) 6 | endif() 7 | endfunction(ADD_CLAR_TEST) 8 | -------------------------------------------------------------------------------- /deps/test/mbedtls/configs/ext/config_tfm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Empty placeholder 3 | * 4 | * Copyright The Mbed TLS Contributors 5 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 6 | */ 7 | 8 | /* 9 | * This file is intentionally empty. 10 | * 11 | * Having an empty file here allows us to build the TF-M config, which references this file, 12 | * without making any changes to the TF-M config. 13 | */ 14 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/experimental.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_experimental_h__ 9 | #define INCLUDE_experimental_h__ 10 | 11 | #cmakedefine GIT_EXPERIMENTAL_SHA256 1 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/zlib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | disable_warnings(implicit-fallthrough) 2 | add_definitions(-DNO_VIZ -DSTDC -DNO_GZIP -DHAVE_SYS_TYPES_H -DHAVE_STDINT_H -DHAVE_STDDEF_H) 3 | 4 | if(MINGW OR MSYS) 5 | add_definitions(-DZ_HAVE_UNISTD_H -D_LFS64_LARGEFILE -D_LARGEFILE64_SOURCE=1) 6 | endif() 7 | 8 | file(GLOB SRC_ZLIB "*.c" "*.h") 9 | list(SORT SRC_ZLIB) 10 | include_directories(".") 11 | add_library(zlib OBJECT ${SRC_ZLIB}) 12 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/attr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_attr_h__ 8 | #define INCLUDE_attr_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "attr_file.h" 13 | #include "attrcache.h" 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/test/mbedtls/configs/ext/mbedtls_entropy_nv_seed_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Empty placeholder 3 | * 4 | * Copyright The Mbed TLS Contributors 5 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 6 | */ 7 | 8 | /* 9 | * This file is intentionally empty. 10 | * 11 | * Having an empty file here allows us to build the TF-M config, which references this file, 12 | * without making any changes to the TF-M config. 13 | */ 14 | -------------------------------------------------------------------------------- /deps/test/mbedtls/visualc/VS2017/.gitignore: -------------------------------------------------------------------------------- 1 | # Files that may be left over from check-generated-files.sh 2 | /*.bak 3 | 4 | # Visual Studio artifacts 5 | /.localhistory/ 6 | /.vs/ 7 | /Debug/ 8 | /Release/ 9 | /*.vcxproj.filters 10 | /*.vcxproj.user 11 | 12 | ####START_COMMENTED_GENERATED_FILES### 13 | ## Files automatically generated by generate_visualc_files.pl 14 | #/mbedTLS.sln 15 | #/*.vcxproj 16 | ####END_COMMENTED_GENERATED_FILES### 17 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/README.md: -------------------------------------------------------------------------------- 1 | # libgit2 sources 2 | 3 | This is the source that makes up the core of libgit2 and its related 4 | projects. 5 | 6 | * `cli` 7 | A git-compatible command-line interface that uses libgit2. 8 | * `libgit2` 9 | This is the libgit2 project, a cross-platform, linkable library 10 | implementation of Git that you can use in your application. 11 | * `util` 12 | A shared utility library for these projects. 13 | -------------------------------------------------------------------------------- /deps/test/mbedtls/.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Mbed TLS security team 4 | url: mailto:mbed-tls-security@lists.trustedfirmware.org 5 | about: Report a security vulnerability. 6 | - name: Mbed TLS mailing list 7 | url: https://lists.trustedfirmware.org/mailman3/lists/mbed-tls.lists.trustedfirmware.org 8 | about: Mbed TLS community support and general discussion. 9 | -------------------------------------------------------------------------------- /deps/test/libgit2/.editorconfig: -------------------------------------------------------------------------------- 1 | ; Check http://editorconfig.org/ for more informations 2 | root = true 3 | 4 | [*] 5 | indent_style = tab 6 | tab_width = 8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [*.yml] 11 | indent_style = space 12 | indent_size = 2 13 | 14 | [*.md] 15 | indent_style = space 16 | indent_size = 4 17 | trim_trailing_whitespace = false 18 | 19 | [*.py] 20 | indent_style = space 21 | indent_size = 4 22 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/win32/precompiled.h: -------------------------------------------------------------------------------- 1 | #include "git2_util.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | #include 13 | #include 14 | 15 | #include 16 | #include 17 | #ifdef GIT_THREADS 18 | #include "win32/thread.h" 19 | #endif 20 | 21 | #include "git2.h" 22 | -------------------------------------------------------------------------------- /deps/test/libgit2/ci/setup-ubuntu-benchmark.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ex 4 | 5 | sudo apt-get update 6 | sudo apt-get install -y --no-install-recommends \ 7 | cargo \ 8 | cmake \ 9 | gcc \ 10 | git \ 11 | krb5-user \ 12 | libkrb5-dev \ 13 | libssl-dev \ 14 | libz-dev \ 15 | make \ 16 | ninja-build \ 17 | pkgconf 18 | 19 | wget https://github.com/sharkdp/hyperfine/releases/download/v1.12.0/hyperfine_1.12.0_amd64.deb 20 | sudo dpkg -i hyperfine_1.12.0_amd64.deb 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/win32/error.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_win32_error_h__ 9 | #define INCLUDE_win32_error_h__ 10 | 11 | #include "git2_util.h" 12 | 13 | extern char *git_win32_get_error_message(DWORD error_code); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/test/zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start); 12 | -------------------------------------------------------------------------------- /deps/test/libgit2/include/git2/sys/cred.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_sys_git_cred_h__ 8 | #define INCLUDE_sys_git_cred_h__ 9 | 10 | /* These declarations have moved. */ 11 | #ifndef GIT_DEPRECATE_HARD 12 | # include "git2/sys/credential.h" 13 | #endif 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start); 12 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/indexer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_indexer_h__ 8 | #define INCLUDE_indexer_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/indexer.h" 13 | 14 | extern void git_indexer__set_fsync(git_indexer *idx, int do_fsync); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/SelectXdiff.cmake: -------------------------------------------------------------------------------- 1 | # Optional external dependency: xdiff 2 | if(USE_XDIFF STREQUAL "system") 3 | message(FATAL_ERROR "external/system xdiff is not yet supported") 4 | else() 5 | add_subdirectory("${PROJECT_SOURCE_DIR}/deps/xdiff" "${PROJECT_BINARY_DIR}/deps/xdiff") 6 | list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${PROJECT_SOURCE_DIR}/deps/xdiff") 7 | list(APPEND LIBGIT2_DEPENDENCY_OBJECTS "$") 8 | add_feature_info(xdiff ON "xdiff support (bundled)") 9 | endif() 10 | -------------------------------------------------------------------------------- /deps/test/libgit2/include/git2/cred_helpers.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_git_cred_helpers_h__ 8 | #define INCLUDE_git_cred_helpers_h__ 9 | 10 | /* These declarations have moved. */ 11 | #ifndef GIT_DEPRECATE_HARD 12 | # include "git2/credential_helpers.h" 13 | #endif 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/transaction.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_transaction_h__ 8 | #define INCLUDE_transaction_h__ 9 | 10 | #include "common.h" 11 | 12 | int git_transaction_config_new( 13 | git_transaction **out, 14 | git_config *cfg, 15 | void *data); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/hash/builtin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_hash_builtin_h__ 9 | #define INCLUDE_hash_builtin_h__ 10 | 11 | #include "hash/sha.h" 12 | 13 | #include "rfc6234/sha.h" 14 | 15 | struct git_hash_sha256_ctx { 16 | SHA256Context c; 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/FindLibSSH2.cmake: -------------------------------------------------------------------------------- 1 | # LIBSSH2_FOUND - system has the libssh2 library 2 | # LIBSSH2_INCLUDE_DIR - the libssh2 include directory 3 | # LIBSSH2_LIBRARY - the libssh2 library name 4 | 5 | find_path(LIBSSH2_INCLUDE_DIR libssh2.h) 6 | 7 | find_library(LIBSSH2_LIBRARY NAMES ssh2 libssh2) 8 | 9 | include(FindPackageHandleStandardArgs) 10 | find_package_handle_standard_args(LibSSH2 11 | REQUIRED_VARS LIBSSH2_LIBRARY LIBSSH2_INCLUDE_DIR) 12 | 13 | mark_as_advanced(LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY) 14 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/allocators/stdalloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_allocators_stdalloc_h__ 9 | #define INCLUDE_allocators_stdalloc_h__ 10 | 11 | #include "git2_util.h" 12 | 13 | #include "alloc.h" 14 | 15 | int git_stdalloc_init_allocator(git_allocator *allocator); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/hash/collisiondetect.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_hash_collisiondetect_h__ 9 | #define INCLUDE_hash_collisiondetect_h__ 10 | 11 | #include "hash/sha.h" 12 | 13 | #include "sha1dc/sha1.h" 14 | 15 | struct git_hash_sha1_ctx { 16 | SHA1_CTX c; 17 | }; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/diff_parse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_diff_parse_h__ 8 | #define INCLUDE_diff_parse_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "diff.h" 13 | 14 | typedef struct { 15 | struct git_diff base; 16 | 17 | git_vector patches; 18 | } git_diff_parsed; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/settings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_settings_h__ 8 | #define INCLUDE_settings_h__ 9 | 10 | extern int git_settings_global_init(void); 11 | 12 | extern const char *git_settings__user_agent(void); 13 | extern const char *git_settings__user_agent_product(void); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/transports/http.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_transports_http_h__ 9 | #define INCLUDE_transports_http_h__ 10 | 11 | #include "settings.h" 12 | #include "httpclient.h" 13 | 14 | #define GIT_HTTP_REPLAY_MAX 15 15 | 16 | extern bool git_http__expect_continue; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/allocators/debugalloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_allocators_debugalloc_h__ 9 | #define INCLUDE_allocators_debugalloc_h__ 10 | 11 | #include "git2_util.h" 12 | 13 | #include "alloc.h" 14 | 15 | int git_debugalloc_init_allocator(git_allocator *allocator); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/ntlmclient/util.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Edward Thomson. All rights reserved. 3 | * 4 | * This file is part of ntlmclient, distributed under the MIT license. 5 | * For full terms and copyright information, and for third-party 6 | * copyright information, see the included LICENSE.txt file. 7 | */ 8 | 9 | #ifndef PRIVATE_UTIL_H__ 10 | #define PRIVATE_UTIL_H__ 11 | 12 | extern void ntlm_memzero(void *data, size_t size); 13 | extern uint64_t ntlm_htonll(uint64_t value); 14 | 15 | #endif /* PRIVATE_UTIL_H__ */ 16 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/diff_stats.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_diff_stats_h__ 8 | #define INCLUDE_diff_stats_h__ 9 | 10 | #include "common.h" 11 | 12 | int git_diff__stats_to_buf( 13 | git_str *out, 14 | const git_diff_stats *stats, 15 | git_diff_stats_format_t format, 16 | size_t width); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/allocators/win32_leakcheck.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_allocators_win32_leakcheck_h 9 | #define INCLUDE_allocators_win32_leakcheck_h 10 | 11 | #include "git2_util.h" 12 | 13 | #include "alloc.h" 14 | 15 | int git_win32_leakcheck_init_allocator(git_allocator *allocator); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /deps/test/zlib/.gitignore: -------------------------------------------------------------------------------- 1 | *.diff 2 | *.patch 3 | *.orig 4 | *.rej 5 | 6 | *~ 7 | *.a 8 | *.lo 9 | *.o 10 | *.dylib 11 | 12 | *.gcda 13 | *.gcno 14 | *.gcov 15 | 16 | /example 17 | /example64 18 | /examplesh 19 | **/libz.so* 20 | /minigzip 21 | /minigzip64 22 | /minigzipsh 23 | /zlib.pc 24 | /configure.log 25 | 26 | .DS_Store 27 | .vs 28 | *.user 29 | *.nupkg 30 | contrib/vstudio/vc143/x86 31 | contrib/vstudio/vc143/x64 32 | contrib/vstudio/vc143/arm 33 | contrib/vstudio/vc143/arm64 34 | contrib/nuget/bin 35 | contrib/nuget/obj 36 | *.included 37 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/varint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_varint_h__ 8 | #define INCLUDE_varint_h__ 9 | 10 | #include "git2_util.h" 11 | 12 | #include 13 | 14 | extern int git_encode_varint(unsigned char *, size_t, uintmax_t); 15 | extern uintmax_t git_decode_varint(const unsigned char *, size_t *); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/cmd.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "common.h" 9 | #include "cmd.h" 10 | 11 | const cli_cmd_spec *cli_cmd_spec_byname(const char *name) 12 | { 13 | const cli_cmd_spec *cmd; 14 | 15 | for (cmd = cli_cmds; cmd->name; cmd++) { 16 | if (!strcmp(cmd->name, name)) 17 | return cmd; 18 | } 19 | 20 | return NULL; 21 | } 22 | -------------------------------------------------------------------------------- /deps/test/mbedtls/include/mbedtls/private_access.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file private_access.h 3 | * 4 | * \brief Macro wrapper for struct's members. 5 | */ 6 | /* 7 | * Copyright The Mbed TLS Contributors 8 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 | */ 10 | 11 | #ifndef MBEDTLS_PRIVATE_ACCESS_H 12 | #define MBEDTLS_PRIVATE_ACCESS_H 13 | 14 | #ifndef MBEDTLS_ALLOW_PRIVATE_ACCESS 15 | #define MBEDTLS_PRIVATE(member) private_##member 16 | #else 17 | #define MBEDTLS_PRIVATE(member) member 18 | #endif 19 | 20 | #endif /* MBEDTLS_PRIVATE_ACCESS_H */ 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/proxy.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_proxy_h__ 8 | #define INCLUDE_proxy_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/proxy.h" 13 | 14 | extern int git_proxy_options_dup(git_proxy_options *tgt, const git_proxy_options *src); 15 | extern void git_proxy_options_dispose(git_proxy_options *opts); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/psa_crypto_client.c: -------------------------------------------------------------------------------- 1 | /* 2 | * PSA crypto client code 3 | */ 4 | /* 5 | * Copyright The Mbed TLS Contributors 6 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 7 | */ 8 | 9 | #include "common.h" 10 | #include "psa/crypto.h" 11 | 12 | #if defined(MBEDTLS_PSA_CRYPTO_CLIENT) 13 | 14 | #include 15 | #include "mbedtls/platform.h" 16 | 17 | void psa_reset_key_attributes(psa_key_attributes_t *attributes) 18 | { 19 | memset(attributes, 0, sizeof(*attributes)); 20 | } 21 | 22 | #endif /* MBEDTLS_PSA_CRYPTO_CLIENT */ 23 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/ssl_client.h: -------------------------------------------------------------------------------- 1 | /** 2 | * TLS 1.2 and 1.3 client-side functions 3 | * 4 | * Copyright The Mbed TLS Contributors 5 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 6 | */ 7 | 8 | #ifndef MBEDTLS_SSL_CLIENT_H 9 | #define MBEDTLS_SSL_CLIENT_H 10 | 11 | #include "common.h" 12 | 13 | #if defined(MBEDTLS_SSL_TLS_C) 14 | #include "ssl_misc.h" 15 | #endif 16 | 17 | #include 18 | 19 | MBEDTLS_CHECK_RETURN_CRITICAL 20 | int mbedtls_ssl_write_client_hello(mbedtls_ssl_context *ssl); 21 | 22 | #endif /* MBEDTLS_SSL_CLIENT_H */ 23 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/Findfutimens.cmake: -------------------------------------------------------------------------------- 1 | include(EnableWarnings) 2 | 3 | if(APPLE) 4 | # We cannot simply CHECK_FUNCTION_EXISTS on macOS because 5 | # MACOSX_DEPLOYMENT_TARGET may be set to a version in the past 6 | # that doesn't have futimens. Instead we need to enable warnings 7 | # as errors, then check for the symbol existing in `sys/stat.h`, 8 | # then reset warnings as errors. 9 | enable_warnings(error) 10 | check_symbol_exists(futimens sys/stat.h HAVE_FUTIMENS) 11 | disable_warnings(error) 12 | else() 13 | check_function_exists(futimens HAVE_FUTIMENS) 14 | endif() 15 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/iostream3/TODO: -------------------------------------------------------------------------------- 1 | Possible upgrades to gzfilebuf: 2 | 3 | - The ability to do putback (e.g. putbackfail) 4 | 5 | - The ability to seek (zlib supports this, but could be slow/tricky) 6 | 7 | - Simultaneous read/write access (does it make sense?) 8 | 9 | - Support for ios_base::ate open mode 10 | 11 | - Locale support? 12 | 13 | - Check public interface to see which calls give problems 14 | (due to dependence on library internals) 15 | 16 | - Override operator<<(ostream&, gzfilebuf*) to allow direct copying 17 | of stream buffer to stream ( i.e. os << is.rdbuf(); ) 18 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/ntlmclient/crypt_commoncrypto.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Edward Thomson. All rights reserved. 3 | * 4 | * This file is part of ntlmclient, distributed under the MIT license. 5 | * For full terms and copyright information, and for third-party 6 | * copyright information, see the included LICENSE.txt file. 7 | */ 8 | 9 | #ifndef PRIVATE_CRYPT_COMMONCRYPTO_H__ 10 | #define PRIVATE_CRYPT_COMMONCRYPTO_H__ 11 | 12 | #include 13 | 14 | struct ntlm_crypt_ctx { 15 | CCHmacContext hmac; 16 | }; 17 | 18 | #endif /* PRIVATE_CRYPT_COMMONCRYPTO_H__ */ 19 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/ntlmclient/unicode_builtin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Edward Thomson. All rights reserved. 3 | * 4 | * This file is part of ntlmclient, distributed under the MIT license. 5 | * For full terms and copyright information, and for third-party 6 | * copyright information, see the included LICENSE.txt file. 7 | */ 8 | 9 | #ifndef PRIVATE_UNICODE_BUILTIN_H__ 10 | #define PRIVATE_UNICODE_BUILTIN_H__ 11 | 12 | #include 13 | #include 14 | 15 | #include "ntlmclient.h" 16 | 17 | struct ntlm_unicode_ctx { 18 | }; 19 | 20 | #endif /* PRIVATE_UNICODE_BUILTIN_H__ */ 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/ntlmclient/crypt_mbedtls.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Edward Thomson. All rights reserved. 3 | * 4 | * This file is part of ntlmclient, distributed under the MIT license. 5 | * For full terms and copyright information, and for third-party 6 | * copyright information, see the included LICENSE.txt file. 7 | */ 8 | 9 | #ifndef PRIVATE_CRYPT_MBEDTLS_H__ 10 | #define PRIVATE_CRYPT_MBEDTLS_H__ 11 | 12 | #include "mbedtls/md.h" 13 | 14 | struct ntlm_crypt_ctx { 15 | mbedtls_md_context_t hmac; 16 | unsigned int hmac_initialized : 1; 17 | }; 18 | 19 | #endif /* PRIVATE_CRYPT_MBEDTLS_H__ */ 20 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/include/everest/kremlin/internal/builtin.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. 2 | Licensed under the Apache 2.0 License. */ 3 | 4 | #ifndef __KREMLIN_BUILTIN_H 5 | #define __KREMLIN_BUILTIN_H 6 | 7 | /* For alloca, when using KreMLin's -falloca */ 8 | #if (defined(_WIN32) || defined(_WIN64)) 9 | # include 10 | #endif 11 | 12 | /* If some globals need to be initialized before the main, then kremlin will 13 | * generate and try to link last a function with this type: */ 14 | void kremlinit_globals(void); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /deps/test/mbedtls/doxygen/input/doc_mainpage.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file doc_mainpage.h 3 | * 4 | * \brief Main page documentation file. 5 | */ 6 | /* 7 | * 8 | * Copyright The Mbed TLS Contributors 9 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 | */ 11 | 12 | /** 13 | * @mainpage Mbed TLS v3.6.2 API Documentation 14 | * 15 | * This documentation describes the internal structure of Mbed TLS. It was 16 | * automatically generated from specially formatted comment blocks in 17 | * Mbed TLS's source code using Doxygen. (See 18 | * https://www.doxygen.nl for more information on Doxygen) 19 | */ 20 | -------------------------------------------------------------------------------- /deps/test/mbedtls/include/psa/build_info.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file psa/build_info.h 3 | * 4 | * \brief Build-time PSA configuration info 5 | * 6 | * Include this file if you need to depend on the 7 | * configuration options defined in mbedtls_config.h or MBEDTLS_CONFIG_FILE 8 | * in PSA cryptography core specific files. 9 | */ 10 | /* 11 | * Copyright The Mbed TLS Contributors 12 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 13 | */ 14 | 15 | #ifndef PSA_CRYPTO_BUILD_INFO_H 16 | #define PSA_CRYPTO_BUILD_INFO_H 17 | 18 | #include "mbedtls/build_info.h" 19 | 20 | #endif /* PSA_CRYPTO_BUILD_INFO_H */ 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/status.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_status_h__ 8 | #define INCLUDE_status_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "diff.h" 13 | #include "git2/status.h" 14 | #include "git2/diff.h" 15 | 16 | struct git_status_list { 17 | git_status_options opts; 18 | 19 | git_diff *head2idx; 20 | git_diff *idx2wd; 21 | 22 | git_vector paired; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/win32/w32_buffer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_win32_w32_buffer_h__ 8 | #define INCLUDE_win32_w32_buffer_h__ 9 | 10 | #include "git2_util.h" 11 | #include "str.h" 12 | 13 | /** 14 | * Convert a wide character string to UTF-8 and append the results to the 15 | * buffer. 16 | */ 17 | int git_str_put_w(git_str *buf, const wchar_t *string_w, size_t len_w); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/ada/zlib.gpr: -------------------------------------------------------------------------------- 1 | project Zlib is 2 | 3 | for Languages use ("Ada"); 4 | for Source_Dirs use ("."); 5 | for Object_Dir use "."; 6 | for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo"); 7 | 8 | package Compiler is 9 | for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst"); 10 | end Compiler; 11 | 12 | package Linker is 13 | for Default_Switches ("ada") use ("-lz"); 14 | end Linker; 15 | 16 | package Builder is 17 | for Default_Switches ("ada") use ("-s", "-gnatQ"); 18 | end Builder; 19 | 20 | end Zlib; 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/fetch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_fetch_h__ 8 | #define INCLUDE_fetch_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/remote.h" 13 | 14 | int git_fetch_negotiate(git_remote *remote, const git_fetch_options *opts); 15 | 16 | int git_fetch_download_pack(git_remote *remote); 17 | 18 | int git_fetch_setup_walk(git_revwalk **out, git_repository *repo); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/ntlmclient/unicode_iconv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Edward Thomson. All rights reserved. 3 | * 4 | * This file is part of ntlmclient, distributed under the MIT license. 5 | * For full terms and copyright information, and for third-party 6 | * copyright information, see the included LICENSE.txt file. 7 | */ 8 | 9 | #ifndef PRIVATE_UNICODE_ICONV_H__ 10 | #define PRIVATE_UNICODE_ICONV_H__ 11 | 12 | #include 13 | #include 14 | 15 | #include "ntlmclient.h" 16 | 17 | struct ntlm_unicode_ctx { 18 | iconv_t utf8_to_16; 19 | iconv_t utf16_to_8; 20 | }; 21 | 22 | #endif /* PRIVATE_UNICODE_ICONV_H__ */ 23 | -------------------------------------------------------------------------------- /deps/test/libgit2/include/git2/sys/reflog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_sys_git_reflog_h__ 8 | #define INCLUDE_sys_git_reflog_h__ 9 | 10 | #include "git2/common.h" 11 | #include "git2/types.h" 12 | #include "git2/oid.h" 13 | 14 | GIT_BEGIN_DECL 15 | 16 | GIT_EXTERN(git_reflog_entry *) git_reflog_entry__alloc(void); 17 | GIT_EXTERN(void) git_reflog_entry__free(git_reflog_entry *entry); 18 | 19 | GIT_END_DECL 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/allocators/failalloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_allocators_failalloc_h__ 9 | #define INCLUDE_allocators_failalloc_h__ 10 | 11 | #include "git2_util.h" 12 | 13 | extern void *git_failalloc_malloc(size_t len, const char *file, int line); 14 | extern void *git_failalloc_realloc(void *ptr, size_t size, const char *file, int line); 15 | extern void git_failalloc_free(void *ptr); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/clone.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_clone_h__ 8 | #define INCLUDE_clone_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/clone.h" 13 | 14 | extern int git_clone__submodule(git_repository **out, 15 | const char *url, const char *local_path, 16 | const git_clone_options *_options); 17 | 18 | extern int git_clone__should_clone_local(const char *url, git_clone_local_t local); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/wildmatch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_wildmatch_h__ 9 | #define INCLUDE_wildmatch_h__ 10 | 11 | #include "git2_util.h" 12 | 13 | #define WM_CASEFOLD 1 14 | #define WM_PATHNAME 2 15 | 16 | #define WM_NOMATCH 1 17 | #define WM_MATCH 0 18 | #define WM_ABORT_ALL -1 19 | #define WM_ABORT_TO_STARSTAR -2 20 | 21 | int wildmatch(const char *pattern, const char *text, unsigned int flags); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/iostream/test.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "zfstream.h" 3 | 4 | int main() { 5 | 6 | // Construct a stream object with this filebuffer. Anything sent 7 | // to this stream will go to standard out. 8 | gzofstream os( 1, ios::out ); 9 | 10 | // This text is getting compressed and sent to stdout. 11 | // To prove this, run 'test | zcat'. 12 | os << "Hello, Mommy" << endl; 13 | 14 | os << setcompressionlevel( Z_NO_COMPRESSION ); 15 | os << "hello, hello, hi, ho!" << endl; 16 | 17 | setcompressionlevel( os, Z_DEFAULT_COMPRESSION ) 18 | << "I'm compressing again" << endl; 19 | 20 | os.close(); 21 | 22 | return 0; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/blame_git.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_blame_git__ 8 | #define INCLUDE_blame_git__ 9 | 10 | #include "common.h" 11 | 12 | #include "blame.h" 13 | 14 | int git_blame__get_origin( 15 | git_blame__origin **out, 16 | git_blame *sb, 17 | git_commit *commit, 18 | const char *path); 19 | void git_blame__free_entry(git_blame__entry *ent); 20 | int git_blame__like_git(git_blame *sb, uint32_t flags); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/streams/registry.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_streams_registry_h__ 8 | #define INCLUDE_streams_registry_h__ 9 | 10 | #include "common.h" 11 | #include "git2/sys/stream.h" 12 | 13 | /** Configure stream registry. */ 14 | int git_stream_registry_global_init(void); 15 | 16 | /** Lookup a stream registration. */ 17 | extern int git_stream_registry_lookup(git_stream_registration *out, git_stream_t type); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /deps/test/libgit2/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | This project will always provide security fixes for the latest two released 6 | versions. E.g. if the latest version is v0.28.x, then we will provide security 7 | fixes for both v0.28.x and v0.27.y, but no later versions. 8 | 9 | ## Reporting a Vulnerability 10 | 11 | In case you think to have found a security issue with libgit2, please do not 12 | open a public issue. Instead, you can report the issue to the private mailing 13 | list [security@libgit2.com](mailto:security@libgit2.com). We will acknowledge 14 | receipt of your message in at most three days and try to clarify further steps. 15 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/apply.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_apply_h__ 8 | #define INCLUDE_apply_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/patch.h" 13 | #include "git2/apply.h" 14 | #include "str.h" 15 | 16 | extern int git_apply__patch( 17 | git_str *out, 18 | char **filename, 19 | unsigned int *mode, 20 | const char *source, 21 | size_t source_len, 22 | git_patch *patch, 23 | const git_apply_options *opts); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/win32/mingw-compat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_win32_mingw_compat_h__ 8 | #define INCLUDE_win32_mingw_compat_h__ 9 | 10 | #if defined(__MINGW32__) 11 | 12 | #undef stat 13 | 14 | #if _WIN32_WINNT < 0x0600 && !defined(__MINGW64_VERSION_MAJOR) 15 | #undef MemoryBarrier 16 | void __mingworg_MemoryBarrier(void); 17 | #define MemoryBarrier __mingworg_MemoryBarrier 18 | #define VOLUME_NAME_DOS 0x0 19 | #endif 20 | 21 | #endif 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/CheckPrototypeDefinitionSafe.cmake: -------------------------------------------------------------------------------- 1 | include(CheckPrototypeDefinition) 2 | 3 | function(check_prototype_definition_safe function prototype return header variable) 4 | # temporarily save CMAKE_C_FLAGS and disable warnings about unused 5 | # unused functions and parameters, otherwise they will always fail 6 | # if ENABLE_WERROR is on 7 | set(SAVED_CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") 8 | 9 | disable_warnings(unused-function) 10 | disable_warnings(unused-parameter) 11 | 12 | check_prototype_definition("${function}" "${prototype}" "${return}" "${header}" "${variable}") 13 | 14 | # restore CMAKE_C_FLAGS 15 | set(CMAKE_C_FLAGS "${SAVED_CMAKE_C_FLAGS}") 16 | endfunction() 17 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/SanitizeBool.cmake: -------------------------------------------------------------------------------- 1 | function(SanitizeBool VAR) 2 | string(TOLOWER "${${VAR}}" VALUE) 3 | if(VALUE STREQUAL "on") 4 | set(${VAR} "ON" PARENT_SCOPE) 5 | elseif(VALUE STREQUAL "yes") 6 | set(${VAR} "ON" PARENT_SCOPE) 7 | elseif(VALUE STREQUAL "true") 8 | set(${VAR} "ON" PARENT_SCOPE) 9 | elseif(VALUE STREQUAL "1") 10 | set(${VAR} "ON" PARENT_SCOPE) 11 | elseif(VALUE STREQUAL "off") 12 | set(${VAR} "OFF" PARENT_SCOPE) 13 | elseif(VALUE STREQUAL "no") 14 | set(${VAR} "OFF" PARENT_SCOPE) 15 | elseif(VALUE STREQUAL "false") 16 | set(${VAR} "OFF" PARENT_SCOPE) 17 | elseif(VALUE STREQUAL "0") 18 | set(${VAR} "OFF" PARENT_SCOPE) 19 | endif() 20 | endfunction() 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/hash/common_crypto.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_hash_common_crypto_h__ 9 | #define INCLUDE_hash_common_crypto_h__ 10 | 11 | #include "hash/sha.h" 12 | 13 | #include 14 | 15 | #ifdef GIT_SHA1_COMMON_CRYPTO 16 | struct git_hash_sha1_ctx { 17 | CC_SHA1_CTX c; 18 | }; 19 | #endif 20 | 21 | #ifdef GIT_SHA256_COMMON_CRYPTO 22 | struct git_hash_sha256_ctx { 23 | CC_SHA256_CTX c; 24 | }; 25 | #endif 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/streams/stransport.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_streams_stransport_h__ 8 | #define INCLUDE_streams_stransport_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/sys/stream.h" 13 | 14 | #ifdef GIT_SECURE_TRANSPORT 15 | 16 | extern int git_stransport_stream_new(git_stream **out, const char *host, const char *port); 17 | extern int git_stransport_stream_wrap(git_stream **out, git_stream *in, const char *host); 18 | 19 | #endif 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/trace.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "trace.h" 9 | 10 | #include "str.h" 11 | #include "runtime.h" 12 | #include "git2/trace.h" 13 | 14 | struct git_trace_data git_trace__data = {0}; 15 | 16 | int git_trace_set(git_trace_level_t level, git_trace_cb callback) 17 | { 18 | GIT_ASSERT_ARG(level == 0 || callback != NULL); 19 | 20 | git_trace__data.level = level; 21 | git_trace__data.callback = callback; 22 | GIT_MEMORY_BARRIER; 23 | 24 | return 0; 25 | } 26 | -------------------------------------------------------------------------------- /.github/workflows/main.yaml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build_and_test: 7 | permissions: 8 | contents: write 9 | strategy: 10 | matrix: 11 | os: [ubuntu-latest] 12 | runs-on: ${{matrix.os}} 13 | steps: 14 | - uses: actions/checkout@v3 15 | - uses: mlugg/setup-zig@v2 16 | with: 17 | version: 0.15.1 18 | - run: zig build 19 | - run: zig build test 20 | - run: zig build testnet 21 | lint: 22 | runs-on: ubuntu-latest 23 | steps: 24 | - uses: actions/checkout@v3 25 | - uses: mlugg/setup-zig@v2 26 | with: 27 | version: 0.15.1 28 | - run: zig fmt --check . 29 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/sighandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef CLI_sighandler_h__ 9 | #define CLI_sighandler_h__ 10 | 11 | /** 12 | * Sets up a signal handler that will run when the process is interrupted 13 | * (via SIGINT on POSIX or Control-C or Control-Break on Windows). 14 | * 15 | * @param handler The function to run on interrupt 16 | * @return 0 on success, -1 on failure 17 | */ 18 | int cli_sighandler_set_interrupt(void (*handler)(void)); 19 | 20 | #endif /* CLI_sighandler_h__ */ 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/email.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_email_h__ 8 | #define INCLUDE_email_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/email.h" 13 | 14 | extern int git_email__append_from_diff( 15 | git_str *out, 16 | git_diff *diff, 17 | size_t patch_idx, 18 | size_t patch_count, 19 | const git_oid *commit_id, 20 | const char *summary, 21 | const char *body, 22 | const git_signature *author, 23 | const git_email_create_options *given_opts); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/streams/socket.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_streams_socket_h__ 8 | #define INCLUDE_streams_socket_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "stream.h" 13 | 14 | typedef struct { 15 | git_stream parent; 16 | char *host; 17 | char *port; 18 | GIT_SOCKET s; 19 | } git_socket_stream; 20 | 21 | extern int git_socket_stream_new(git_stream **out, const char *host, const char *port); 22 | 23 | extern int git_socket_stream_global_init(void); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/minizip/Makefile: -------------------------------------------------------------------------------- 1 | CC?=cc 2 | CFLAGS := $(CFLAGS) -O -I../.. 3 | 4 | UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a 5 | ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a 6 | 7 | .c.o: 8 | $(CC) -c $(CFLAGS) $*.c 9 | 10 | all: miniunz minizip 11 | 12 | miniunz: $(UNZ_OBJS) 13 | $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS) 14 | 15 | minizip: $(ZIP_OBJS) 16 | $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS) 17 | 18 | test: miniunz minizip 19 | @rm -f test.* 20 | @echo hello hello hello > test.txt 21 | ./minizip test test.txt 22 | ./miniunz -l test.zip 23 | @mv test.txt test.old 24 | ./miniunz test.zip 25 | @cmp test.txt test.old 26 | @rm -f test.* 27 | 28 | clean: 29 | /bin/rm -f *.o *~ minizip miniunz test.* 30 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/streams/schannel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_steams_schannel_h__ 8 | #define INCLUDE_steams_schannel_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/sys/stream.h" 13 | 14 | #ifdef GIT_SCHANNEL 15 | 16 | extern int git_schannel_stream_new( 17 | git_stream **out, 18 | const char *host, 19 | const char *port); 20 | 21 | extern int git_schannel_stream_wrap( 22 | git_stream **out, 23 | git_stream *in, 24 | const char *host); 25 | 26 | #endif 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /deps/test/mbedtls/.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: To report a bug, please fill this form. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | ### Summary 11 | 12 | 13 | 14 | ### System information 15 | 16 | Mbed TLS version (number or commit id): 17 | Operating system and version: 18 | Configuration (if not default, please attach `mbedtls_config.h`): 19 | Compiler and options (if you used a pre-built binary, please indicate how you obtained it): 20 | Additional environment information: 21 | 22 | ### Expected behavior 23 | 24 | 25 | 26 | ### Actual behavior 27 | 28 | 29 | 30 | ### Steps to reproduce 31 | 32 | 33 | 34 | ### Additional information 35 | 36 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/ntlmclient/compat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Edward Thomson. All rights reserved. 3 | * 4 | * This file is part of ntlmclient, distributed under the MIT license. 5 | * For full terms and copyright information, and for third-party 6 | * copyright information, see the included LICENSE.txt file. 7 | */ 8 | 9 | #ifndef PRIVATE_COMPAT_H__ 10 | #define PRIVATE_COMPAT_H__ 11 | 12 | #if defined (_MSC_VER) 13 | typedef unsigned char bool; 14 | # ifndef true 15 | # define true 1 16 | # endif 17 | # ifndef false 18 | # define false 0 19 | # endif 20 | #else 21 | # include 22 | #endif 23 | 24 | #ifndef MIN 25 | # define MIN(x, y) (((x) < (y)) ? (x) : (y)) 26 | #endif 27 | 28 | #endif /* PRIVATE_COMPAT_H__ */ 29 | -------------------------------------------------------------------------------- /deps/test/zlib/.github/workflows/fuzz.yml: -------------------------------------------------------------------------------- 1 | name: OSS-Fuzz 2 | on: [pull_request] 3 | jobs: 4 | Fuzzing: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - name: Build Fuzzers 8 | uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master 9 | with: 10 | oss-fuzz-project-name: 'zlib' 11 | dry-run: false 12 | 13 | - name: Run Fuzzers 14 | uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master 15 | with: 16 | oss-fuzz-project-name: 'zlib' 17 | fuzz-seconds: 300 18 | dry-run: false 19 | 20 | - name: Upload Crash 21 | uses: actions/upload-artifact@v3 22 | if: failure() 23 | with: 24 | name: artifacts 25 | path: ./out/artifacts 26 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/ssl_tls13_invasive.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright The Mbed TLS Contributors 3 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 4 | */ 5 | 6 | #ifndef MBEDTLS_SSL_TLS13_INVASIVE_H 7 | #define MBEDTLS_SSL_TLS13_INVASIVE_H 8 | 9 | #include "common.h" 10 | 11 | #if defined(MBEDTLS_SSL_PROTO_TLS1_3) 12 | 13 | #include "psa/crypto.h" 14 | 15 | #if defined(MBEDTLS_TEST_HOOKS) 16 | int mbedtls_ssl_tls13_parse_certificate(mbedtls_ssl_context *ssl, 17 | const unsigned char *buf, 18 | const unsigned char *end); 19 | #endif /* MBEDTLS_TEST_HOOKS */ 20 | 21 | #endif /* MBEDTLS_SSL_PROTO_TLS1_3 */ 22 | 23 | #endif /* MBEDTLS_SSL_TLS13_INVASIVE_H */ 24 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/hash/mbedtls.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_hash_mbedtls_h__ 9 | #define INCLUDE_hash_mbedtls_h__ 10 | 11 | #include "hash/sha.h" 12 | 13 | #ifdef GIT_SHA1_MBEDTLS 14 | # include 15 | 16 | struct git_hash_sha1_ctx { 17 | mbedtls_sha1_context c; 18 | }; 19 | #endif 20 | 21 | #ifdef GIT_SHA256_MBEDTLS 22 | # include 23 | 24 | struct git_hash_sha256_ctx { 25 | mbedtls_sha256_context c; 26 | }; 27 | #endif 28 | 29 | #endif /* INCLUDE_hash_sha1_mbedtls_h__ */ 30 | -------------------------------------------------------------------------------- /deps/test/libgit2/.github/ISSUE_TEMPLATE: -------------------------------------------------------------------------------- 1 | You are opening a _bug report_ against the libgit2 project: we use 2 | GitHub Issues for tracking bug reports and feature requests. If you 3 | have a question about an API or usage, please ask on StackOverflow: 4 | http://stackoverflow.com/questions/tagged/libgit2. If you want to 5 | have high-level discussions about the libgit2 project itself, visit 6 | https://github.com/libgit2/discussions. 7 | 8 | Otherwise, to report a bug, please fill out the reproduction steps 9 | (below) and delete these introductory paragraphs. Thanks! 10 | 11 | ### Reproduction steps 12 | 13 | ### Expected behavior 14 | 15 | ### Actual behavior 16 | 17 | ### Version of libgit2 (release number or SHA1) 18 | 19 | ### Operating system(s) tested 20 | -------------------------------------------------------------------------------- /deps/test/mbedtls/SUPPORT.md: -------------------------------------------------------------------------------- 1 | ## Documentation 2 | 3 | Here are some useful sources of information about using Mbed TLS: 4 | 5 | - [ReadTheDocs](https://mbed-tls.readthedocs.io/); 6 | - API documentation, see the [Documentation section of the 7 | README](README.md#documentation); 8 | - the `docs` directory in the source tree; 9 | - the [Mbed TLS Knowledge Base](https://mbed-tls.readthedocs.io/en/latest/kb/); 10 | - the [Mbed TLS mailing-list 11 | archives](https://lists.trustedfirmware.org/archives/list/mbed-tls@lists.trustedfirmware.org/). 12 | 13 | ## Asking Questions 14 | 15 | If you can't find your answer in the above sources, please use the [Mbed TLS 16 | mailing list](https://lists.trustedfirmware.org/mailman3/lists/mbed-tls.lists.trustedfirmware.org). 17 | -------------------------------------------------------------------------------- /deps/test/mbedtls/configs/crypto-config-ccm-aes-sha256.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file configs/crypto-config-ccm-aes-sha256.h 3 | * 4 | * \brief PSA crypto configuration with only symmetric cryptography: CCM-AES, 5 | * SHA-256 and key derivation (uses HMAC). 6 | */ 7 | /* 8 | * Copyright The Mbed TLS Contributors 9 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 | */ 11 | 12 | #ifndef PSA_CRYPTO_CONFIG_H 13 | #define PSA_CRYPTO_CONFIG_H 14 | 15 | #define PSA_WANT_ALG_CCM 1 16 | #define PSA_WANT_ALG_SHA_256 1 17 | #define PSA_WANT_ALG_TLS12_PRF 1 18 | #define PSA_WANT_ALG_TLS12_PSK_TO_MS 1 19 | #define PSA_WANT_KEY_TYPE_DERIVE 1 20 | #define PSA_WANT_KEY_TYPE_AES 1 21 | #define PSA_WANT_KEY_TYPE_RAW_DATA 1 22 | 23 | #endif /* PSA_CRYPTO_CONFIG_H */ 24 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/pcre/cmake/FindEditline.cmake: -------------------------------------------------------------------------------- 1 | # Modified from FindReadline.cmake (PH Feb 2012) 2 | 3 | if(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY) 4 | set(EDITLINE_FOUND TRUE) 5 | else(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY) 6 | FIND_PATH(EDITLINE_INCLUDE_DIR readline.h 7 | /usr/include/editline 8 | /usr/include/edit/readline 9 | /usr/include/readline 10 | ) 11 | 12 | FIND_LIBRARY(EDITLINE_LIBRARY NAMES edit) 13 | include(FindPackageHandleStandardArgs) 14 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(Editline DEFAULT_MSG EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY ) 15 | 16 | MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY) 17 | endif(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY) 18 | -------------------------------------------------------------------------------- /deps/test/libgit2/include/git2/experimental.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_experimental_h__ 9 | #define INCLUDE_experimental_h__ 10 | 11 | /* 12 | * This file exists to support users who build libgit2 with a bespoke 13 | * build system and do not use our cmake configuration. Normally, cmake 14 | * will create `experimental.h` from the `experimental.h.in` file and 15 | * will include the generated file instead of this one. For non-cmake 16 | * users, we bundle this `experimental.h` file which will be used 17 | * instead. 18 | */ 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/strnlen.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_strlen_h__ 8 | #define INCLUDE_strlen_h__ 9 | 10 | #if defined(__MINGW32__) || defined(__sun) || defined(__APPLE__) || defined(__MidnightBSD__) ||\ 11 | (defined(_MSC_VER) && _MSC_VER < 1500) 12 | # define NO_STRNLEN 13 | #endif 14 | 15 | #ifdef NO_STRNLEN 16 | GIT_INLINE(size_t) p_strnlen(const char *s, size_t maxlen) { 17 | const char *end = memchr(s, 0, maxlen); 18 | return end ? (size_t)(end - s) : maxlen; 19 | } 20 | #else 21 | # define p_strnlen strnlen 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /deps/test/zlib/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c -- zlib gzclose() function 2 | * Copyright (C) 2004, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "gzguts.h" 7 | 8 | /* gzclose() is in a separate file so that it is linked in only if it is used. 9 | That way the other gzclose functions can be used instead to avoid linking in 10 | unneeded compression or decompression routines. */ 11 | int ZEXPORT gzclose(gzFile file) { 12 | #ifndef NO_GZCOMPRESS 13 | gz_statep state; 14 | 15 | if (file == NULL) 16 | return Z_STREAM_ERROR; 17 | state = (gz_statep)file; 18 | 19 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 20 | #else 21 | return gzclose_r(file); 22 | #endif 23 | } 24 | -------------------------------------------------------------------------------- /deps/test/libgit2/.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 3 | // for the documentation about the tasks.json format 4 | "version": "2.0.0", 5 | "tasks": [ 6 | { 7 | "label": "Build", 8 | "type": "shell", 9 | "command": "cd build && cmake --build . --parallel", 10 | "group": "build", 11 | "presentation": { 12 | "reveal": "always", 13 | "panel": "new" 14 | } 15 | }, 16 | { 17 | "label": "Run Tests", 18 | "type": "shell", 19 | "command": "build/libgit2_tests -v", 20 | "group": "test", 21 | "presentation": { 22 | "reveal": "always", 23 | "panel": "new" 24 | } 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/winhttp/winhttp64.def: -------------------------------------------------------------------------------- 1 | LIBRARY WINHTTP 2 | EXPORTS 3 | WinHttpAddRequestHeaders 4 | WinHttpCheckPlatform 5 | WinHttpCloseHandle 6 | WinHttpConnect 7 | WinHttpCrackUrl 8 | WinHttpCreateUrl 9 | WinHttpDetectAutoProxyConfigUrl 10 | WinHttpGetDefaultProxyConfiguration 11 | WinHttpGetIEProxyConfigForCurrentUser 12 | WinHttpGetProxyForUrl 13 | WinHttpOpen 14 | WinHttpOpenRequest 15 | WinHttpQueryAuthSchemes 16 | WinHttpQueryDataAvailable 17 | WinHttpQueryHeaders 18 | WinHttpQueryOption 19 | WinHttpReadData 20 | WinHttpReceiveResponse 21 | WinHttpSendRequest 22 | WinHttpSetCredentials 23 | WinHttpSetDefaultProxyConfiguration 24 | WinHttpSetOption 25 | WinHttpSetStatusCallback 26 | WinHttpSetTimeouts 27 | WinHttpTimeFromSystemTime 28 | WinHttpTimeToSystemTime 29 | WinHttpWriteData 30 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/transports/auth_negotiate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_transports_auth_negotiate_h__ 9 | #define INCLUDE_transports_auth_negotiate_h__ 10 | 11 | #include "common.h" 12 | #include "git2.h" 13 | #include "auth.h" 14 | 15 | #if defined(GIT_GSSAPI) || defined(GIT_GSSFRAMEWORK) || defined(GIT_WIN32) 16 | 17 | extern int git_http_auth_negotiate( 18 | git_http_auth_context **out, 19 | const git_net_url *url); 20 | 21 | #else 22 | 23 | #define git_http_auth_negotiate git_http_auth_dummy 24 | 25 | #endif /* GIT_GSSAPI */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/md_psa.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Translation between MD and PSA identifiers (algorithms, errors). 3 | * 4 | * Note: this internal module will go away when everything becomes based on 5 | * PSA Crypto; it is a helper for the transition period. 6 | * 7 | * Copyright The Mbed TLS Contributors 8 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 | */ 10 | #ifndef MBEDTLS_MD_PSA_H 11 | #define MBEDTLS_MD_PSA_H 12 | 13 | #include "common.h" 14 | 15 | #include "mbedtls/md.h" 16 | #include "psa/crypto.h" 17 | 18 | /** Convert PSA status to MD error code. 19 | * 20 | * \param status PSA status. 21 | * 22 | * \return The corresponding MD error code, 23 | */ 24 | int mbedtls_md_error_from_psa(psa_status_t status); 25 | 26 | #endif /* MBEDTLS_MD_PSA_H */ 27 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/allocators/failalloc.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "failalloc.h" 9 | 10 | void *git_failalloc_malloc(size_t len, const char *file, int line) 11 | { 12 | GIT_UNUSED(len); 13 | GIT_UNUSED(file); 14 | GIT_UNUSED(line); 15 | 16 | return NULL; 17 | } 18 | 19 | void *git_failalloc_realloc(void *ptr, size_t size, const char *file, int line) 20 | { 21 | GIT_UNUSED(ptr); 22 | GIT_UNUSED(size); 23 | GIT_UNUSED(file); 24 | GIT_UNUSED(line); 25 | 26 | return NULL; 27 | } 28 | 29 | void git_failalloc_free(void *ptr) 30 | { 31 | GIT_UNUSED(ptr); 32 | } 33 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/streams/mbedtls.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_steams_mbedtls_h__ 8 | #define INCLUDE_steams_mbedtls_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/sys/stream.h" 13 | 14 | extern int git_mbedtls_stream_global_init(void); 15 | 16 | #ifdef GIT_MBEDTLS 17 | extern int git_mbedtls__set_cert_location(const char *file, const char *path); 18 | 19 | extern int git_mbedtls_stream_new(git_stream **out, const char *host, const char *port); 20 | extern int git_mbedtls_stream_wrap(git_stream **out, git_stream *in, const char *host); 21 | #endif 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/transports/ssh_exec.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_transports_ssh_exec_h__ 8 | #define INCLUDE_transports_ssh_exec_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2.h" 13 | #include "git2/transport.h" 14 | #include "git2/sys/transport.h" 15 | 16 | int git_smart_subtransport_ssh_exec( 17 | git_smart_subtransport **out, 18 | git_transport *owner, 19 | void *param); 20 | 21 | int git_smart_subtransport_ssh_exec_set_paths( 22 | git_smart_subtransport *subtransport, 23 | const char *cmd_uploadpack, 24 | const char *cmd_receivepack); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/version.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Version information 3 | * 4 | * Copyright The Mbed TLS Contributors 5 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 6 | */ 7 | 8 | #include "common.h" 9 | 10 | #if defined(MBEDTLS_VERSION_C) 11 | 12 | #include "mbedtls/version.h" 13 | #include 14 | 15 | unsigned int mbedtls_version_get_number(void) 16 | { 17 | return MBEDTLS_VERSION_NUMBER; 18 | } 19 | 20 | void mbedtls_version_get_string(char *string) 21 | { 22 | memcpy(string, MBEDTLS_VERSION_STRING, 23 | sizeof(MBEDTLS_VERSION_STRING)); 24 | } 25 | 26 | void mbedtls_version_get_string_full(char *string) 27 | { 28 | memcpy(string, MBEDTLS_VERSION_STRING_FULL, 29 | sizeof(MBEDTLS_VERSION_STRING_FULL)); 30 | } 31 | 32 | #endif /* MBEDTLS_VERSION_C */ 33 | -------------------------------------------------------------------------------- /deps/test/mbedtls/include/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | option(INSTALL_MBEDTLS_HEADERS "Install Mbed TLS headers." ON) 2 | 3 | if(INSTALL_MBEDTLS_HEADERS) 4 | 5 | file(GLOB headers "mbedtls/*.h") 6 | file(GLOB psa_headers "psa/*.h") 7 | 8 | install(FILES ${headers} 9 | DESTINATION include/mbedtls 10 | PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) 11 | 12 | install(FILES ${psa_headers} 13 | DESTINATION include/psa 14 | PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) 15 | 16 | endif(INSTALL_MBEDTLS_HEADERS) 17 | 18 | # Make mbedtls_config.h available in an out-of-source build. ssl-opt.sh requires it. 19 | if (ENABLE_TESTING AND NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) 20 | link_to_source(mbedtls) 21 | link_to_source(psa) 22 | endif() 23 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/notes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_note_h__ 8 | #define INCLUDE_note_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/oid.h" 13 | #include "git2/types.h" 14 | 15 | #define GIT_NOTES_DEFAULT_REF "refs/notes/commits" 16 | 17 | #define GIT_NOTES_DEFAULT_MSG_ADD \ 18 | "Notes added by 'git_note_create' from libgit2" 19 | 20 | #define GIT_NOTES_DEFAULT_MSG_RM \ 21 | "Notes removed by 'git_note_remove' from libgit2" 22 | 23 | struct git_note { 24 | git_oid id; 25 | 26 | git_signature *author; 27 | git_signature *committer; 28 | 29 | char *message; 30 | }; 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/strarray.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_strarray_h__ 8 | #define INCLUDE_strarray_h__ 9 | 10 | #include "common.h" 11 | #include "git2/strarray.h" 12 | 13 | /** 14 | * Copy a string array object from source to target. 15 | * 16 | * Note: target is overwritten and hence should be empty, otherwise its 17 | * contents are leaked. Call git_strarray_free() if necessary. 18 | * 19 | * @param tgt target 20 | * @param src source 21 | * @return 0 on success, < 0 on allocation failure 22 | */ 23 | extern int git_strarray_copy(git_strarray *tgt, const git_strarray *src); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/FindGSSFramework.cmake: -------------------------------------------------------------------------------- 1 | # Find GSS.framework 2 | # This will define : 3 | # 4 | # GSSFRAMEWORK_FOUND 5 | # GSSFRAMEWORK_INCLUDE_DIR 6 | # GSSFRAMEWORK_LIBRARIES 7 | # GSSFRAMEWORK_LDFLAGS 8 | # 9 | 10 | find_path(GSSFRAMEWORK_INCLUDE_DIR NAMES GSS.h) 11 | find_library(GSSFRAMEWORK_LIBRARIES NAMES GSS) 12 | if(GSSFRAMEWORK_INCLUDE_DIR AND GSSFRAMEWORK_LIBRARIES) 13 | if(NOT CoreFoundation_FIND_QUIETLY) 14 | message(STATUS "Found GSS.framework ${GSSFRAMEWORK_LIBRARIES}") 15 | endif() 16 | set(GSSFRAMEWORK_FOUND TRUE) 17 | set(GSSFRAMEWORK_LDFLAGS "-framework GSS") 18 | endif() 19 | 20 | if(GSS_FIND_REQUIRED AND NOT GSSFRAMEWORK_FOUND) 21 | message(FATAL_ERROR "CoreFoundation not found") 22 | endif() 23 | 24 | mark_as_advanced( 25 | GSSFRAMEWORK_INCLUDE_DIR 26 | GSSFRAMEWORK_LIBRARIES 27 | GSSFRAMEWORK_LDFLAGS 28 | ) 29 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/tag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_tag_h__ 8 | #define INCLUDE_tag_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/tag.h" 13 | #include "repository.h" 14 | #include "odb.h" 15 | 16 | struct git_tag { 17 | git_object object; 18 | 19 | git_oid target; 20 | git_object_t type; 21 | 22 | char *tag_name; 23 | git_signature *tagger; 24 | char *message; 25 | }; 26 | 27 | void git_tag__free(void *tag); 28 | int git_tag__parse(void *tag, git_odb_object *obj, git_oid_t oid_type); 29 | int git_tag__parse_raw(void *tag, const char *data, size_t size, git_oid_t oid_type); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /deps/test/libgit2/.github/release.yml: -------------------------------------------------------------------------------- 1 | changelog: 2 | categories: 3 | - title: New features 4 | labels: 5 | - feature 6 | - title: Performance improvements 7 | labels: 8 | - performance 9 | - title: Bug fixes 10 | labels: 11 | - bug 12 | - title: Security fixes 13 | labels: 14 | - security 15 | - title: Code cleanups 16 | labels: 17 | - cleanup 18 | - title: Build and CI improvements 19 | labels: 20 | - build 21 | - title: Documentation improvements 22 | labels: 23 | - documentation 24 | - title: Platform compatibility fixes 25 | labels: 26 | - compatibility 27 | - title: Git compatibility fixes 28 | labels: 29 | - git compatibility 30 | - title: Dependency updates 31 | labels: 32 | - dependency 33 | - title: Other changes 34 | labels: 35 | - '*' 36 | -------------------------------------------------------------------------------- /deps/test/mbedtls/.travis.yml: -------------------------------------------------------------------------------- 1 | # Declare python as our language. This way we get our chosen Python version, 2 | # and pip is available. Gcc and clang are available anyway. 3 | dist: jammy 4 | os: linux 5 | language: python 6 | python: 3.10 7 | 8 | cache: ccache 9 | 10 | branches: 11 | only: 12 | coverity_scan 13 | 14 | install: 15 | - $PYTHON scripts/min_requirements.py 16 | 17 | env: 18 | global: 19 | - SEED=1 20 | - secure: "GF/Fde5fkm15T/RNykrjrPV5Uh1KJ70cP308igL6Xkk3eJmqkkmWCe9JqRH12J3TeWw2fu9PYPHt6iFSg6jasgqysfUyg+W03knRT5QNn3h5eHgt36cQJiJr6t3whPrRaiM6U9omE0evm+c0cAwlkA3GGSMw8Z+na4EnKI6OFCo=" 21 | addons: 22 | coverity_scan: 23 | project: 24 | name: "ARMmbed/mbedtls" 25 | notification_email: support-mbedtls@arm.com 26 | build_command_prepend: 27 | build_command: make 28 | branch_pattern: coverity_scan 29 | -------------------------------------------------------------------------------- /src/lib.zig: -------------------------------------------------------------------------------- 1 | pub const main = @import("./main.zig"); 2 | pub const repo = @import("./repo.zig"); 3 | pub const hash = @import("./hash.zig"); 4 | pub const object = @import("./object.zig"); 5 | pub const command = @import("./command.zig"); 6 | pub const index = @import("./index.zig"); 7 | pub const branch = @import("./branch.zig"); 8 | pub const workdir = @import("./workdir.zig"); 9 | pub const ref = @import("./ref.zig"); 10 | pub const fs = @import("./fs.zig"); 11 | pub const diff = @import("./diff.zig"); 12 | pub const merge = @import("./merge.zig"); 13 | pub const config = @import("./config.zig"); 14 | pub const net = @import("./net.zig"); 15 | pub const chunk = @import("./chunk.zig"); 16 | pub const pack = @import("./pack.zig"); 17 | pub const tree = @import("./tree.zig"); 18 | pub const tag = @import("./tag.zig"); 19 | pub const ui = @import("./ui.zig"); 20 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/checkout.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_checkout_h__ 8 | #define INCLUDE_checkout_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/checkout.h" 13 | #include "iterator.h" 14 | 15 | #define GIT_CHECKOUT__NOTIFY_CONFLICT_TREE (1u << 12) 16 | 17 | /** 18 | * Update the working directory to match the target iterator. The 19 | * expected baseline value can be passed in via the checkout options 20 | * or else will default to the HEAD commit. 21 | */ 22 | extern int git_checkout_iterator( 23 | git_iterator *target, 24 | git_index *index, 25 | const git_checkout_options *opts); 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/iostream2/zstream_test.cpp: -------------------------------------------------------------------------------- 1 | #include "zstream.h" 2 | #include 3 | #include 4 | #include 5 | 6 | void main() { 7 | char h[256] = "Hello"; 8 | char* g = "Goodbye"; 9 | ozstream out("temp.gz"); 10 | out < "This works well" < h < g; 11 | out.close(); 12 | 13 | izstream in("temp.gz"); // read it back 14 | char *x = read_string(in), *y = new char[256], z[256]; 15 | in > y > z; 16 | in.close(); 17 | cout << x << endl << y << endl << z << endl; 18 | 19 | out.open("temp.gz"); // try ascii output; zcat temp.gz to see the results 20 | out << setw(50) << setfill('#') << setprecision(20) << x << endl << y << endl << z << endl; 21 | out << z << endl << y << endl << x << endl; 22 | out << 1.1234567890123456789 << endl; 23 | 24 | delete[] x; delete[] y; 25 | } 26 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/winhttp/winhttp.def: -------------------------------------------------------------------------------- 1 | LIBRARY WINHTTP 2 | EXPORTS 3 | WinHttpAddRequestHeaders@16 4 | WinHttpCheckPlatform@0 5 | WinHttpCloseHandle@4 6 | WinHttpConnect@16 7 | WinHttpCrackUrl@16 8 | WinHttpCreateUrl@16 9 | WinHttpDetectAutoProxyConfigUrl@8 10 | WinHttpGetDefaultProxyConfiguration@4 11 | WinHttpGetIEProxyConfigForCurrentUser@4 12 | WinHttpGetProxyForUrl@16 13 | WinHttpOpen@20 14 | WinHttpOpenRequest@28 15 | WinHttpQueryAuthSchemes@16 16 | WinHttpQueryDataAvailable@8 17 | WinHttpQueryHeaders@24 18 | WinHttpQueryOption@16 19 | WinHttpReadData@16 20 | WinHttpReceiveResponse@8 21 | WinHttpSendRequest@28 22 | WinHttpSetCredentials@24 23 | WinHttpSetDefaultProxyConfiguration@4 24 | WinHttpSetOption@16 25 | WinHttpSetStatusCallback@16 26 | WinHttpSetTimeouts@20 27 | WinHttpTimeFromSystemTime@8 28 | WinHttpTimeToSystemTime@8 29 | WinHttpWriteData@16 30 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/FindCoreFoundation.cmake: -------------------------------------------------------------------------------- 1 | # Find CoreFoundation.framework 2 | # This will define : 3 | # 4 | # COREFOUNDATION_FOUND 5 | # COREFOUNDATION_LIBRARIES 6 | # COREFOUNDATION_LDFLAGS 7 | # 8 | 9 | find_path(COREFOUNDATION_INCLUDE_DIR NAMES CoreFoundation.h) 10 | find_library(COREFOUNDATION_LIBRARIES NAMES CoreFoundation) 11 | if(COREFOUNDATION_INCLUDE_DIR AND COREFOUNDATION_LIBRARIES) 12 | if(NOT CoreFoundation_FIND_QUIETLY) 13 | message(STATUS "Found CoreFoundation ${COREFOUNDATION_LIBRARIES}") 14 | endif() 15 | set(COREFOUNDATION_FOUND TRUE) 16 | set(COREFOUNDATION_LDFLAGS "-framework CoreFoundation") 17 | endif() 18 | 19 | if(CoreFoundation_FIND_REQUIRED AND NOT COREFOUNDATION_FOUND) 20 | message(FATAL_ERROR "CoreFoundation not found") 21 | endif() 22 | 23 | mark_as_advanced( 24 | COREFOUNDATION_INCLUDE_DIR 25 | COREFOUNDATION_LIBRARIES 26 | ) 27 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/winhttp/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | find_program(DLLTOOL dlltool CMAKE_FIND_ROOT_PATH_BOTH) 2 | if(NOT DLLTOOL) 3 | message(FATAL_ERROR "Could not find dlltool command") 4 | endif() 5 | 6 | set(LIBWINHTTP_PATH "${PROJECT_BINARY_DIR}/deps/winhttp") 7 | set(LIBWINHTTP_PATH ${LIBWINHTTP_PATH} PARENT_SCOPE) 8 | file(MAKE_DIRECTORY ${LIBWINHTTP_PATH}) 9 | 10 | if(CMAKE_SIZEOF_VOID_P EQUAL 8) 11 | set(WINHTTP_DEF "winhttp64.def") 12 | else() 13 | set(WINHTTP_DEF "winhttp.def") 14 | endif() 15 | 16 | add_custom_command( 17 | OUTPUT ${LIBWINHTTP_PATH}/libwinhttp.a 18 | COMMAND ${DLLTOOL} -d ${WINHTTP_DEF} -k -D winhttp.dll -l libwinhttp.a 19 | DEPENDS ${WINHTTP_DEF} 20 | WORKING_DIRECTORY ${LIBWINHTTP_PATH}) 21 | 22 | set_source_files_properties( 23 | ${CMAKE_CURRENT_SOURCE_DIR}/src/transports/winhttp.c 24 | PROPERTIES OBJECT_DEPENDS ${LIBWINHTTP_PATH}/libwinhttp.a) 25 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/branch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_branch_h__ 8 | #define INCLUDE_branch_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "str.h" 13 | 14 | int git_branch__remote_name( 15 | git_str *out, 16 | git_repository *repo, 17 | const char *refname); 18 | int git_branch__upstream_remote( 19 | git_str *out, 20 | git_repository *repo, 21 | const char *refname); 22 | int git_branch__upstream_merge( 23 | git_str *out, 24 | git_repository *repo, 25 | const char *refname); 26 | int git_branch__upstream_name( 27 | git_str *tracking_name, 28 | git_repository *repo, 29 | const char *canonical_branch_name); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/oidarray.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_oidarray_h__ 8 | #define INCLUDE_oidarray_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/oidarray.h" 13 | #include "array.h" 14 | 15 | typedef git_array_t(git_oid) git_array_oid_t; 16 | 17 | extern void git_oidarray__reverse(git_oidarray *arr); 18 | extern void git_oidarray__from_array(git_oidarray *out, const git_array_oid_t *array); 19 | extern void git_oidarray__to_array(git_array_oid_t *out, const git_oidarray *array); 20 | 21 | int git_oidarray__add(git_array_oid_t *arr, git_oid *id); 22 | bool git_oidarray__remove(git_array_oid_t *arr, git_oid *id); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/transports/ssh_libssh2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_transports_libssh2_h__ 8 | #define INCLUDE_transports_libssh2_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2.h" 13 | #include "git2/transport.h" 14 | #include "git2/sys/transport.h" 15 | 16 | int git_transport_ssh_libssh2_global_init(void); 17 | 18 | int git_smart_subtransport_ssh_libssh2( 19 | git_smart_subtransport **out, 20 | git_transport *owner, 21 | void *param); 22 | 23 | int git_smart_subtransport_ssh_libssh2_set_paths( 24 | git_smart_subtransport *subtransport, 25 | const char *cmd_uploadpack, 26 | const char *cmd_receivepack); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/FindStatNsec.cmake: -------------------------------------------------------------------------------- 1 | include(FeatureSummary) 2 | 3 | check_struct_has_member("struct stat" st_mtim "sys/types.h;sys/stat.h" 4 | HAVE_STRUCT_STAT_ST_MTIM LANGUAGE C) 5 | check_struct_has_member("struct stat" st_mtimespec "sys/types.h;sys/stat.h" 6 | HAVE_STRUCT_STAT_ST_MTIMESPEC LANGUAGE C) 7 | check_struct_has_member("struct stat" st_mtime_nsec sys/stat.h 8 | HAVE_STRUCT_STAT_MTIME_NSEC LANGUAGE C) 9 | 10 | if(HAVE_STRUCT_STAT_ST_MTIM) 11 | check_struct_has_member("struct stat" st_mtim.tv_nsec sys/stat.h 12 | HAVE_STRUCT_STAT_NSEC LANGUAGE C) 13 | elseif(HAVE_STRUCT_STAT_ST_MTIMESPEC) 14 | check_struct_has_member("struct stat" st_mtimespec.tv_nsec sys/stat.h 15 | HAVE_STRUCT_STAT_NSEC LANGUAGE C) 16 | else() 17 | set(HAVE_STRUCT_STAT_NSEC ON ) 18 | endif() 19 | 20 | add_feature_info(nanoseconds USE_NSEC "support nanosecond precision file mtimes and ctimes") 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/diff_tform.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_diff_tform_h__ 8 | #define INCLUDE_diff_tform_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "diff_file.h" 13 | 14 | extern int git_diff_find_similar__hashsig_for_file( 15 | void **out, const git_diff_file *f, const char *path, void *p); 16 | 17 | extern int git_diff_find_similar__hashsig_for_buf( 18 | void **out, const git_diff_file *f, const char *buf, size_t len, void *p); 19 | 20 | extern void git_diff_find_similar__hashsig_free(void *sig, void *payload); 21 | 22 | extern int git_diff_find_similar__calc_similarity( 23 | int *score, void *siga, void *sigb, void *payload); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/minizip/mztools.h: -------------------------------------------------------------------------------- 1 | /* 2 | Additional tools for Minizip 3 | Code: Xavier Roche '2004 4 | License: Same as ZLIB (www.gzip.org) 5 | */ 6 | 7 | #ifndef _zip_tools_H 8 | #define _zip_tools_H 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #ifndef _ZLIB_H 15 | #include "zlib.h" 16 | #endif 17 | 18 | #include "unzip.h" 19 | 20 | /* Repair a ZIP file (missing central directory) 21 | file: file to recover 22 | fileOut: output file after recovery 23 | fileOutTmp: temporary file name used for recovery 24 | */ 25 | extern int ZEXPORT unzRepair(const char* file, 26 | const char* fileOut, 27 | const char* fileOutTmp, 28 | uLong* nRecovered, 29 | uLong* bytesRecovered); 30 | 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/test/libgit2/ci/setup-win32-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ex 4 | 5 | echo "##############################################################################" 6 | echo "## Downloading libssh2" 7 | echo "##############################################################################" 8 | 9 | BUILD_TEMP=${BUILD_TEMP:=$TEMP} 10 | BUILD_TEMP=$(cygpath $BUILD_TEMP) 11 | 12 | case "$ARCH" in 13 | amd64) 14 | LIBSSH2_URI="https://github.com/libgit2/ci-dependencies/releases/download/2023-02-01/libssh2-20230201-amd64.zip";; 15 | x86) 16 | LIBSSH2_URI="https://github.com/libgit2/ci-dependencies/releases/download/2023-02-01-v2/libssh2-20230201-x86.zip";; 17 | esac 18 | 19 | if [ -z "$LIBSSH2_URI" ]; then 20 | echo "No URL" 21 | exit 1 22 | fi 23 | 24 | mkdir -p "$BUILD_TEMP" 25 | 26 | curl -s -L "$LIBSSH2_URI" -o "$BUILD_TEMP"/libssh2-"$ARCH".zip 27 | unzip -q "$BUILD_TEMP"/libssh2-"$ARCH".zip -d "$BUILD_TEMP" 28 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/FindSecurity.cmake: -------------------------------------------------------------------------------- 1 | # Find Security.framework 2 | # This will define : 3 | # 4 | # SECURITY_FOUND 5 | # SECURITY_LIBRARIES 6 | # SECURITY_LDFLAGS 7 | # SECURITY_HAS_SSLCREATECONTEXT 8 | # 9 | 10 | find_path(SECURITY_INCLUDE_DIR NAMES Security/Security.h) 11 | find_library(SECURITY_LIBRARIES NAMES Security) 12 | if(SECURITY_INCLUDE_DIR AND SECURITY_LIBRARIES) 13 | if(NOT Security_FIND_QUIETLY) 14 | message(STATUS "Found Security ${SECURITY_LIBRARIES}") 15 | endif() 16 | set(SECURITY_FOUND TRUE) 17 | set(SECURITY_LDFLAGS "-framework Security") 18 | check_library_exists("${SECURITY_LIBRARIES}" SSLCreateContext "Security/SecureTransport.h" SECURITY_HAS_SSLCREATECONTEXT) 19 | endif() 20 | 21 | if(Security_FIND_REQUIRED AND NOT SECURITY_FOUND) 22 | message(FATAL_ERROR "Security not found") 23 | endif() 24 | 25 | mark_as_advanced( 26 | SECURITY_INCLUDE_DIR 27 | SECURITY_LIBRARIES 28 | ) 29 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/ntlmclient/util.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Edward Thomson. All rights reserved. 3 | * 4 | * This file is part of ntlmclient, distributed under the MIT license. 5 | * For full terms and copyright information, and for third-party 6 | * copyright information, see the included LICENSE.txt file. 7 | */ 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | #include "compat.h" 14 | #include "util.h" 15 | 16 | void ntlm_memzero(void *data, size_t size) 17 | { 18 | volatile uint8_t *scan = (volatile uint8_t *)data; 19 | 20 | while (size--) 21 | *scan++ = 0x0; 22 | } 23 | 24 | uint64_t ntlm_htonll(uint64_t value) 25 | { 26 | static union { 27 | uint32_t i; 28 | char c[8]; 29 | } test = { 0x01020304 }; 30 | 31 | if (test.c[0] == 0x01) 32 | return value; 33 | else 34 | return ((uint64_t)htonl(value) << 32) | htonl((uint64_t)value >> 32); 35 | } 36 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/signature.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_signature_h__ 8 | #define INCLUDE_signature_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/common.h" 13 | #include "git2/signature.h" 14 | #include "repository.h" 15 | #include 16 | 17 | int git_signature__parse(git_signature *sig, const char **buffer_out, const char *buffer_end, const char *header, char ender); 18 | void git_signature__writebuf(git_str *buf, const char *header, const git_signature *sig); 19 | bool git_signature__equal(const git_signature *one, const git_signature *two); 20 | 21 | int git_signature__pdup(git_signature **dest, const git_signature *source, git_pool *pool); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/IdeSplitSources.cmake: -------------------------------------------------------------------------------- 1 | # This function splits the sources files up into their appropriate 2 | # subdirectories. This is especially useful for IDEs like Xcode and 3 | # Visual Studio, so that you can navigate into the libgit2_tests project, 4 | # and see the folders within the tests folder (instead of just seeing all 5 | # source and tests in a single folder.) 6 | function(IDE_SPLIT_SOURCES target) 7 | if(MSVC_IDE OR CMAKE_GENERATOR STREQUAL Xcode) 8 | get_target_property(sources ${target} SOURCES) 9 | foreach(source ${sources}) 10 | if(source MATCHES ".*/") 11 | string(REPLACE ${PROJECT_SOURCE_DIR}/ "" rel ${source}) 12 | if(rel) 13 | string(REGEX REPLACE "/([^/]*)$" "" rel ${rel}) 14 | if(rel) 15 | string(REPLACE "/" "\\\\" rel ${rel}) 16 | source_group(${rel} FILES ${source}) 17 | endif() 18 | endif() 19 | endif() 20 | endforeach() 21 | endif() 22 | endfunction() 23 | -------------------------------------------------------------------------------- /deps/test/libgit2/ci/setup-mingw-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -ex 4 | 5 | echo "##############################################################################" 6 | echo "## Downloading mingw" 7 | echo "##############################################################################" 8 | 9 | BUILD_TEMP=${BUILD_TEMP:=$TEMP} 10 | BUILD_TEMP=$(cygpath $BUILD_TEMP) 11 | 12 | case "$ARCH" in 13 | amd64) 14 | MINGW_URI="https://github.com/libgit2/ci-dependencies/releases/download/2023-01-23/mingw-x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.zip";; 15 | x86) 16 | MINGW_URI="https://github.com/libgit2/ci-dependencies/releases/download/2023-01-23/mingw-i686-8.1.0-release-win32-sjlj-rt_v6-rev0.zip";; 17 | esac 18 | 19 | if [ -z "$MINGW_URI" ]; then 20 | echo "No URL" 21 | exit 1 22 | fi 23 | 24 | mkdir -p "$BUILD_TEMP" 25 | 26 | curl -s -L "$MINGW_URI" -o "$BUILD_TEMP"/mingw-"$ARCH".zip 27 | unzip -q "$BUILD_TEMP"/mingw-"$ARCH".zip -d "$BUILD_TEMP" 28 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/reflog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_reflog_h__ 8 | #define INCLUDE_reflog_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/reflog.h" 13 | #include "vector.h" 14 | 15 | #define GIT_REFLOG_DIR "logs/" 16 | #define GIT_REFLOG_DIR_MODE 0777 17 | #define GIT_REFLOG_FILE_MODE 0666 18 | 19 | struct git_reflog_entry { 20 | git_oid oid_old; 21 | git_oid oid_cur; 22 | 23 | git_signature *committer; 24 | 25 | char *msg; 26 | }; 27 | 28 | struct git_reflog { 29 | git_refdb *db; 30 | char *ref_name; 31 | git_oid_t oid_type; 32 | git_vector entries; 33 | }; 34 | 35 | GIT_INLINE(size_t) reflog_inverse_index(size_t idx, size_t total) 36 | { 37 | return (total - 1) - idx; 38 | } 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/minizip/configure.ac: -------------------------------------------------------------------------------- 1 | # -*- Autoconf -*- 2 | # Process this file with autoconf to produce a configure script. 3 | 4 | AC_INIT([minizip], [1.3.1], [bugzilla.redhat.com]) 5 | AC_CONFIG_SRCDIR([minizip.c]) 6 | AM_INIT_AUTOMAKE([foreign]) 7 | LT_INIT 8 | 9 | AC_MSG_CHECKING([whether to build example programs]) 10 | AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs])) 11 | AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes]) 12 | if test "$enable_demos" = yes 13 | then 14 | AC_MSG_RESULT([yes]) 15 | else 16 | AC_MSG_RESULT([no]) 17 | fi 18 | 19 | case "${host}" in 20 | *-mingw* | mingw*) 21 | WIN32="yes" 22 | ;; 23 | *) 24 | ;; 25 | esac 26 | AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"]) 27 | 28 | 29 | AC_SUBST([HAVE_UNISTD_H], [0]) 30 | AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], []) 31 | AC_CONFIG_FILES([Makefile minizip.pc]) 32 | AC_OUTPUT 33 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/date.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_date_h__ 8 | #define INCLUDE_date_h__ 9 | 10 | #include "util.h" 11 | #include "str.h" 12 | 13 | /* 14 | * Parse a string into a value as a git_time_t. 15 | * 16 | * Sample valid input: 17 | * - "yesterday" 18 | * - "July 17, 2003" 19 | * - "2003-7-17 08:23" 20 | */ 21 | extern int git_date_parse(git_time_t *out, const char *date); 22 | 23 | /* 24 | * Format a git_time as a RFC2822 string 25 | * 26 | * @param out buffer to store formatted date 27 | * @param time the time to be formatted 28 | * @param offset the timezone offset 29 | * @return 0 if successful; -1 on error 30 | */ 31 | extern int git_date_rfc2822_fmt(git_str *out, git_time_t time, int offset); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/allocators/stdalloc.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "stdalloc.h" 9 | 10 | static void *stdalloc__malloc(size_t len, const char *file, int line) 11 | { 12 | GIT_UNUSED(file); 13 | GIT_UNUSED(line); 14 | 15 | return malloc(len); 16 | } 17 | 18 | static void *stdalloc__realloc(void *ptr, size_t size, const char *file, int line) 19 | { 20 | GIT_UNUSED(file); 21 | GIT_UNUSED(line); 22 | 23 | return realloc(ptr, size); 24 | } 25 | 26 | static void stdalloc__free(void *ptr) 27 | { 28 | free(ptr); 29 | } 30 | 31 | int git_stdalloc_init_allocator(git_allocator *allocator) 32 | { 33 | allocator->gmalloc = stdalloc__malloc; 34 | allocator->grealloc = stdalloc__realloc; 35 | allocator->gfree = stdalloc__free; 36 | return 0; 37 | } 38 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/minizip/iowin32.h: -------------------------------------------------------------------------------- 1 | /* iowin32.h -- IO base function header for compress/uncompress .zip 2 | Version 1.1, February 14h, 2010 3 | part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) 4 | 5 | Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html ) 6 | 7 | Modifications for Zip64 support 8 | Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) 9 | 10 | For more info read MiniZip_info.txt 11 | 12 | */ 13 | 14 | #include 15 | 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | void fill_win32_filefunc(zlib_filefunc_def* pzlib_filefunc_def); 22 | void fill_win32_filefunc64(zlib_filefunc64_def* pzlib_filefunc_def); 23 | void fill_win32_filefunc64A(zlib_filefunc64_def* pzlib_filefunc_def); 24 | void fill_win32_filefunc64W(zlib_filefunc64_def* pzlib_filefunc_def); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/strlist.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_runtime_h__ 9 | #define INCLUDE_runtime_h__ 10 | 11 | #include "git2_util.h" 12 | 13 | extern int git_strlist_copy(char ***out, const char **in, size_t len); 14 | 15 | extern int git_strlist_copy_with_null( 16 | char ***out, 17 | const char **in, 18 | size_t len); 19 | 20 | extern bool git_strlist_contains_prefix( 21 | const char **strings, 22 | size_t len, 23 | const char *str, 24 | size_t n); 25 | 26 | extern bool git_strlist_contains_key( 27 | const char **strings, 28 | size_t len, 29 | const char *key, 30 | char delimiter); 31 | 32 | extern void git_strlist_free(char **strings, size_t len); 33 | 34 | extern void git_strlist_free_with_null(char **strings); 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/unix/sighandler.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include 9 | #include 10 | #include "git2_util.h" 11 | #include "common.h" 12 | #include "sighandler.h" 13 | 14 | static void (*interrupt_handler)(void) = NULL; 15 | 16 | static void interrupt_proxy(int signal) 17 | { 18 | GIT_UNUSED(signal); 19 | interrupt_handler(); 20 | } 21 | 22 | int cli_sighandler_set_interrupt(void (*handler)(void)) 23 | { 24 | void (*result)(int); 25 | 26 | if ((interrupt_handler = handler) != NULL) 27 | result = signal(SIGINT, interrupt_proxy); 28 | else 29 | result = signal(SIGINT, SIG_DFL); 30 | 31 | if (result == SIG_ERR) { 32 | git_error_set(GIT_ERROR_OS, "could not set signal handler"); 33 | return -1; 34 | } 35 | 36 | return 0; 37 | } 38 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/win32/sighandler.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "git2_util.h" 9 | #include 10 | 11 | #include "sighandler.h" 12 | 13 | static void (*interrupt_handler)(void) = NULL; 14 | 15 | static BOOL WINAPI interrupt_proxy(DWORD signal) 16 | { 17 | GIT_UNUSED(signal); 18 | interrupt_handler(); 19 | return TRUE; 20 | } 21 | 22 | int cli_sighandler_set_interrupt(void (*handler)(void)) 23 | { 24 | BOOL result; 25 | 26 | if ((interrupt_handler = handler) != NULL) 27 | result = SetConsoleCtrlHandler(interrupt_proxy, FALSE); 28 | else 29 | result = SetConsoleCtrlHandler(NULL, FALSE); 30 | 31 | if (!result) { 32 | git_error_set(GIT_ERROR_OS, "could not set control control handler"); 33 | return -1; 34 | } 35 | 36 | return 0; 37 | } 38 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/transports/auth_ntlm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_transports_auth_ntlm_h__ 9 | #define INCLUDE_transports_auth_ntlm_h__ 10 | 11 | #include "auth.h" 12 | 13 | /* NTLM requires a full request/challenge/response */ 14 | #define GIT_AUTH_STEPS_NTLM 2 15 | 16 | #if defined(GIT_NTLM) || defined(GIT_WIN32) 17 | 18 | #if defined(GIT_OPENSSL) 19 | # define CRYPT_OPENSSL 20 | #elif defined(GIT_MBEDTLS) 21 | # define CRYPT_MBEDTLS 22 | #elif defined(GIT_SECURE_TRANSPORT) 23 | # define CRYPT_COMMONCRYPTO 24 | #endif 25 | 26 | extern int git_http_auth_ntlm( 27 | git_http_auth_context **out, 28 | const git_net_url *url); 29 | 30 | #else 31 | 32 | #define git_http_auth_ntlm git_http_auth_dummy 33 | 34 | #endif /* GIT_NTLM */ 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/fetchhead.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_fetchhead_h__ 8 | #define INCLUDE_fetchhead_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "oid.h" 13 | #include "vector.h" 14 | 15 | typedef struct git_fetchhead_ref { 16 | git_oid oid; 17 | unsigned int is_merge; 18 | char *ref_name; 19 | char *remote_url; 20 | } git_fetchhead_ref; 21 | 22 | int git_fetchhead_ref_create( 23 | git_fetchhead_ref **fetchhead_ref_out, 24 | git_oid *oid, 25 | unsigned int is_merge, 26 | const char *ref_name, 27 | const char *remote_url); 28 | 29 | int git_fetchhead_ref_cmp(const void *a, const void *b); 30 | 31 | int git_fetchhead_write(git_repository *repo, git_vector *fetchhead_refs); 32 | 33 | void git_fetchhead_ref_free(git_fetchhead_ref *fetchhead_ref); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /deps/test/mbedtls/BUGS.md: -------------------------------------------------------------------------------- 1 | ## Known issues 2 | 3 | Known issues in Mbed TLS are [tracked on GitHub](https://github.com/Mbed-TLS/mbedtls/issues). 4 | 5 | ## Reporting a bug 6 | 7 | If you think you've found a bug in Mbed TLS, please follow these steps: 8 | 9 | 1. Make sure you're using the latest version of a 10 | [maintained branch](BRANCHES.md): `main`, `development`, 11 | or a long-time support branch. 12 | 2. Check [GitHub](https://github.com/Mbed-TLS/mbedtls/issues) to see if 13 | your issue has already been reported. If not, … 14 | 3. If the issue is a security risk (for example: buffer overflow, 15 | data leak), please report it confidentially as described in 16 | [`SECURITY.md`](SECURITY.md). If not, … 17 | 4. Please [create an issue on on GitHub](https://github.com/Mbed-TLS/mbedtls/issues). 18 | 19 | Please do not use GitHub for support questions. If you want to know 20 | how to do something with Mbed TLS, please see [`SUPPORT.md`](SUPPORT.md) for available documentation and support channels. 21 | -------------------------------------------------------------------------------- /deps/test/libgit2/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "(gdb) Launch", 9 | "type": "cppdbg", 10 | "request": "launch", 11 | "program": "${workspaceFolder}/build/libgit2_tests", 12 | "args": [], 13 | "stopAtEntry": false, 14 | "cwd": "${fileDirname}", 15 | "environment": [], 16 | "externalConsole": false, 17 | "MIMode": "gdb", 18 | "setupCommands": [ 19 | { 20 | "description": "Enable pretty-printing for gdb", 21 | "text": "-enable-pretty-printing", 22 | "ignoreFailures": true 23 | } 24 | ] 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/hash/openssl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef INCLUDE_hash_openssl_h__ 9 | #define INCLUDE_hash_openssl_h__ 10 | 11 | #include "hash/sha.h" 12 | 13 | #ifndef GIT_OPENSSL_DYNAMIC 14 | # include 15 | #else 16 | 17 | typedef struct { 18 | unsigned int h0, h1, h2, h3, h4; 19 | unsigned int Nl, Nh; 20 | unsigned int data[16]; 21 | unsigned int num; 22 | } SHA_CTX; 23 | 24 | typedef struct { 25 | unsigned int h[8]; 26 | unsigned int Nl, Nh; 27 | unsigned int data[16]; 28 | unsigned int num, md_len; 29 | } SHA256_CTX; 30 | 31 | #endif 32 | 33 | #ifdef GIT_SHA1_OPENSSL 34 | struct git_hash_sha1_ctx { 35 | SHA_CTX c; 36 | }; 37 | #endif 38 | 39 | #ifdef GIT_SHA256_OPENSSL 40 | struct git_hash_sha256_ctx { 41 | SHA256_CTX c; 42 | }; 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET 13 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET 14 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET 15 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/p256-m/README.md: -------------------------------------------------------------------------------- 1 | The files within the `p256-m/` subdirectory originate from the [p256-m GitHub repository](https://github.com/mpg/p256-m). They are distributed here under a dual Apache-2.0 OR GPL-2.0-or-later license. They are authored by Manuel Pégourié-Gonnard. p256-m is a minimalistic implementation of ECDH and ECDSA on NIST P-256, especially suited to constrained 32-bit environments. Mbed TLS documentation for integrating drivers uses p256-m as an example of a software accelerator, and describes how it can be integrated alongside Mbed TLS. It should be noted that p256-m files in the Mbed TLS repo will not be updated regularly, so they may not have fixes and improvements present in the upstream project. 2 | 3 | The files `p256-m.c`, `p256-m.h` and `README.md` have been taken from the `p256-m` repository. 4 | It should be noted that p256-m deliberately does not supply its own cryptographically secure RNG function. As a result, the PSA RNG is used, with `p256_generate_random()` wrapping `psa_generate_random()`. 5 | -------------------------------------------------------------------------------- /deps/test/zlib/old/os2/zlib.def: -------------------------------------------------------------------------------- 1 | ; 2 | ; Slightly modified version of ../nt/zlib.dnt :-) 3 | ; 4 | 5 | LIBRARY Z 6 | DESCRIPTION "Zlib compression library for OS/2" 7 | CODE PRELOAD MOVEABLE DISCARDABLE 8 | DATA PRELOAD MOVEABLE MULTIPLE 9 | 10 | EXPORTS 11 | adler32 12 | compress 13 | crc32 14 | deflate 15 | deflateCopy 16 | deflateEnd 17 | deflateInit2_ 18 | deflateInit_ 19 | deflateParams 20 | deflateReset 21 | deflateSetDictionary 22 | gzclose 23 | gzdopen 24 | gzerror 25 | gzflush 26 | gzopen 27 | gzread 28 | gzwrite 29 | inflate 30 | inflateEnd 31 | inflateInit2_ 32 | inflateInit_ 33 | inflateReset 34 | inflateSetDictionary 35 | inflateSync 36 | uncompress 37 | zlibVersion 38 | gzprintf 39 | gzputc 40 | gzgetc 41 | gzseek 42 | gzrewind 43 | gztell 44 | gzeof 45 | gzsetparams 46 | zError 47 | inflateSyncPoint 48 | get_crc_table 49 | compress2 50 | gzputs 51 | gzgets 52 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/minizip/make_vms.com: -------------------------------------------------------------------------------- 1 | $ if f$search("ioapi.h_orig") .eqs. "" then copy ioapi.h ioapi.h_orig 2 | $ open/write zdef vmsdefs.h 3 | $ copy sys$input: zdef 4 | $ deck 5 | #define unix 6 | #define fill_zlib_filefunc64_32_def_from_filefunc32 fillzffunc64from 7 | #define Write_Zip64EndOfCentralDirectoryLocator Write_Zip64EoDLocator 8 | #define Write_Zip64EndOfCentralDirectoryRecord Write_Zip64EoDRecord 9 | #define Write_EndOfCentralDirectoryRecord Write_EoDRecord 10 | $ eod 11 | $ close zdef 12 | $ copy vmsdefs.h,ioapi.h_orig ioapi.h 13 | $ cc/include=[--]/prefix=all ioapi.c 14 | $ cc/include=[--]/prefix=all miniunz.c 15 | $ cc/include=[--]/prefix=all unzip.c 16 | $ cc/include=[--]/prefix=all minizip.c 17 | $ cc/include=[--]/prefix=all zip.c 18 | $ link miniunz,unzip,ioapi,[--]libz.olb/lib 19 | $ link minizip,zip,ioapi,[--]libz.olb/lib 20 | $ mcr []minizip test minizip_info.txt 21 | $ mcr []miniunz -l test.zip 22 | $ rename minizip_info.txt; minizip_info.txt_old 23 | $ mcr []miniunz test.zip 24 | $ delete test.zip;* 25 | $exit 26 | -------------------------------------------------------------------------------- /deps/test/mbedtls/doxygen/input/doc_rng.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file doc_rng.h 3 | * 4 | * \brief Random number generator (RNG) module documentation file. 5 | */ 6 | /* 7 | * 8 | * Copyright The Mbed TLS Contributors 9 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 | */ 11 | 12 | /** 13 | * @addtogroup rng_module Random number generator (RNG) module 14 | * 15 | * The Random number generator (RNG) module provides random number 16 | * generation, see \c mbedtls_ctr_drbg_random(). 17 | * 18 | * The block-cipher counter-mode based deterministic random 19 | * bit generator (CTR_DBRG) as specified in NIST SP800-90. It needs an external 20 | * source of entropy. For these purposes \c mbedtls_entropy_func() can be used. 21 | * This is an implementation based on a simple entropy accumulator design. 22 | * 23 | * Meaning that there seems to be no practical algorithm that can guess 24 | * the next bit with a probability larger than 1/2 in an output sequence. 25 | * 26 | * This module can be used to generate random numbers. 27 | */ 28 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/vstudio/vc10/miniunz.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {048af943-022b-4db6-beeb-a54c34774ee2} 6 | cpp;c;cxx;def;odl;idl;hpj;bat 7 | 8 | 9 | {c1d600d2-888f-4aea-b73e-8b0dd9befa0c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {0844199a-966b-4f19-81db-1e0125e141b9} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/vstudio/vc10/minizip.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {c0419b40-bf50-40da-b153-ff74215b79de} 6 | cpp;c;cxx;def;odl;idl;hpj;bat 7 | 8 | 9 | {bb87b070-735b-478e-92ce-7383abb2f36c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {f46ab6a6-548f-43cb-ae96-681abb5bd5db} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/minizip/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libminizip.la 2 | 3 | if COND_DEMOS 4 | bin_PROGRAMS = miniunzip minizip 5 | endif 6 | 7 | zlib_top_srcdir = $(top_srcdir)/../.. 8 | zlib_top_builddir = $(top_builddir)/../.. 9 | 10 | AM_CPPFLAGS = -I$(zlib_top_srcdir) 11 | AM_LDFLAGS = -L$(zlib_top_builddir) 12 | 13 | if WIN32 14 | iowin32_src = iowin32.c 15 | iowin32_h = iowin32.h 16 | endif 17 | 18 | libminizip_la_SOURCES = \ 19 | ioapi.c \ 20 | mztools.c \ 21 | unzip.c \ 22 | zip.c \ 23 | ${iowin32_src} 24 | 25 | libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz 26 | 27 | minizip_includedir = $(includedir)/minizip 28 | minizip_include_HEADERS = \ 29 | crypt.h \ 30 | ioapi.h \ 31 | mztools.h \ 32 | unzip.h \ 33 | zip.h \ 34 | ${iowin32_h} 35 | 36 | pkgconfigdir = $(libdir)/pkgconfig 37 | pkgconfig_DATA = minizip.pc 38 | 39 | EXTRA_PROGRAMS = miniunzip minizip 40 | 41 | miniunzip_SOURCES = miniunz.c 42 | miniunzip_LDADD = libminizip.la 43 | 44 | minizip_SOURCES = minizip.c 45 | minizip_LDADD = libminizip.la -lz 46 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {fa61a89f-93fc-4c89-b29e-36224b7592f4} 6 | cpp;c;cxx;def;odl;idl;hpj;bat 7 | 8 | 9 | {d4b85da0-2ba2-4934-b57f-e2584e3848ee} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {e573e075-00bd-4a7d-bd67-a8cc9bfc5aca} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /deps/test/mbedtls/configs/README.txt: -------------------------------------------------------------------------------- 1 | This directory contains example configuration files. 2 | 3 | The examples are generally focused on a particular usage case (eg, support for 4 | a restricted number of ciphersuites) and aim at minimizing resource usage for 5 | this target. They can be used as a basis for custom configurations. 6 | 7 | These files are complete replacements for the default mbedtls_config.h. To use one of 8 | them, you can pick one of the following methods: 9 | 10 | 1. Replace the default file include/mbedtls/mbedtls_config.h with the chosen one. 11 | 12 | 2. Define MBEDTLS_CONFIG_FILE and adjust the include path accordingly. 13 | For example, using make: 14 | 15 | CFLAGS="-I$PWD/configs -DMBEDTLS_CONFIG_FILE=''" make 16 | 17 | Or, using cmake: 18 | 19 | find . -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} + 20 | CFLAGS="-I$PWD/configs -DMBEDTLS_CONFIG_FILE=''" cmake . 21 | make 22 | 23 | Note that the second method also works if you want to keep your custom 24 | configuration file outside the Mbed TLS tree. 25 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/nuget/nuget.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.0.31903.59 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nuget", "nuget.csproj", "{B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(SolutionProperties) = preSolution 14 | HideSolutionNode = FALSE 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 18 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Debug|Any CPU.Build.0 = Debug|Any CPU 19 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 | {B1BD3984-EF8F-4E9D-9A94-EB784E5EB1E8}.Release|Any CPU.Build.0 = Release|Any CPU 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/README.md: -------------------------------------------------------------------------------- 1 | # cli 2 | 3 | A git-compatible command-line interface that uses libgit2. 4 | 5 | ## Adding commands 6 | 7 | 1. Individual commands have a `main`-like top-level entrypoint. For example: 8 | 9 | ```c 10 | int cmd_help(int argc, char **argv) 11 | ``` 12 | 13 | Although this is the same signature as `main`, commands are not built as 14 | individual standalone executables, they'll be linked into the main cli. 15 | (Though there may be an option for command executables to be built as 16 | standalone executables in the future.) 17 | 18 | 2. Commands are prototyped in `cmd.h` and added to `main.c`'s list of 19 | commands (`cli_cmds[]`). Commands should be specified with their name, 20 | entrypoint and a brief description that can be printed in `git help`. 21 | This is done because commands are linked into the main cli. 22 | 23 | 3. Commands should accept a `--help` option that displays their help 24 | information. This will be shown when a user runs ` --help` and 25 | when a user runs `help `. 26 | 27 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/vstudio/vc12/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.3.1\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/vstudio/vc14/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.3.1\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/vstudio/vc17/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.3.1\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/streams/openssl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_streams_openssl_h__ 8 | #define INCLUDE_streams_openssl_h__ 9 | 10 | #include "common.h" 11 | #include "streams/openssl_legacy.h" 12 | #include "streams/openssl_dynamic.h" 13 | 14 | #include "git2/sys/stream.h" 15 | 16 | extern int git_openssl_stream_global_init(void); 17 | 18 | #if defined(GIT_OPENSSL) && !defined(GIT_OPENSSL_DYNAMIC) 19 | # include 20 | # include 21 | # include 22 | # include 23 | # endif 24 | 25 | #ifdef GIT_OPENSSL 26 | extern int git_openssl__set_cert_location(const char *file, const char *path); 27 | extern int git_openssl_stream_new(git_stream **out, const char *host, const char *port); 28 | extern int git_openssl_stream_wrap(git_stream **out, git_stream *in, const char *host); 29 | #endif 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/ExperimentalFeatures.cmake: -------------------------------------------------------------------------------- 1 | # Experimental feature support for libgit2 - developers can opt in to 2 | # experimental functionality, like sha256 support. When experimental 3 | # functionality is enabled, we set both a cmake flag *and* a compile 4 | # definition. The cmake flag is used to generate `experimental.h`, 5 | # which will be installed by a `make install`. But the compile definition 6 | # is used by the libgit2 sources to detect the functionality at library 7 | # build time. This allows us to have an in-tree `experimental.h` with 8 | # *no* experiments enabled. This lets us support users who build without 9 | # cmake and cannot generate the `experimental.h` file. 10 | 11 | if(EXPERIMENTAL_SHA256) 12 | add_feature_info("SHA256 API" ON "experimental SHA256 APIs") 13 | 14 | set(EXPERIMENTAL 1) 15 | set(GIT_EXPERIMENTAL_SHA256 1) 16 | add_definitions(-DGIT_EXPERIMENTAL_SHA256=1) 17 | else() 18 | add_feature_info("SHA256 API" OFF "experimental SHA256 APIs") 19 | endif() 20 | 21 | if(EXPERIMENTAL) 22 | set(LIBGIT2_FILENAME "${LIBGIT2_FILENAME}-experimental") 23 | endif() 24 | -------------------------------------------------------------------------------- /deps/test/mbedtls/doxygen/input/doc_hashing.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file doc_hashing.h 3 | * 4 | * \brief Hashing module documentation file. 5 | */ 6 | /* 7 | * 8 | * Copyright The Mbed TLS Contributors 9 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 | */ 11 | 12 | /** 13 | * @addtogroup hashing_module Hashing module 14 | * 15 | * The Message Digest (MD) or Hashing module provides one-way hashing 16 | * functions. Such functions can be used for creating a hash message 17 | * authentication code (HMAC) when sending a message. Such a HMAC can be used 18 | * in combination with a private key for authentication, which is a message 19 | * integrity control. 20 | * 21 | * All hash algorithms can be accessed via the generic MD layer (see 22 | * \c mbedtls_md_setup()) 23 | * 24 | * The following hashing-algorithms are provided: 25 | * - MD5 128-bit one-way hash function by Ron Rivest. 26 | * - SHA-1, SHA-256, SHA-384/512 160-bit or more one-way hash functions by 27 | * NIST and NSA. 28 | * 29 | * This module provides one-way hashing which can be used for authentication. 30 | */ 31 | -------------------------------------------------------------------------------- /deps/test/zlib/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright notice: 2 | 3 | (C) 1995-2022 Jean-loup Gailly and Mark Adler 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | Jean-loup Gailly Mark Adler 22 | jloup@gzip.org madler@alumni.caltech.edu 23 | -------------------------------------------------------------------------------- /deps/test/libgit2/include/git2/oidarray.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_git_oidarray_h__ 8 | #define INCLUDE_git_oidarray_h__ 9 | 10 | #include "common.h" 11 | #include "oid.h" 12 | 13 | GIT_BEGIN_DECL 14 | 15 | /** Array of object ids */ 16 | typedef struct git_oidarray { 17 | git_oid *ids; 18 | size_t count; 19 | } git_oidarray; 20 | 21 | /** 22 | * Free the object IDs contained in an oid_array. This method should 23 | * be called on `git_oidarray` objects that were provided by the 24 | * library. Not doing so will result in a memory leak. 25 | * 26 | * This does not free the `git_oidarray` itself, since the library will 27 | * never allocate that object directly itself. 28 | * 29 | * @param array git_oidarray from which to free oid data 30 | */ 31 | GIT_EXTERN(void) git_oidarray_dispose(git_oidarray *array); 32 | 33 | /** @} */ 34 | GIT_END_DECL 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/win32/msvc-compat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_win32_msvc_compat_h__ 8 | #define INCLUDE_win32_msvc_compat_h__ 9 | 10 | #if defined(_MSC_VER) 11 | 12 | typedef unsigned short mode_t; 13 | typedef SSIZE_T ssize_t; 14 | 15 | #ifdef _WIN64 16 | # define SSIZE_MAX _I64_MAX 17 | #else 18 | # define SSIZE_MAX LONG_MAX 19 | #endif 20 | 21 | #define strcasecmp(s1, s2) _stricmp(s1, s2) 22 | #define strncasecmp(s1, s2, c) _strnicmp(s1, s2, c) 23 | 24 | #endif 25 | 26 | /* 27 | * Offer GIT_LIBGIT2_CALL for our calling conventions (__cdecl, always). 28 | * This is useful for providing callbacks to userspace code. 29 | * 30 | * Offer GIT_SYSTEM_CALL for the system calling conventions (__stdcall on 31 | * Win32). Useful for providing callbacks to system libraries. 32 | */ 33 | #define GIT_LIBGIT2_CALL __cdecl 34 | #define GIT_SYSTEM_CALL NTAPI 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/zlib/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright notice: 2 | 3 | (C) 1995-2022 Jean-loup Gailly and Mark Adler 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | Jean-loup Gailly Mark Adler 22 | jloup@gzip.org madler@alumni.caltech.edu 23 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/ctr.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file ctr.h 3 | * 4 | * \brief This file contains common functionality for counter algorithms. 5 | * 6 | * Copyright The Mbed TLS Contributors 7 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 8 | */ 9 | 10 | #ifndef MBEDTLS_CTR_H 11 | #define MBEDTLS_CTR_H 12 | 13 | #include "common.h" 14 | 15 | /** 16 | * \brief Increment a big-endian 16-byte value. 17 | * This is quite performance-sensitive for AES-CTR and CTR-DRBG. 18 | * 19 | * \param n A 16-byte value to be incremented. 20 | */ 21 | static inline void mbedtls_ctr_increment_counter(uint8_t n[16]) 22 | { 23 | // The 32-bit version seems to perform about the same as a 64-bit version 24 | // on 64-bit architectures, so no need to define a 64-bit version. 25 | for (int i = 3;; i--) { 26 | uint32_t x = MBEDTLS_GET_UINT32_BE(n, i << 2); 27 | x += 1; 28 | MBEDTLS_PUT_UINT32_BE(x, n, i << 2); 29 | if (x != 0 || i == 0) { 30 | break; 31 | } 32 | } 33 | } 34 | 35 | #endif /* MBEDTLS_CTR_H */ 36 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/vstudio/vc10/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.3.1\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/vstudio/vc11/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.3.1\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/vstudio/vc9/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1, 3, 1, 0 6 | PRODUCTVERSION 1, 3, 1, 0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.3.1\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2024 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/README.md: -------------------------------------------------------------------------------- 1 | The files in this directory stem from [Project Everest](https://project-everest.github.io/) and are distributed under the Apache 2.0 license. 2 | 3 | This is a formally verified implementation of Curve25519-based handshakes. The C code is automatically derived from the (verified) [original implementation](https://github.com/project-everest/hacl-star/tree/master/code/curve25519) in the [F* language](https://github.com/fstarlang/fstar) by [KreMLin](https://github.com/fstarlang/kremlin). In addition to the improved safety and security of the implementation, it is also significantly faster than the default implementation of Curve25519 in mbedTLS. 4 | 5 | The caveat is that not all platforms are supported, although the version in `everest/library/legacy` should work on most systems. The main issue is that some platforms do not provide a 128-bit integer type and KreMLin therefore has to use additional (also verified) code to simulate them, resulting in less of a performance gain overall. Explicitly supported platforms are currently `x86` and `x86_64` using gcc or clang, and Visual C (2010 and later). 6 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/md_wrap.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file md_wrap.h 3 | * 4 | * \brief Message digest wrappers. 5 | * 6 | * \warning This in an internal header. Do not include directly. 7 | * 8 | * \author Adriaan de Jong 9 | */ 10 | /* 11 | * Copyright The Mbed TLS Contributors 12 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 13 | */ 14 | #ifndef MBEDTLS_MD_WRAP_H 15 | #define MBEDTLS_MD_WRAP_H 16 | 17 | #include "mbedtls/build_info.h" 18 | 19 | #include "mbedtls/md.h" 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | /** 26 | * Message digest information. 27 | * Allows message digest functions to be called in a generic way. 28 | */ 29 | struct mbedtls_md_info_t { 30 | /** Digest identifier */ 31 | mbedtls_md_type_t type; 32 | 33 | /** Output length of the digest function in bytes */ 34 | unsigned char size; 35 | 36 | #if defined(MBEDTLS_MD_C) 37 | /** Block length of the digest function in bytes */ 38 | unsigned char block_size; 39 | #endif 40 | }; 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | #endif /* MBEDTLS_MD_WRAP_H */ 47 | -------------------------------------------------------------------------------- /deps/test/mbedtls/pkgconfig/JoinPaths.cmake: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 2 | # This module provides function for joining paths 3 | # known from most languages 4 | # 5 | # Copyright The Mbed TLS Contributors 6 | # 7 | # This script originates from: 8 | # - https://github.com/jtojnar/cmake-snips 9 | # Jan has provided re-licensing under Apache 2.0 and GPL 2.0+ and 10 | # allowed for the change of Copyright. 11 | # 12 | # Modelled after Python’s os.path.join 13 | # https://docs.python.org/3.7/library/os.path.html#os.path.join 14 | # Windows not supported 15 | function(join_paths joined_path first_path_segment) 16 | set(temp_path "${first_path_segment}") 17 | foreach(current_segment IN LISTS ARGN) 18 | if(NOT ("${current_segment}" STREQUAL "")) 19 | if(IS_ABSOLUTE "${current_segment}") 20 | set(temp_path "${current_segment}") 21 | else() 22 | set(temp_path "${temp_path}/${current_segment}") 23 | endif() 24 | endif() 25 | endforeach() 26 | set(${joined_path} "${temp_path}" PARENT_SCOPE) 27 | endfunction() 28 | -------------------------------------------------------------------------------- /deps/test/mbedtls/configs/ext/README.md: -------------------------------------------------------------------------------- 1 | Summary 2 | ------- 3 | 4 | The two files: 5 | 6 | * crypto_config_profile_medium.h 7 | * tfm_mbedcrypto_config_profile_medium.h 8 | 9 | are copyright The Mbed TLS Contributors, and are distributed under the license normally 10 | used by Mbed TLS: a dual Apache 2.0 or GPLv2-or-later license. 11 | 12 | Background 13 | ---------- 14 | 15 | The two files crypto_config_profile_medium.h and tfm_mbedcrypto_config_profile_medium.h 16 | are taken verbatim from the TF-M source code here: 17 | 18 | https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/lib/ext/mbedcrypto/mbedcrypto_config 19 | 20 | In TF-M, they are distributed under a 3-Clause BSD license, as noted at the top of the files. 21 | 22 | In Mbed TLS, with permission from the TF-M project, they are distributed under a dual [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) OR [GPL-2.0-or-later](https://spdx.org/licenses/GPL-2.0-or-later.html) license, with copyright assigned to The Mbed TLS Contributors. 23 | 24 | We only retain the note at the top of the files because we are taking the files verbatim, for ease of 25 | maintenance. 26 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/include/everest/vs2013/stdbool.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Custom stdbool.h for VS2010 KreMLin requires these definitions, 3 | * but VS2010 doesn't provide them. 4 | * 5 | * Copyright 2016-2018 INRIA and Microsoft Corporation 6 | * SPDX-License-Identifier: Apache-2.0 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 9 | * not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 16 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * 20 | * This file is part of Mbed TLS (https://tls.mbed.org) 21 | */ 22 | 23 | #ifndef _STDBOOL_H_VS2010 24 | #define _STDBOOL_H_VS2010 25 | 26 | typedef int bool; 27 | 28 | static bool true = 1; 29 | static bool false = 0; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/opt_usage.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef CLI_opt_usage_h__ 9 | #define CLI_opt_usage_h__ 10 | 11 | /** 12 | * Prints usage information to the given file handle. 13 | * 14 | * @param file The file to print information to 15 | * @param command The name of the command to use when printing 16 | * @param subcommand The name of the subcommand (eg "checkout") to use when printing, or NULL to skip 17 | * @param specs The specifications allowed by the command 18 | * @return 0 on success, -1 on failure 19 | */ 20 | int cli_opt_usage_fprint( 21 | FILE *file, 22 | const char *command, 23 | const char *subcommand, 24 | const cli_opt_spec specs[]); 25 | 26 | int cli_opt_usage_error( 27 | const char *subcommand, 28 | const cli_opt_spec specs[], 29 | const cli_opt *invalid_opt); 30 | 31 | int cli_opt_help_fprint( 32 | FILE *file, 33 | const cli_opt_spec specs[]); 34 | 35 | #endif /* CLI_opt_usage_h__ */ 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (Expat) 2 | 3 | Copyright (c) contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/include/everest/kremlib.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2018 INRIA and Microsoft Corporation 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 7 | * not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 14 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | * 18 | * This file is part of Mbed TLS (https://tls.mbed.org) and 19 | * originated from Project Everest (https://project-everest.github.io/) 20 | */ 21 | 22 | #ifndef __KREMLIB_H 23 | #define __KREMLIB_H 24 | 25 | #include "kremlin/internal/target.h" 26 | #include "kremlin/internal/types.h" 27 | #include "kremlin/c_endianness.h" 28 | 29 | #endif /* __KREMLIB_H */ 30 | -------------------------------------------------------------------------------- /deps/test/mbedtls/.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | 3 | Please write a few sentences describing the overall goals of the pull request's commits. 4 | 5 | 6 | 7 | ## PR checklist 8 | 9 | Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature") 10 | 11 | - [ ] **changelog** provided, or not required 12 | - [ ] **3.6 backport** done, or not required 13 | - [ ] **2.28 backport** done, or not required 14 | - [ ] **tests** provided, or not required 15 | 16 | 17 | 18 | ## Notes for the submitter 19 | 20 | Please refer to the [contributing guidelines](https://github.com/Mbed-TLS/mbedtls/blob/development/CONTRIBUTING.md), especially the 21 | checklist for PR contributors. 22 | 23 | Help make review efficient: 24 | * Multiple simple commits 25 | - please structure your PR into a series of small commits, each of which does one thing 26 | * Avoid force-push 27 | - please do not force-push to update your PR - just add new commit(s) 28 | * See our [Guidelines for Contributors](https://mbed-tls.readthedocs.io/en/latest/reviews/review-for-contributors/) for more details about the review process. 29 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/ntlmclient/unicode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Edward Thomson. All rights reserved. 3 | * 4 | * This file is part of ntlmclient, distributed under the MIT license. 5 | * For full terms and copyright information, and for third-party 6 | * copyright information, see the included LICENSE.txt file. 7 | */ 8 | 9 | #ifndef PRIVATE_UNICODE_H__ 10 | #define PRIVATE_UNICODE_H__ 11 | 12 | #include "compat.h" 13 | 14 | #ifdef UNICODE_ICONV 15 | # include "unicode_iconv.h" 16 | #elif UNICODE_BUILTIN 17 | # include "unicode_builtin.h" 18 | #endif 19 | 20 | #define NTLM_UNICODE_MAX_LEN 2048 21 | 22 | typedef struct ntlm_unicode_ctx ntlm_unicode_ctx; 23 | 24 | extern bool ntlm_unicode_init(ntlm_client *ntlm); 25 | 26 | bool ntlm_unicode_utf8_to_16( 27 | char **converted, 28 | size_t *converted_len, 29 | ntlm_client *ntlm, 30 | const char *string, 31 | size_t string_len); 32 | 33 | bool ntlm_unicode_utf16_to_8( 34 | char **converted, 35 | size_t *converted_len, 36 | ntlm_client *ntlm, 37 | const char *string, 38 | size_t string_len); 39 | 40 | extern void ntlm_unicode_shutdown(ntlm_client *ntlm); 41 | 42 | #endif /* PRIVATE_UNICODE_H__ */ 43 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/AddCFlagIfSupported.cmake: -------------------------------------------------------------------------------- 1 | # - Append compiler flag to CMAKE_C_FLAGS if compiler supports it 2 | # ADD_C_FLAG_IF_SUPPORTED() 3 | # - the compiler flag to test 4 | # This internally calls the CHECK_C_COMPILER_FLAG macro. 5 | 6 | include(CheckCCompilerFlag) 7 | 8 | macro(ADD_C_FLAG _FLAG) 9 | string(TOUPPER ${_FLAG} UPCASE) 10 | string(REGEX REPLACE "[-=]" "_" UPCASE_PRETTY ${UPCASE}) 11 | string(REGEX REPLACE "^_+" "" UPCASE_PRETTY ${UPCASE_PRETTY}) 12 | check_c_compiler_flag(${_FLAG} IS_${UPCASE_PRETTY}_SUPPORTED) 13 | 14 | if(IS_${UPCASE_PRETTY}_SUPPORTED) 15 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_FLAG}") 16 | else() 17 | message(FATAL_ERROR "Required flag ${_FLAG} is not supported") 18 | endif() 19 | endmacro() 20 | 21 | macro(ADD_C_FLAG_IF_SUPPORTED _FLAG) 22 | string(TOUPPER ${_FLAG} UPCASE) 23 | string(REGEX REPLACE "[-=]" "_" UPCASE_PRETTY ${UPCASE}) 24 | string(REGEX REPLACE "^_+" "" UPCASE_PRETTY ${UPCASE_PRETTY}) 25 | check_c_compiler_flag(${_FLAG} IS_${UPCASE_PRETTY}_SUPPORTED) 26 | 27 | if(IS_${UPCASE_PRETTY}_SUPPORTED) 28 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_FLAG}") 29 | endif() 30 | endmacro() 31 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/cmd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef CLI_cmd_h__ 9 | #define CLI_cmd_h__ 10 | 11 | /* Command definitions */ 12 | typedef struct { 13 | const char *name; 14 | int (*fn)(int argc, char **argv); 15 | const char *desc; 16 | } cli_cmd_spec; 17 | 18 | /* Options that are common to all commands (eg --help, --git-dir) */ 19 | extern const cli_opt_spec cli_common_opts[]; 20 | 21 | /* All the commands supported by the CLI */ 22 | extern const cli_cmd_spec cli_cmds[]; 23 | 24 | /* Find a command by name */ 25 | extern const cli_cmd_spec *cli_cmd_spec_byname(const char *name); 26 | 27 | /* Commands */ 28 | extern int cmd_cat_file(int argc, char **argv); 29 | extern int cmd_clone(int argc, char **argv); 30 | extern int cmd_config(int argc, char **argv); 31 | extern int cmd_hash_object(int argc, char **argv); 32 | extern int cmd_help(int argc, char **argv); 33 | extern int cmd_index_pack(int argc, char **argv); 34 | 35 | #endif /* CLI_cmd_h__ */ 36 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/diff_xdiff.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_diff_xdiff_h__ 8 | #define INCLUDE_diff_xdiff_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "diff.h" 13 | #include "xdiff.h" 14 | #include "patch_generate.h" 15 | 16 | /* xdiff cannot cope with large files. these files should not be passed to 17 | * xdiff. callers should treat these large files as binary. 18 | */ 19 | #define GIT_XDIFF_MAX_SIZE (INT64_C(1024) * 1024 * 1023) 20 | 21 | /* A git_xdiff_output is a git_patch_generate_output with extra fields 22 | * necessary to use libxdiff. Calling git_xdiff_init() will set the diff_cb 23 | * field of the output to use xdiff to generate the diffs. 24 | */ 25 | typedef struct { 26 | git_patch_generated_output output; 27 | 28 | xdemitconf_t config; 29 | xpparam_t params; 30 | xdemitcb_t callback; 31 | } git_xdiff_output; 32 | 33 | void git_xdiff_init(git_xdiff_output *xo, const git_diff_options *opts); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/psa_crypto_driver_wrappers_no_static.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Function signatures for functionality that can be provided by 3 | * cryptographic accelerators. 4 | */ 5 | /* Copyright The Mbed TLS Contributors 6 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 7 | */ 8 | 9 | #ifndef PSA_CRYPTO_DRIVER_WRAPPERS_NO_STATIC_H 10 | #define PSA_CRYPTO_DRIVER_WRAPPERS_NO_STATIC_H 11 | 12 | #include "psa/crypto.h" 13 | #include "psa/crypto_driver_common.h" 14 | 15 | psa_status_t psa_driver_wrapper_export_public_key( 16 | const psa_key_attributes_t *attributes, 17 | const uint8_t *key_buffer, size_t key_buffer_size, 18 | uint8_t *data, size_t data_size, size_t *data_length); 19 | 20 | psa_status_t psa_driver_wrapper_get_key_buffer_size( 21 | const psa_key_attributes_t *attributes, 22 | size_t *key_buffer_size); 23 | 24 | psa_status_t psa_driver_wrapper_get_builtin_key( 25 | psa_drv_slot_number_t slot_number, 26 | psa_key_attributes_t *attributes, 27 | uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length); 28 | 29 | #endif /* PSA_CRYPTO_DRIVER_WRAPPERS_NO_STATIC_H */ 30 | 31 | /* End of automatically generated file. */ 32 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/streams/tls.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_streams_tls_h__ 8 | #define INCLUDE_streams_tls_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/sys/stream.h" 13 | 14 | /** 15 | * Create a TLS stream with the most appropriate backend available for 16 | * the current platform, whether that's SecureTransport on macOS, 17 | * OpenSSL or mbedTLS on other Unixes, or something else entirely. 18 | */ 19 | extern int git_tls_stream_new(git_stream **out, const char *host, const char *port); 20 | 21 | /** 22 | * Create a TLS stream on top of an existing insecure stream, using 23 | * the most appropriate backend available for the current platform. 24 | * 25 | * This allows us to create a CONNECT stream on top of a proxy; 26 | * using SecureTransport on macOS, OpenSSL or mbedTLS on other 27 | * Unixes, or something else entirely. 28 | */ 29 | extern int git_tls_stream_wrap(git_stream **out, git_stream *in, const char *host); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /deps/test/mbedtls/.readthedocs.yaml: -------------------------------------------------------------------------------- 1 | # .readthedocs.yaml 2 | # Read the Docs configuration file 3 | # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details 4 | 5 | # Required 6 | version: 2 7 | 8 | # Include the framework submodule in the build 9 | submodules: 10 | include: 11 | - framework 12 | 13 | # Set the version of Python and other tools you might need 14 | build: 15 | os: ubuntu-20.04 16 | tools: 17 | python: "3.9" 18 | jobs: 19 | pre_build: 20 | - ./scripts/apidoc_full.sh 21 | - breathe-apidoc -o docs/api apidoc/xml 22 | post_build: 23 | - | 24 | # Work around Readthedocs bug: Command parsing fails if the 'if' statement is on the first line 25 | if [ "$READTHEDOCS_VERSION" = "development" ]; then 26 | "$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml 27 | fi 28 | 29 | # Build documentation in the docs/ directory with Sphinx 30 | sphinx: 31 | builder: dirhtml 32 | configuration: docs/conf.py 33 | 34 | # Optionally declare the Python requirements required to build your docs 35 | python: 36 | install: 37 | - requirements: docs/requirements.txt 38 | -------------------------------------------------------------------------------- /deps/test/libgit2/cmake/FindPkgLibraries.cmake: -------------------------------------------------------------------------------- 1 | include(FindPkgConfig) 2 | 3 | # This function will find and set up a pkg-config based module. 4 | # If a pc-file was found, it will resolve library paths to 5 | # absolute paths. Furthermore, the function will automatically 6 | # fall back to use static libraries in case no dynamic libraries 7 | # were found. 8 | function(FIND_PKGLIBRARIES prefix package) 9 | pkg_check_modules(${prefix} ${package}) 10 | if(NOT ${prefix}_FOUND) 11 | return() 12 | endif() 13 | 14 | foreach(LIBRARY ${${prefix}_LIBRARIES}) 15 | find_library(${LIBRARY}_RESOLVED ${LIBRARY} PATHS ${${prefix}_LIBRARY_DIRS}) 16 | if(${${LIBRARY}_RESOLVED} STREQUAL "${LIBRARY}_RESOLVED-NOTFOUND") 17 | message(FATAL_ERROR "could not resolve ${LIBRARY}") 18 | endif() 19 | list(APPEND RESOLVED_LIBRARIES ${${LIBRARY}_RESOLVED}) 20 | endforeach() 21 | 22 | set(${prefix}_FOUND 1 PARENT_SCOPE) 23 | set(${prefix}_LIBRARIES ${RESOLVED_LIBRARIES} PARENT_SCOPE) 24 | set(${prefix}_INCLUDE_DIRS ${${prefix}_INCLUDE_DIRS} PARENT_SCOPE) 25 | set(${prefix}_LDFLAGS ${${prefix}_LDFLAGS} PARENT_SCOPE) 26 | 27 | message(STATUS " Resolved libraries: ${RESOLVED_LIBRARIES}") 28 | endfunction() 29 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/hash/collisiondetect.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "collisiondetect.h" 9 | 10 | int git_hash_sha1_global_init(void) 11 | { 12 | return 0; 13 | } 14 | 15 | int git_hash_sha1_ctx_init(git_hash_sha1_ctx *ctx) 16 | { 17 | return git_hash_sha1_init(ctx); 18 | } 19 | 20 | void git_hash_sha1_ctx_cleanup(git_hash_sha1_ctx *ctx) 21 | { 22 | GIT_UNUSED(ctx); 23 | } 24 | 25 | int git_hash_sha1_init(git_hash_sha1_ctx *ctx) 26 | { 27 | GIT_ASSERT_ARG(ctx); 28 | SHA1DCInit(&ctx->c); 29 | return 0; 30 | } 31 | 32 | int git_hash_sha1_update(git_hash_sha1_ctx *ctx, const void *data, size_t len) 33 | { 34 | GIT_ASSERT_ARG(ctx); 35 | SHA1DCUpdate(&ctx->c, data, len); 36 | return 0; 37 | } 38 | 39 | int git_hash_sha1_final(unsigned char *out, git_hash_sha1_ctx *ctx) 40 | { 41 | GIT_ASSERT_ARG(ctx); 42 | if (SHA1DCFinal(out, &ctx->c)) { 43 | git_error_set(GIT_ERROR_SHA, "SHA1 collision attack detected"); 44 | return -1; 45 | } 46 | 47 | return 0; 48 | } 49 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/bignum_mod_raw_invasive.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file bignum_mod_raw_invasive.h 3 | * 4 | * \brief Function declarations for invasive functions of Low-level 5 | * modular bignum. 6 | */ 7 | /** 8 | * Copyright The Mbed TLS Contributors 9 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 | */ 11 | 12 | #ifndef MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H 13 | #define MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H 14 | 15 | #include "common.h" 16 | #include "mbedtls/bignum.h" 17 | #include "bignum_mod.h" 18 | 19 | #if defined(MBEDTLS_TEST_HOOKS) 20 | 21 | /** Convert the result of a quasi-reduction to its canonical representative. 22 | * 23 | * \param[in,out] X The address of the MPI to be converted. Must have the 24 | * same number of limbs as \p N. The input value must 25 | * be in range 0 <= X < 2N. 26 | * \param[in] N The address of the modulus. 27 | */ 28 | MBEDTLS_STATIC_TESTABLE 29 | void mbedtls_mpi_mod_raw_fix_quasi_reduction(mbedtls_mpi_uint *X, 30 | const mbedtls_mpi_mod_modulus *N); 31 | 32 | #endif /* MBEDTLS_TEST_HOOKS */ 33 | 34 | #endif /* MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H */ 35 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/llhttp/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | This software is licensed under the MIT License. 2 | 3 | Copyright Fedor Indutny, 2018. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a 6 | copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to permit 10 | persons to whom the Software is furnished to do so, subject to the 11 | following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included 14 | in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 19 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 20 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 21 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 22 | USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/include/everest/vs2013/Hacl_Curve25519.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. 2 | Licensed under the Apache 2.0 License. */ 3 | 4 | /* This file was generated by KreMLin 5 | * KreMLin invocation: /mnt/e/everest/verify/kremlin/krml -fc89 -fparentheses -fno-shadow -header /mnt/e/everest/verify/hdrcLh -minimal -fc89 -fparentheses -fno-shadow -header /mnt/e/everest/verify/hdrcLh -minimal -I /mnt/e/everest/verify/hacl-star/code/lib/kremlin -I /mnt/e/everest/verify/kremlin/kremlib/compat -I /mnt/e/everest/verify/hacl-star/specs -I /mnt/e/everest/verify/hacl-star/specs/old -I . -ccopt -march=native -verbose -ldopt -flto -tmpdir x25519-c -I ../bignum -bundle Hacl.Curve25519=* -minimal -add-include "kremlib.h" -skip-compilation x25519-c/out.krml -o x25519-c/Hacl_Curve25519.c 6 | * F* version: 059db0c8 7 | * KreMLin version: 916c37ac 8 | */ 9 | 10 | 11 | 12 | #ifndef __Hacl_Curve25519_H 13 | #define __Hacl_Curve25519_H 14 | 15 | 16 | #include "kremlib.h" 17 | 18 | void Hacl_Curve25519_crypto_scalarmult(uint8_t *mypublic, uint8_t *secret, uint8_t *basepoint); 19 | 20 | #define __Hacl_Curve25519_H_DEFINED 21 | #endif 22 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/xdiff/xprepare.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LibXDiff by Davide Libenzi ( File Differential Library ) 3 | * Copyright (C) 2003 Davide Libenzi 4 | * 5 | * This library is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU Lesser General Public 7 | * License as published by the Free Software Foundation; either 8 | * version 2.1 of the License, or (at your option) any later version. 9 | * 10 | * This library is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | * Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public 16 | * License along with this library; if not, see 17 | * . 18 | * 19 | * Davide Libenzi 20 | * 21 | */ 22 | 23 | #if !defined(XPREPARE_H) 24 | #define XPREPARE_H 25 | 26 | 27 | 28 | int xdl_prepare_env(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp, 29 | xdfenv_t *xe); 30 | void xdl_free_env(xdfenv_t *xe); 31 | 32 | 33 | 34 | #endif /* #if !defined(XPREPARE_H) */ 35 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/rand.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_rand_h__ 8 | #define INCLUDE_rand_h__ 9 | 10 | #include "git2_util.h" 11 | 12 | /** 13 | * Initialize the random number generation subsystem. This will 14 | * seed the random number generator with the system's entropy pool, 15 | * if available, and will fall back to the current time and 16 | * system information if not. 17 | */ 18 | int git_rand_global_init(void); 19 | 20 | /** 21 | * Seed the pseudo-random number generator. This is not needed to be 22 | * called; the PRNG is seeded by `git_rand_global_init`, but it may 23 | * be useful for testing. When the same seed is specified, the same 24 | * sequence of random numbers from `git_rand_next` is emitted. 25 | * 26 | * @param seed the seed to use 27 | */ 28 | void git_rand_seed(uint64_t seed); 29 | 30 | /** 31 | * Get the next pseudo-random number in the sequence. 32 | * 33 | * @return a 64-bit pseudo-random number 34 | */ 35 | uint64_t git_rand_next(void); 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/unix/realpath.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "git2_util.h" 9 | 10 | #ifndef GIT_WIN32 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | 17 | char *p_realpath(const char *pathname, char *resolved) 18 | { 19 | char *result; 20 | 21 | if ((result = realpath(pathname, resolved)) == NULL) 22 | return NULL; 23 | 24 | #ifdef __OpenBSD__ 25 | /* The OpenBSD realpath function behaves differently, 26 | * figure out if the file exists */ 27 | if (access(ret, F_OK) < 0) { 28 | if (!resolved) 29 | free(result); 30 | 31 | return NULL; 32 | } 33 | #endif 34 | 35 | /* 36 | * If resolved == NULL, the system has allocated the result 37 | * string. We need to strdup this into _our_ allocator pool 38 | * so that callers can free it with git__free. 39 | */ 40 | if (!resolved) { 41 | char *dup = git__strdup(result); 42 | free(result); 43 | 44 | result = dup; 45 | } 46 | 47 | return result; 48 | } 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/include/everest/Hacl_Curve25519.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. 2 | Licensed under the Apache 2.0 License. */ 3 | 4 | /* This file was generated by KreMLin 5 | * KreMLin invocation: /mnt/e/everest/verify/kremlin/krml -fc89 -fparentheses -fno-shadow -header /mnt/e/everest/verify/hdrcLh -minimal -fbuiltin-uint128 -fc89 -fparentheses -fno-shadow -header /mnt/e/everest/verify/hdrcLh -minimal -I /mnt/e/everest/verify/hacl-star/code/lib/kremlin -I /mnt/e/everest/verify/kremlin/kremlib/compat -I /mnt/e/everest/verify/hacl-star/specs -I /mnt/e/everest/verify/hacl-star/specs/old -I . -ccopt -march=native -verbose -ldopt -flto -tmpdir x25519-c -I ../bignum -bundle Hacl.Curve25519=* -minimal -add-include "kremlib.h" -skip-compilation x25519-c/out.krml -o x25519-c/Hacl_Curve25519.c 6 | * F* version: 059db0c8 7 | * KreMLin version: 916c37ac 8 | */ 9 | 10 | 11 | 12 | #ifndef __Hacl_Curve25519_H 13 | #define __Hacl_Curve25519_H 14 | 15 | 16 | #include "kremlib.h" 17 | 18 | void Hacl_Curve25519_crypto_scalarmult(uint8_t *mypublic, uint8_t *secret, uint8_t *basepoint); 19 | 20 | #define __Hacl_Curve25519_H_DEFINED 21 | #endif 22 | -------------------------------------------------------------------------------- /deps/test/mbedtls/3rdparty/everest/include/everest/vs2013/inttypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Custom inttypes.h for VS2010 KreMLin requires these definitions, 3 | * but VS2010 doesn't provide them. 4 | * 5 | * Copyright 2016-2018 INRIA and Microsoft Corporation 6 | * SPDX-License-Identifier: Apache-2.0 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); you may 9 | * not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 16 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | * 20 | * This file is part of Mbed TLS (https://tls.mbed.org) 21 | */ 22 | 23 | #ifndef _INTTYPES_H_VS2010 24 | #define _INTTYPES_H_VS2010 25 | 26 | #include 27 | 28 | #ifdef _MSC_VER 29 | #define inline __inline 30 | #endif 31 | 32 | /* VS2010 unsigned long == 8 bytes */ 33 | 34 | #define PRIu64 "I64u" 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/worktree.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_worktree_h__ 8 | #define INCLUDE_worktree_h__ 9 | 10 | #include "common.h" 11 | 12 | #include "git2/common.h" 13 | #include "git2/worktree.h" 14 | 15 | struct git_worktree { 16 | /* Name of the working tree. This is the name of the 17 | * containing directory in the `$PARENT/.git/worktrees/` 18 | * directory. */ 19 | char *name; 20 | 21 | /* Path to the where the worktree lives in the filesystem */ 22 | char *worktree_path; 23 | /* Path to the .git file in the working tree's repository */ 24 | char *gitlink_path; 25 | /* Path to the .git directory inside the parent's 26 | * worktrees directory */ 27 | char *gitdir_path; 28 | /* Path to the common directory contained in the parent 29 | * repository */ 30 | char *commondir_path; 31 | /* Path to the parent's working directory */ 32 | char *parent_path; 33 | 34 | unsigned int locked:1; 35 | }; 36 | 37 | char *git_worktree__read_link(const char *base, const char *file); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /deps/test/libgit2/include/git2/strarray.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_git_strarray_h__ 8 | #define INCLUDE_git_strarray_h__ 9 | 10 | #include "common.h" 11 | 12 | /** 13 | * @file git2/strarray.h 14 | * @brief Git string array routines 15 | * @defgroup git_strarray Git string array routines 16 | * @ingroup Git 17 | * @{ 18 | */ 19 | GIT_BEGIN_DECL 20 | 21 | /** Array of strings */ 22 | typedef struct git_strarray { 23 | char **strings; 24 | size_t count; 25 | } git_strarray; 26 | 27 | /** 28 | * Free the strings contained in a string array. This method should 29 | * be called on `git_strarray` objects that were provided by the 30 | * library. Not doing so, will result in a memory leak. 31 | * 32 | * This does not free the `git_strarray` itself, since the library will 33 | * never allocate that object directly itself. 34 | * 35 | * @param array The git_strarray that contains strings to free 36 | */ 37 | GIT_EXTERN(void) git_strarray_dispose(git_strarray *array); 38 | 39 | /** @} */ 40 | GIT_END_DECL 41 | 42 | #endif 43 | 44 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/mailmap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_mailmap_h__ 8 | #define INCLUDE_mailmap_h__ 9 | 10 | #include "git2/mailmap.h" 11 | #include "vector.h" 12 | 13 | /* 14 | * A mailmap is stored as a sorted vector of 'git_mailmap_entry's. These entries 15 | * are sorted first by 'replace_email', and then by 'replace_name'. NULL 16 | * replace_names are ordered first. 17 | * 18 | * Looking up a name and email in the mailmap is done with a binary search. 19 | */ 20 | struct git_mailmap { 21 | git_vector entries; 22 | }; 23 | 24 | /* Single entry parsed from a mailmap */ 25 | typedef struct git_mailmap_entry { 26 | char *real_name; /**< the real name (may be NULL) */ 27 | char *real_email; /**< the real email (may be NULL) */ 28 | char *replace_name; /**< the name to replace (may be NULL) */ 29 | char *replace_email; /**< the email to replace */ 30 | } git_mailmap_entry; 31 | 32 | const git_mailmap_entry *git_mailmap_entry_lookup( 33 | const git_mailmap *mm, const char *name, const char *email); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/xdiff/xinclude.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LibXDiff by Davide Libenzi ( File Differential Library ) 3 | * Copyright (C) 2003 Davide Libenzi 4 | * 5 | * This library is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU Lesser General Public 7 | * License as published by the Free Software Foundation; either 8 | * version 2.1 of the License, or (at your option) any later version. 9 | * 10 | * This library is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | * Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public 16 | * License along with this library; if not, see 17 | * . 18 | * 19 | * Davide Libenzi 20 | * 21 | */ 22 | 23 | #if !defined(XINCLUDE_H) 24 | #define XINCLUDE_H 25 | 26 | #include "git-xdiff.h" 27 | #include "xmacros.h" 28 | #include "xdiff.h" 29 | #include "xtypes.h" 30 | #include "xutils.h" 31 | #include "xprepare.h" 32 | #include "xdiffi.h" 33 | #include "xemit.h" 34 | 35 | 36 | #endif /* #if !defined(XINCLUDE_H) */ 37 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/varint.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "varint.h" 9 | 10 | uintmax_t git_decode_varint(const unsigned char *bufp, size_t *varint_len) 11 | { 12 | const unsigned char *buf = bufp; 13 | unsigned char c = *buf++; 14 | uintmax_t val = c & 127; 15 | while (c & 128) { 16 | val += 1; 17 | if (!val || MSB(val, 7)) { 18 | /* This is not a valid varint_len, so it signals 19 | the error */ 20 | *varint_len = 0; 21 | return 0; /* overflow */ 22 | } 23 | c = *buf++; 24 | val = (val << 7) + (c & 127); 25 | } 26 | *varint_len = buf - bufp; 27 | return val; 28 | } 29 | 30 | int git_encode_varint(unsigned char *buf, size_t bufsize, uintmax_t value) 31 | { 32 | unsigned char varint[16]; 33 | unsigned pos = sizeof(varint) - 1; 34 | varint[pos] = value & 127; 35 | while (value >>= 7) 36 | varint[--pos] = 128 | (--value & 127); 37 | if (buf) { 38 | if (bufsize < (sizeof(varint) - pos)) 39 | return -1; 40 | memcpy(buf, varint + pos, sizeof(varint) - pos); 41 | } 42 | return sizeof(varint) - pos; 43 | } 44 | -------------------------------------------------------------------------------- /deps/test/libgit2/.HEADER: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is free software; you can redistribute it and/or modify 3 | * it under the terms of the GNU General Public License, version 2, 4 | * as published by the Free Software Foundation. 5 | * 6 | * In addition to the permissions in the GNU General Public License, 7 | * the authors give you unlimited permission to link the compiled 8 | * version of this file into combinations with other programs, 9 | * and to distribute those combinations without any restriction 10 | * coming from the use of this file. (The General Public License 11 | * restrictions do apply in other respects; for example, they cover 12 | * modification of the file, and distribution when not linked into 13 | * a combined executable.) 14 | * 15 | * This file is distributed in the hope that it will be useful, but 16 | * WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | * General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with this program; see the file COPYING. If not, write to 22 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, 23 | * Boston, MA 02110-1301, USA. 24 | */ 25 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/win32/dir.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_win32_dir_h__ 8 | #define INCLUDE_win32_dir_h__ 9 | 10 | #include "git2_util.h" 11 | 12 | #include "w32_util.h" 13 | 14 | struct git__dirent { 15 | int d_ino; 16 | git_win32_utf8_path d_name; 17 | }; 18 | 19 | typedef struct { 20 | HANDLE h; 21 | WIN32_FIND_DATAW f; 22 | struct git__dirent entry; 23 | int first; 24 | char dir[GIT_FLEX_ARRAY]; 25 | } git__DIR; 26 | 27 | extern git__DIR *git__opendir(const char *); 28 | extern struct git__dirent *git__readdir(git__DIR *); 29 | extern int git__readdir_ext( 30 | git__DIR *, struct git__dirent *, struct git__dirent **, int *); 31 | extern void git__rewinddir(git__DIR *); 32 | extern int git__closedir(git__DIR *); 33 | 34 | # ifndef GIT__WIN32_NO_WRAP_DIR 35 | # define dirent git__dirent 36 | # define DIR git__DIR 37 | # define opendir git__opendir 38 | # define readdir git__readdir 39 | # define readdir_r(d,e,r) git__readdir_ext((d),(e),(r),NULL) 40 | # define rewinddir git__rewinddir 41 | # define closedir git__closedir 42 | # endif 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /deps/test/libgit2/include/git2/sys/openssl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_git_openssl_h__ 8 | #define INCLUDE_git_openssl_h__ 9 | 10 | #include "git2/common.h" 11 | 12 | GIT_BEGIN_DECL 13 | 14 | /** 15 | * Initialize the OpenSSL locks 16 | * 17 | * OpenSSL requires the application to determine how it performs 18 | * locking. 19 | * 20 | * This is a last-resort convenience function which libgit2 provides for 21 | * allocating and initializing the locks as well as setting the 22 | * locking function to use the system's native locking functions. 23 | * 24 | * The locking function will be cleared and the memory will be freed 25 | * when you call git_threads_sutdown(). 26 | * 27 | * If your programming language has an OpenSSL package/bindings, it 28 | * likely sets up locking. You should very strongly prefer that over 29 | * this function. 30 | * 31 | * @return 0 on success, -1 if there are errors or if libgit2 was not 32 | * built with OpenSSL and threading support. 33 | */ 34 | GIT_EXTERN(int) git_openssl_set_locking(void); 35 | 36 | GIT_END_DECL 37 | #endif 38 | 39 | -------------------------------------------------------------------------------- /deps/test/mbedtls/include/psa/crypto_adjust_auto_enabled.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file psa/crypto_adjust_auto_enabled.h 3 | * \brief Adjust PSA configuration: enable always-on features 4 | * 5 | * This is an internal header. Do not include it directly. 6 | * 7 | * Always enable certain features which require a negligible amount of code 8 | * to implement, to avoid some edge cases in the configuration combinatorics. 9 | */ 10 | /* 11 | * Copyright The Mbed TLS Contributors 12 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 13 | */ 14 | 15 | #ifndef PSA_CRYPTO_ADJUST_AUTO_ENABLED_H 16 | #define PSA_CRYPTO_ADJUST_AUTO_ENABLED_H 17 | 18 | #if !defined(MBEDTLS_CONFIG_FILES_READ) 19 | #error "Do not include psa/crypto_adjust_*.h manually! This can lead to problems, " \ 20 | "up to and including runtime errors such as buffer overflows. " \ 21 | "If you're trying to fix a complaint from check_config.h, just remove " \ 22 | "it from your configuration file: since Mbed TLS 3.0, it is included " \ 23 | "automatically at the right point." 24 | #endif /* */ 25 | 26 | #define PSA_WANT_KEY_TYPE_DERIVE 1 27 | #define PSA_WANT_KEY_TYPE_PASSWORD 1 28 | #define PSA_WANT_KEY_TYPE_PASSWORD_HASH 1 29 | #define PSA_WANT_KEY_TYPE_RAW_DATA 1 30 | 31 | #endif /* PSA_CRYPTO_ADJUST_AUTO_ENABLED_H */ 32 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/proxy.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "proxy.h" 9 | 10 | #include "git2/proxy.h" 11 | 12 | int git_proxy_options_init(git_proxy_options *opts, unsigned int version) 13 | { 14 | GIT_INIT_STRUCTURE_FROM_TEMPLATE( 15 | opts, version, git_proxy_options, GIT_PROXY_OPTIONS_INIT); 16 | return 0; 17 | } 18 | 19 | #ifndef GIT_DEPRECATE_HARD 20 | int git_proxy_init_options(git_proxy_options *opts, unsigned int version) 21 | { 22 | return git_proxy_options_init(opts, version); 23 | } 24 | #endif 25 | 26 | int git_proxy_options_dup(git_proxy_options *tgt, const git_proxy_options *src) 27 | { 28 | if (!src) { 29 | git_proxy_options_init(tgt, GIT_PROXY_OPTIONS_VERSION); 30 | return 0; 31 | } 32 | 33 | memcpy(tgt, src, sizeof(git_proxy_options)); 34 | if (src->url) { 35 | tgt->url = git__strdup(src->url); 36 | GIT_ERROR_CHECK_ALLOC(tgt->url); 37 | } 38 | 39 | return 0; 40 | } 41 | 42 | void git_proxy_options_dispose(git_proxy_options *opts) 43 | { 44 | if (!opts) 45 | return; 46 | 47 | git__free((char *) opts->url); 48 | opts->url = NULL; 49 | } 50 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/win32/win32-compat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_win32_win32_compat_h__ 8 | #define INCLUDE_win32_win32_compat_h__ 9 | 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | typedef long suseconds_t; 17 | 18 | struct p_timeval { 19 | time_t tv_sec; 20 | suseconds_t tv_usec; 21 | }; 22 | 23 | struct p_timespec { 24 | time_t tv_sec; 25 | long tv_nsec; 26 | }; 27 | 28 | #define timespec p_timespec 29 | 30 | struct p_stat { 31 | _dev_t st_dev; 32 | _ino_t st_ino; 33 | mode_t st_mode; 34 | short st_nlink; 35 | short st_uid; 36 | short st_gid; 37 | _dev_t st_rdev; 38 | __int64 st_size; 39 | struct timespec st_atim; 40 | struct timespec st_mtim; 41 | struct timespec st_ctim; 42 | #define st_atime st_atim.tv_sec 43 | #define st_mtime st_mtim.tv_sec 44 | #define st_ctime st_ctim.tv_sec 45 | #define st_atime_nsec st_atim.tv_nsec 46 | #define st_mtime_nsec st_mtim.tv_nsec 47 | #define st_ctime_nsec st_ctim.tv_nsec 48 | }; 49 | 50 | #define stat p_stat 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /deps/test/mbedtls/doxygen/input/doc_tcpip.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file doc_tcpip.h 3 | * 4 | * \brief TCP/IP communication module documentation file. 5 | */ 6 | /* 7 | * 8 | * Copyright The Mbed TLS Contributors 9 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 | */ 11 | 12 | /** 13 | * @addtogroup tcpip_communication_module TCP/IP communication module 14 | * 15 | * The TCP/IP communication module provides for a channel of 16 | * communication for the \link ssltls_communication_module SSL/TLS communication 17 | * module\endlink to use. 18 | * In the TCP/IP-model it provides for communication up to the Transport 19 | * (or Host-to-host) layer. 20 | * SSL/TLS resides on top of that, in the Application layer, and makes use of 21 | * its basic provisions: 22 | * - listening on a port (see \c mbedtls_net_bind()). 23 | * - accepting a connection (through \c mbedtls_net_accept()). 24 | * - read/write (through \c mbedtls_net_recv()/\c mbedtls_net_send()). 25 | * - close a connection (through \c mbedtls_net_close()). 26 | * 27 | * This way you have the means to, for example, implement and use an UDP or 28 | * IPSec communication solution as a basis. 29 | * 30 | * This module can be used at server- and clientside to provide a basic 31 | * means of communication over the internet. 32 | */ 33 | -------------------------------------------------------------------------------- /deps/test/libgit2/include/git2/transport.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_git_transport_h__ 8 | #define INCLUDE_git_transport_h__ 9 | 10 | #include "indexer.h" 11 | #include "net.h" 12 | #include "types.h" 13 | #include "cert.h" 14 | #include "credential.h" 15 | 16 | /** 17 | * @file git2/transport.h 18 | * @brief Git transport interfaces and functions 19 | * @defgroup git_transport interfaces and functions 20 | * @ingroup Git 21 | * @{ 22 | */ 23 | GIT_BEGIN_DECL 24 | 25 | /** 26 | * Callback for messages received by the transport. 27 | * 28 | * Return a negative value to cancel the network operation. 29 | * 30 | * @param str The message from the transport 31 | * @param len The length of the message 32 | * @param payload Payload provided by the caller 33 | */ 34 | typedef int GIT_CALLBACK(git_transport_message_cb)(const char *str, int len, void *payload); 35 | 36 | /** Signature of a function which creates a transport */ 37 | typedef int GIT_CALLBACK(git_transport_cb)(git_transport **out, git_remote *owner, void *param); 38 | 39 | /** @} */ 40 | GIT_END_DECL 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/libgit2/trace.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_trace_h__ 8 | #define INCLUDE_trace_h__ 9 | 10 | #include "common.h" 11 | 12 | #include 13 | #include "str.h" 14 | 15 | struct git_trace_data { 16 | git_trace_level_t level; 17 | git_trace_cb callback; 18 | }; 19 | 20 | extern struct git_trace_data git_trace__data; 21 | 22 | GIT_INLINE(void) git_trace__write_fmt( 23 | git_trace_level_t level, 24 | const char *fmt, 25 | va_list ap) 26 | { 27 | git_trace_cb callback = git_trace__data.callback; 28 | git_str message = GIT_STR_INIT; 29 | 30 | git_str_vprintf(&message, fmt, ap); 31 | 32 | callback(level, git_str_cstr(&message)); 33 | 34 | git_str_dispose(&message); 35 | } 36 | 37 | #define git_trace_level() (git_trace__data.level) 38 | 39 | GIT_INLINE(void) git_trace(git_trace_level_t level, const char *fmt, ...) 40 | { 41 | if (git_trace__data.level >= level && 42 | git_trace__data.callback != NULL) { 43 | va_list ap; 44 | 45 | va_start(ap, fmt); 46 | git_trace__write_fmt(level, fmt, ap); 47 | va_end(ap); 48 | } 49 | } 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /deps/test/mbedtls/doxygen/input/doc_x509.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file doc_x509.h 3 | * 4 | * \brief X.509 module documentation file. 5 | */ 6 | /* 7 | * 8 | * Copyright The Mbed TLS Contributors 9 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 10 | */ 11 | 12 | /** 13 | * @addtogroup x509_module X.509 module 14 | * 15 | * The X.509 module provides X.509 support for reading, writing and verification 16 | * of certificates. 17 | * In summary: 18 | * - X.509 certificate (CRT) reading (see \c mbedtls_x509_crt_parse(), 19 | * \c mbedtls_x509_crt_parse_der(), \c mbedtls_x509_crt_parse_file()). 20 | * - X.509 certificate revocation list (CRL) reading (see 21 | * \c mbedtls_x509_crl_parse(), \c mbedtls_x509_crl_parse_der(), 22 | * and \c mbedtls_x509_crl_parse_file()). 23 | * - X.509 certificate signature verification (see \c 24 | * mbedtls_x509_crt_verify() and \c mbedtls_x509_crt_verify_with_profile(). 25 | * - X.509 certificate writing and certificate request writing (see 26 | * \c mbedtls_x509write_crt_der() and \c mbedtls_x509write_csr_der()). 27 | * 28 | * This module can be used to build a certificate authority (CA) chain and 29 | * verify its signature. It is also used to generate Certificate Signing 30 | * Requests and X.509 certificates just as a CA would do. 31 | */ 32 | -------------------------------------------------------------------------------- /deps/test/zlib/win32/zlib1.rc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "../zlib.h" 3 | 4 | #ifdef GCC_WINDRES 5 | VS_VERSION_INFO VERSIONINFO 6 | #else 7 | VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 8 | #endif 9 | FILEVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 10 | PRODUCTVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 11 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 12 | #ifdef _DEBUG 13 | FILEFLAGS 1 14 | #else 15 | FILEFLAGS 0 16 | #endif 17 | FILEOS VOS__WINDOWS32 18 | FILETYPE VFT_DLL 19 | FILESUBTYPE 0 // not used 20 | BEGIN 21 | BLOCK "StringFileInfo" 22 | BEGIN 23 | BLOCK "040904E4" 24 | //language ID = U.S. English, char set = Windows, Multilingual 25 | BEGIN 26 | VALUE "FileDescription", "zlib data compression library\0" 27 | VALUE "FileVersion", ZLIB_VERSION "\0" 28 | VALUE "InternalName", "zlib1.dll\0" 29 | VALUE "LegalCopyright", "(C) 1995-2022 Jean-loup Gailly & Mark Adler\0" 30 | VALUE "OriginalFilename", "zlib1.dll\0" 31 | VALUE "ProductName", "zlib\0" 32 | VALUE "ProductVersion", ZLIB_VERSION "\0" 33 | VALUE "Comments", "For more information visit http://www.zlib.net/\0" 34 | END 35 | END 36 | BLOCK "VarFileInfo" 37 | BEGIN 38 | VALUE "Translation", 0x0409, 1252 39 | END 40 | END 41 | -------------------------------------------------------------------------------- /deps/test/zlib/contrib/dotzlib/DotZLib.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | A .Net wrapper library around ZLib1.dll 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/util/hash/builtin.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #include "builtin.h" 9 | 10 | int git_hash_sha256_global_init(void) 11 | { 12 | return 0; 13 | } 14 | 15 | int git_hash_sha256_ctx_init(git_hash_sha256_ctx *ctx) 16 | { 17 | return git_hash_sha256_init(ctx); 18 | } 19 | 20 | void git_hash_sha256_ctx_cleanup(git_hash_sha256_ctx *ctx) 21 | { 22 | GIT_UNUSED(ctx); 23 | } 24 | 25 | int git_hash_sha256_init(git_hash_sha256_ctx *ctx) 26 | { 27 | GIT_ASSERT_ARG(ctx); 28 | if (SHA256Reset(&ctx->c)) { 29 | git_error_set(GIT_ERROR_SHA, "SHA256 error"); 30 | return -1; 31 | } 32 | return 0; 33 | } 34 | 35 | int git_hash_sha256_update(git_hash_sha256_ctx *ctx, const void *data, size_t len) 36 | { 37 | GIT_ASSERT_ARG(ctx); 38 | if (SHA256Input(&ctx->c, data, len)) { 39 | git_error_set(GIT_ERROR_SHA, "SHA256 error"); 40 | return -1; 41 | } 42 | return 0; 43 | } 44 | 45 | int git_hash_sha256_final(unsigned char *out, git_hash_sha256_ctx *ctx) 46 | { 47 | GIT_ASSERT_ARG(ctx); 48 | if (SHA256Result(&ctx->c, out)) { 49 | git_error_set(GIT_ERROR_SHA, "SHA256 error"); 50 | return -1; 51 | } 52 | return 0; 53 | } 54 | -------------------------------------------------------------------------------- /deps/test/libgit2/include/git2/net.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | #ifndef INCLUDE_git_net_h__ 8 | #define INCLUDE_git_net_h__ 9 | 10 | #include "common.h" 11 | #include "oid.h" 12 | #include "types.h" 13 | 14 | /** 15 | * @file git2/net.h 16 | * @brief Git networking declarations 17 | * @ingroup Git 18 | * @{ 19 | */ 20 | GIT_BEGIN_DECL 21 | 22 | #define GIT_DEFAULT_PORT "9418" 23 | 24 | /** 25 | * Direction of the connection. 26 | * 27 | * We need this because we need to know whether we should call 28 | * git-upload-pack or git-receive-pack on the remote end when get_refs 29 | * gets called. 30 | */ 31 | typedef enum { 32 | GIT_DIRECTION_FETCH = 0, 33 | GIT_DIRECTION_PUSH = 1 34 | } git_direction; 35 | 36 | /** 37 | * Description of a reference advertised by a remote server, given out 38 | * on `ls` calls. 39 | */ 40 | struct git_remote_head { 41 | int local; /* available locally */ 42 | git_oid oid; 43 | git_oid loid; 44 | char *name; 45 | /** 46 | * If the server send a symref mapping for this ref, this will 47 | * point to the target. 48 | */ 49 | char *symref_target; 50 | }; 51 | 52 | /** @} */ 53 | GIT_END_DECL 54 | #endif 55 | -------------------------------------------------------------------------------- /deps/test/mbedtls/library/base64_internal.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file base64_internal.h 3 | * 4 | * \brief RFC 1521 base64 encoding/decoding: interfaces for invasive testing 5 | */ 6 | /* 7 | * Copyright The Mbed TLS Contributors 8 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 9 | */ 10 | 11 | #ifndef MBEDTLS_BASE64_INTERNAL 12 | #define MBEDTLS_BASE64_INTERNAL 13 | 14 | #include "common.h" 15 | 16 | #if defined(MBEDTLS_TEST_HOOKS) 17 | 18 | /** Given a value in the range 0..63, return the corresponding Base64 digit. 19 | * 20 | * The implementation assumes that letters are consecutive (e.g. ASCII 21 | * but not EBCDIC). 22 | * 23 | * \param value A value in the range 0..63. 24 | * 25 | * \return A base64 digit converted from \p value. 26 | */ 27 | unsigned char mbedtls_ct_base64_enc_char(unsigned char value); 28 | 29 | /** Given a Base64 digit, return its value. 30 | * 31 | * If c is not a Base64 digit ('A'..'Z', 'a'..'z', '0'..'9', '+' or '/'), 32 | * return -1. 33 | * 34 | * The implementation assumes that letters are consecutive (e.g. ASCII 35 | * but not EBCDIC). 36 | * 37 | * \param c A base64 digit. 38 | * 39 | * \return The value of the base64 digit \p c. 40 | */ 41 | signed char mbedtls_ct_base64_dec_value(unsigned char c); 42 | 43 | #endif /* MBEDTLS_TEST_HOOKS */ 44 | 45 | #endif /* MBEDTLS_BASE64_INTERNAL */ 46 | -------------------------------------------------------------------------------- /deps/test/libgit2/ci/docker/fedora: -------------------------------------------------------------------------------- 1 | ARG BASE=fedora:rawhide 2 | 3 | FROM ${BASE} AS stream 4 | RUN dnf -y distro-sync 5 | 6 | FROM stream AS yum 7 | RUN yum install -y \ 8 | which \ 9 | bzip2 \ 10 | git \ 11 | libarchive \ 12 | cmake \ 13 | gcc \ 14 | make \ 15 | openssl-devel \ 16 | openssh-server \ 17 | git-daemon \ 18 | java-1.8.0-openjdk-headless \ 19 | sudo \ 20 | python3 \ 21 | valgrind \ 22 | krb5-workstation \ 23 | krb5-libs \ 24 | krb5-devel \ 25 | pcre2-devel \ 26 | zlib-devel \ 27 | ninja-build \ 28 | llhttp-devel 29 | 30 | FROM yum AS libssh2 31 | RUN cd /tmp && \ 32 | curl --location --silent --show-error https://www.libssh2.org/download/libssh2-1.11.0.tar.gz | tar -xz && \ 33 | cd libssh2-1.11.0 && \ 34 | ./configure && \ 35 | make && \ 36 | make install && \ 37 | cd .. && \ 38 | rm -rf libssh2-1.11.0 39 | 40 | FROM libssh2 AS adduser 41 | ARG UID="" 42 | ARG GID="" 43 | RUN if [ "${UID}" != "" ]; then USER_ARG="--uid ${UID}"; fi && \ 44 | if [ "${GID}" != "" ]; then GROUP_ARG="--gid ${GID}"; fi && \ 45 | groupadd ${GROUP_ARG} libgit2 && \ 46 | useradd ${USER_ARG} --gid libgit2 --shell /bin/bash --create-home libgit2 47 | 48 | FROM adduser AS configure 49 | ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig 50 | RUN mkdir /var/run/sshd 51 | RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local && \ 52 | ldconfig 53 | -------------------------------------------------------------------------------- /deps/test/libgit2/deps/xdiff/xemit.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LibXDiff by Davide Libenzi ( File Differential Library ) 3 | * Copyright (C) 2003 Davide Libenzi 4 | * 5 | * This library is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU Lesser General Public 7 | * License as published by the Free Software Foundation; either 8 | * version 2.1 of the License, or (at your option) any later version. 9 | * 10 | * This library is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | * Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public 16 | * License along with this library; if not, see 17 | * . 18 | * 19 | * Davide Libenzi 20 | * 21 | */ 22 | 23 | #if !defined(XEMIT_H) 24 | #define XEMIT_H 25 | 26 | 27 | typedef int (*emit_func_t)(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb, 28 | xdemitconf_t const *xecfg); 29 | 30 | xdchange_t *xdl_get_hunk(xdchange_t **xscr, xdemitconf_t const *xecfg); 31 | int xdl_emit_diff(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb, 32 | xdemitconf_t const *xecfg); 33 | 34 | 35 | 36 | #endif /* #if !defined(XEMIT_H) */ 37 | -------------------------------------------------------------------------------- /deps/test/libgit2/src/cli/error.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) the libgit2 contributors. All rights reserved. 3 | * 4 | * This file is part of libgit2, distributed under the GNU GPL v2 with 5 | * a Linking Exception. For full terms see the included COPYING file. 6 | */ 7 | 8 | #ifndef CLI_error_h__ 9 | #define CLI_error_h__ 10 | 11 | #include "common.h" 12 | #include 13 | 14 | #define CLI_EXIT_OK 0 15 | #define CLI_EXIT_ERROR 1 16 | #define CLI_EXIT_OS 128 17 | #define CLI_EXIT_GIT 128 18 | #define CLI_EXIT_USAGE 129 19 | 20 | #define cli_error__print(fmt) do { \ 21 | va_list ap; \ 22 | va_start(ap, fmt); \ 23 | fprintf(stderr, "%s: ", PROGRAM_NAME); \ 24 | vfprintf(stderr, fmt, ap); \ 25 | fprintf(stderr, "\n"); \ 26 | va_end(ap); \ 27 | } while(0) 28 | 29 | GIT_INLINE(int) cli_error(const char *fmt, ...) 30 | { 31 | cli_error__print(fmt); 32 | return CLI_EXIT_ERROR; 33 | } 34 | 35 | GIT_INLINE(int) cli_error_usage(const char *fmt, ...) 36 | { 37 | cli_error__print(fmt); 38 | return CLI_EXIT_USAGE; 39 | } 40 | 41 | GIT_INLINE(int) cli_error_git(void) 42 | { 43 | const git_error *err = git_error_last(); 44 | fprintf(stderr, "%s: %s\n", PROGRAM_NAME, 45 | err ? err->message : "unknown error"); 46 | return CLI_EXIT_GIT; 47 | } 48 | 49 | #define cli_error_os() (perror(PROGRAM_NAME), CLI_EXIT_OS) 50 | 51 | #endif /* CLI_error_h__ */ 52 | --------------------------------------------------------------------------------