├── .gitattributes ├── .gitignore ├── DumpspaceAPI.sln ├── DumpspaceAPI ├── DSAPI.cpp ├── DSAPI.h ├── DumpspaceAPI.cpp ├── DumpspaceAPI.vcxproj ├── DumpspaceAPI.vcxproj.filters └── libs │ ├── curl │ ├── BUILD_INFO │ ├── CONTROL │ ├── include │ │ └── curl │ │ │ ├── curl.h │ │ │ ├── curlver.h │ │ │ ├── easy.h │ │ │ ├── mprintf.h │ │ │ ├── multi.h │ │ │ ├── stdcheaders.h │ │ │ ├── system.h │ │ │ ├── typecheck-gcc.h │ │ │ └── urlapi.h │ ├── lib │ │ ├── libcurl.lib │ │ └── pkgconfig │ │ │ └── libcurl.pc │ └── share │ │ └── curl │ │ ├── CURLConfig.cmake │ │ ├── CURLConfigVersion.cmake │ │ ├── CURLTargets-debug.cmake │ │ ├── CURLTargets-release.cmake │ │ ├── CURLTargets.cmake │ │ ├── copyright │ │ ├── vcpkg-cmake-wrapper.cmake │ │ └── vcpkg_abi_info.txt │ ├── gzip │ ├── LICENSE.md │ ├── README.md │ ├── compress.hpp │ ├── config.hpp │ ├── decompress.hpp │ ├── utils.hpp │ └── version.hpp │ ├── json │ ├── include │ │ └── nlohmann │ │ │ ├── adl_serializer.hpp │ │ │ ├── byte_container_with_subtype.hpp │ │ │ ├── detail │ │ │ ├── conversions │ │ │ │ ├── from_json.hpp │ │ │ │ ├── to_chars.hpp │ │ │ │ └── to_json.hpp │ │ │ ├── exceptions.hpp │ │ │ ├── hash.hpp │ │ │ ├── input │ │ │ │ ├── binary_reader.hpp │ │ │ │ ├── input_adapters.hpp │ │ │ │ ├── json_sax.hpp │ │ │ │ ├── lexer.hpp │ │ │ │ ├── parser.hpp │ │ │ │ └── position_t.hpp │ │ │ ├── iterators │ │ │ │ ├── internal_iterator.hpp │ │ │ │ ├── iter_impl.hpp │ │ │ │ ├── iteration_proxy.hpp │ │ │ │ ├── iterator_traits.hpp │ │ │ │ ├── json_reverse_iterator.hpp │ │ │ │ └── primitive_iterator.hpp │ │ │ ├── json_pointer.hpp │ │ │ ├── json_ref.hpp │ │ │ ├── macro_scope.hpp │ │ │ ├── macro_unscope.hpp │ │ │ ├── meta │ │ │ │ ├── cpp_future.hpp │ │ │ │ ├── detected.hpp │ │ │ │ ├── is_sax.hpp │ │ │ │ ├── type_traits.hpp │ │ │ │ └── void_t.hpp │ │ │ ├── output │ │ │ │ ├── binary_writer.hpp │ │ │ │ ├── output_adapters.hpp │ │ │ │ └── serializer.hpp │ │ │ └── value_t.hpp │ │ │ ├── json.hpp │ │ │ ├── json_fwd.hpp │ │ │ ├── ordered_map.hpp │ │ │ └── thirdparty │ │ │ └── hedley │ │ │ ├── hedley.hpp │ │ │ └── hedley_undef.hpp │ ├── meson.build │ └── single_include │ │ └── nlohmann │ │ └── json.hpp │ ├── openssl │ ├── BUILD_INFO │ ├── CONTROL │ ├── include │ │ └── openssl │ │ │ ├── __DECC_INCLUDE_EPILOGUE.H │ │ │ ├── __DECC_INCLUDE_PROLOGUE.H │ │ │ ├── aes.h │ │ │ ├── asn1.h │ │ │ ├── asn1_mac.h │ │ │ ├── asn1err.h │ │ │ ├── asn1t.h │ │ │ ├── async.h │ │ │ ├── asyncerr.h │ │ │ ├── bio.h │ │ │ ├── bioerr.h │ │ │ ├── blowfish.h │ │ │ ├── bn.h │ │ │ ├── bnerr.h │ │ │ ├── buffer.h │ │ │ ├── buffererr.h │ │ │ ├── camellia.h │ │ │ ├── cast.h │ │ │ ├── cmac.h │ │ │ ├── cms.h │ │ │ ├── cmserr.h │ │ │ ├── comp.h │ │ │ ├── comperr.h │ │ │ ├── conf.h │ │ │ ├── conf_api.h │ │ │ ├── conferr.h │ │ │ ├── crypto.h │ │ │ ├── cryptoerr.h │ │ │ ├── ct.h │ │ │ ├── cterr.h │ │ │ ├── des.h │ │ │ ├── dh.h │ │ │ ├── dherr.h │ │ │ ├── dsa.h │ │ │ ├── dsaerr.h │ │ │ ├── dtls1.h │ │ │ ├── e_os2.h │ │ │ ├── ebcdic.h │ │ │ ├── ec.h │ │ │ ├── ecdh.h │ │ │ ├── ecdsa.h │ │ │ ├── ecerr.h │ │ │ ├── engine.h │ │ │ ├── engineerr.h │ │ │ ├── err.h │ │ │ ├── evp.h │ │ │ ├── evperr.h │ │ │ ├── hmac.h │ │ │ ├── idea.h │ │ │ ├── kdf.h │ │ │ ├── kdferr.h │ │ │ ├── lhash.h │ │ │ ├── md2.h │ │ │ ├── md4.h │ │ │ ├── md5.h │ │ │ ├── mdc2.h │ │ │ ├── modes.h │ │ │ ├── obj_mac.h │ │ │ ├── objects.h │ │ │ ├── objectserr.h │ │ │ ├── ocsp.h │ │ │ ├── ocsperr.h │ │ │ ├── opensslconf.h │ │ │ ├── opensslv.h │ │ │ ├── ossl_typ.h │ │ │ ├── pem.h │ │ │ ├── pem2.h │ │ │ ├── pemerr.h │ │ │ ├── pkcs12.h │ │ │ ├── pkcs12err.h │ │ │ ├── pkcs7.h │ │ │ ├── pkcs7err.h │ │ │ ├── rand.h │ │ │ ├── rand_drbg.h │ │ │ ├── randerr.h │ │ │ ├── rc2.h │ │ │ ├── rc4.h │ │ │ ├── rc5.h │ │ │ ├── ripemd.h │ │ │ ├── rsa.h │ │ │ ├── rsaerr.h │ │ │ ├── safestack.h │ │ │ ├── seed.h │ │ │ ├── sha.h │ │ │ ├── srp.h │ │ │ ├── srtp.h │ │ │ ├── ssl.h │ │ │ ├── ssl2.h │ │ │ ├── ssl3.h │ │ │ ├── sslerr.h │ │ │ ├── stack.h │ │ │ ├── store.h │ │ │ ├── storeerr.h │ │ │ ├── symhacks.h │ │ │ ├── tls1.h │ │ │ ├── ts.h │ │ │ ├── tserr.h │ │ │ ├── txt_db.h │ │ │ ├── ui.h │ │ │ ├── uierr.h │ │ │ ├── whrlpool.h │ │ │ ├── x509.h │ │ │ ├── x509_vfy.h │ │ │ ├── x509err.h │ │ │ ├── x509v3.h │ │ │ └── x509v3err.h │ ├── lib │ │ ├── libcrypto.lib │ │ └── libssl.lib │ ├── misc │ │ ├── CA.pl │ │ └── tsget.pl │ ├── share │ │ └── openssl-windows │ │ │ ├── copyright │ │ │ ├── usage │ │ │ └── vcpkg_abi_info.txt │ └── tools │ │ └── openssl │ │ ├── openssl.cnf │ │ └── openssl.exe │ ├── zconf.h │ ├── zlib.h │ └── zlib.lib ├── LICENSE.txt ├── README.md └── image.png /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /DumpspaceAPI.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.6.33829.357 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DumpspaceAPI", "DumpspaceAPI\DumpspaceAPI.vcxproj", "{765CDAEC-A494-4FD5-80C6-B052E6DCA849}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {765CDAEC-A494-4FD5-80C6-B052E6DCA849}.Debug|x64.ActiveCfg = Debug|x64 17 | {765CDAEC-A494-4FD5-80C6-B052E6DCA849}.Debug|x64.Build.0 = Debug|x64 18 | {765CDAEC-A494-4FD5-80C6-B052E6DCA849}.Debug|x86.ActiveCfg = Debug|Win32 19 | {765CDAEC-A494-4FD5-80C6-B052E6DCA849}.Debug|x86.Build.0 = Debug|Win32 20 | {765CDAEC-A494-4FD5-80C6-B052E6DCA849}.Release|x64.ActiveCfg = Release|x64 21 | {765CDAEC-A494-4FD5-80C6-B052E6DCA849}.Release|x64.Build.0 = Release|x64 22 | {765CDAEC-A494-4FD5-80C6-B052E6DCA849}.Release|x86.ActiveCfg = Release|Win32 23 | {765CDAEC-A494-4FD5-80C6-B052E6DCA849}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {B95AD387-A785-43D5-A196-374FB327474F} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /DumpspaceAPI/DSAPI.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | class DSAPI 8 | { 9 | public: 10 | 11 | // All valid content types 12 | enum class contentTypes 13 | { 14 | classes = 1 << 1, 15 | structs = 1 << 2, 16 | enums = 1 << 3, 17 | functions = 1 << 4, 18 | offsets = 1 << 5, 19 | all = classes | structs | enums | functions | offsets, 20 | }; 21 | 22 | // offsetInfo struct 23 | struct OffsetInfo 24 | { 25 | uint64_t offset; 26 | uint64_t size; 27 | bool isBit = false; 28 | int bitOffset = 0; 29 | bool valid = false; 30 | operator bool() const { return valid; } 31 | }; 32 | 33 | private: 34 | 35 | // Static variables, shouldnt change 36 | static inline std::string website = "https://dumpspace.spuckwaffel.com/Games/"; 37 | static inline std::string gameList = "https://dumpspace.spuckwaffel.com/Games/GameList.json"; 38 | 39 | // Our curl object 40 | CURL* curl; 41 | 42 | // Store these variables for fetching content 43 | std::string gameID; 44 | std::string engine; 45 | std::string location; 46 | 47 | // gameListJson which gets used to fetch variables above 48 | static inline nlohmann::json gameListJson = nlohmann::detail::value_t::discarded; 49 | 50 | // JSONs that hold the data, just like the website 51 | nlohmann::json classJson = nlohmann::detail::value_t::discarded; 52 | nlohmann::json structJson = nlohmann::detail::value_t::discarded; 53 | nlohmann::json enumJson = nlohmann::detail::value_t::discarded; 54 | nlohmann::json funcJson = nlohmann::detail::value_t::discarded; 55 | nlohmann::json offsetJson = nlohmann::detail::value_t::discarded; 56 | 57 | //unordered maps for fast gathering of info 58 | std::unordered_map classMemberMap; // classname + varname -> OffsetInfo 59 | std::unordered_map classSizeMap; // classname -> size 60 | std::unordered_map functionOffsetMap; // classname + function name -> offset 61 | std::unordered_mapenumNameMap; // enum class name + enum value -> enum name 62 | std::unordered_map offsetMap; // offset name -> offset 63 | /** 64 | * \brief downloads the content of the given URL and decompresses the data 65 | * \param url url to the compressed GZIP data 66 | * \return decompressed data 67 | */ 68 | std::string downloadGZIP(const std::string& url) const; 69 | 70 | /** 71 | * \brief downloads the gameList for the gameListJson 72 | * \param curl curl object 73 | */ 74 | static void downloadGameList(CURL* curl); 75 | 76 | public: 77 | /** 78 | * \brief Dumpspace API constructor 79 | * \param gameHash hash of the game 80 | */ 81 | DSAPI(const std::string& gameHash); 82 | 83 | /** 84 | * \brief downloads the actual JSON contents from the server 85 | * \param types types to download, default all 86 | */ 87 | void downloadContent(contentTypes types = contentTypes::all); 88 | 89 | /** 90 | * \brief gets the offset of a member inside the given struct or class. Case sensitive! 91 | * \param className the class or struct name 92 | * \param memberName the name of the member 93 | * \return the OffsetInfo of the member (invalid if no success) 94 | */ 95 | OffsetInfo getOffset(const std::string& className, const std::string& memberName); 96 | 97 | /** 98 | * \brief gets the size of the given class or struct 99 | * \param className name of the class or struct 100 | * \return the size (0 if no success) 101 | */ 102 | int getSizeofClass(const std::string& className); 103 | 104 | /** 105 | * \brief gets the offset of the given function 106 | * \param functionClass the class where the function resides in 107 | * \param functionName the name of the function 108 | * \return the offset of the function in the binary (0 if no success) 109 | */ 110 | uint64_t getFunctionOffset(const std::string& functionClass, const std::string& functionName); 111 | 112 | /** 113 | * \brief gets the enum name of an enum class for the specified value 114 | * \param enumClass the enum class 115 | * \param value the value 116 | * \return the enum name 117 | */ 118 | std::string getEnumName(const std::string& enumClass, uint64_t value); 119 | 120 | /** 121 | * \brief gets the offset for the given name of the offset (Offsets tab! Not class offsets) 122 | * \param name name of the offset 123 | * \return the offset 124 | */ 125 | uint64_t getOffset(const std::string& name); 126 | }; 127 | -------------------------------------------------------------------------------- /DumpspaceAPI/DumpspaceAPI.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "DSAPI.h" 4 | 5 | int main() 6 | { 7 | // first we create a DSAPI object with the hash of the game. You can get the hash out of the url 8 | // ...dumpspace/main/Games/index.html?hash=6b77eceb <---- 9 | DSAPI api = DSAPI("6b77eceb"); 10 | 11 | // downloads all JSONs to use the API 12 | api.downloadContent(); 13 | 14 | // gets any offset of the OFFSETS tab 15 | const auto UWorldOffset = api.getOffset("OFFSET_UWORLD"); 16 | printf("UWorld offset: 0x%llX\n", UWorldOffset); 17 | 18 | // gets the size of any defined class or struct 19 | const auto classSize = api.getSizeofClass("AActor"); 20 | printf("AActor class size: 0x%X\n", classSize); 21 | 22 | // gets the OffsetInfo of a member within a class or struct 23 | const auto offset = api.getOffset("UWorld", "OwningGameInstance"); 24 | 25 | // is it valid? 26 | if (!offset) 27 | DebugBreak(); 28 | 29 | printf("OwningGameInstance offset: 0x%llX size: 0x%llX\n", offset.offset, offset.size); 30 | 31 | // get the function offset of a function 32 | const auto functionOffset = api.getFunctionOffset("AFortWeapon", "WeaponDataIsValid"); 33 | printf("AFortWeapon::WeaponDataIsValid offset 0x%llX\n", functionOffset); 34 | 35 | // get the name of an enum from an enum class 36 | // imagine we read the rarity of a item and get the value 4 37 | 38 | //enum class EFortRarity : uint8_t { 39 | // EFortRarity__Common = 0, 40 | // EFortRarity__Uncommon = 1, 41 | // EFortRarity__Rare = 2, 42 | // EFortRarity__Epic = 3, 43 | // EFortRarity__Legendary = 4, <---- it will return this name 44 | // EFortRarity__Mythic = 5, 45 | // EFortRarity__Transcendent = 6, 46 | // ... 47 | //}; 48 | const auto enumName = api.getEnumName("EFortRarity", 4); 49 | printf("EFortRarity type 4: %s\n", enumName.c_str()); 50 | 51 | puts("end"); 52 | return 0; 53 | } -------------------------------------------------------------------------------- /DumpspaceAPI/DumpspaceAPI.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {eb904650-662e-44f4-bb70-ef9a6ffeb2fa} 18 | 19 | 20 | 21 | 22 | Source Files 23 | 24 | 25 | Source Files\DumpspaceAPI 26 | 27 | 28 | 29 | 30 | Source Files\DumpspaceAPI 31 | 32 | 33 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/BUILD_INFO: -------------------------------------------------------------------------------- 1 | CRTLinkage: static 2 | LibraryLinkage: static 3 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/CONTROL: -------------------------------------------------------------------------------- 1 | Package: curl 2 | Version: 7.68.0-3 3 | Depends: zlib 4 | Architecture: x64-windows-static 5 | Multi-Arch: same 6 | Abi: ab942d935abe3b4617db39603711214772faea15 7 | Description: A library for transferring data with URLs 8 | Type: Port 9 | 10 | Package: curl 11 | Feature: non-http 12 | Architecture: x64-windows-static 13 | Multi-Arch: same 14 | Description: Enables protocols beyond HTTP/HTTPS/HTTP2 15 | Type: Port 16 | 17 | Package: curl 18 | Feature: openssl 19 | Depends: openssl 20 | Architecture: x64-windows-static 21 | Multi-Arch: same 22 | Description: SSL support (OpenSSL) 23 | Type: Port 24 | 25 | Package: curl 26 | Feature: ssl 27 | Depends: curl 28 | Architecture: x64-windows-static 29 | Multi-Arch: same 30 | Description: Default SSL backend 31 | Type: Port 32 | 33 | Package: curl 34 | Feature: sspi 35 | Architecture: x64-windows-static 36 | Multi-Arch: same 37 | Description: SSPI support 38 | Type: Port 39 | 40 | Package: curl 41 | Feature: winssl 42 | Depends: curl 43 | Architecture: x64-windows-static 44 | Multi-Arch: same 45 | Description: SSL support (Secure Channel / "WinSSL") 46 | Type: Port 47 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/include/curl/curlver.h: -------------------------------------------------------------------------------- 1 | #ifndef CURLINC_CURLVER_H 2 | #define CURLINC_CURLVER_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2019, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | /* This header file contains nothing but libcurl version info, generated by 26 | a script at release-time. This was made its own header file in 7.11.2 */ 27 | 28 | /* This is the global package copyright */ 29 | #define LIBCURL_COPYRIGHT "1996 - 2019 Daniel Stenberg, ." 30 | 31 | /* This is the version number of the libcurl package from which this header 32 | file origins: */ 33 | #define LIBCURL_VERSION "7.68.0-DEV" 34 | 35 | /* The numeric version number is also available "in parts" by using these 36 | defines: */ 37 | #define LIBCURL_VERSION_MAJOR 7 38 | #define LIBCURL_VERSION_MINOR 68 39 | #define LIBCURL_VERSION_PATCH 0 40 | 41 | /* This is the numeric version of the libcurl version number, meant for easier 42 | parsing and comparions by programs. The LIBCURL_VERSION_NUM define will 43 | always follow this syntax: 44 | 45 | 0xXXYYZZ 46 | 47 | Where XX, YY and ZZ are the main version, release and patch numbers in 48 | hexadecimal (using 8 bits each). All three numbers are always represented 49 | using two digits. 1.2 would appear as "0x010200" while version 9.11.7 50 | appears as "0x090b07". 51 | 52 | This 6-digit (24 bits) hexadecimal number does not show pre-release number, 53 | and it is always a greater number in a more recent release. It makes 54 | comparisons with greater than and less than work. 55 | 56 | Note: This define is the full hex number and _does not_ use the 57 | CURL_VERSION_BITS() macro since curl's own configure script greps for it 58 | and needs it to contain the full number. 59 | */ 60 | #define LIBCURL_VERSION_NUM 0x074400 61 | 62 | /* 63 | * This is the date and time when the full source package was created. The 64 | * timestamp is not stored in git, as the timestamp is properly set in the 65 | * tarballs by the maketgz script. 66 | * 67 | * The format of the date follows this template: 68 | * 69 | * "2007-11-23" 70 | */ 71 | #define LIBCURL_TIMESTAMP "[unreleased]" 72 | 73 | #define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z)) 74 | #define CURL_AT_LEAST_VERSION(x,y,z) \ 75 | (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z)) 76 | 77 | #endif /* CURLINC_CURLVER_H */ 78 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/include/curl/easy.h: -------------------------------------------------------------------------------- 1 | #ifndef CURLINC_EASY_H 2 | #define CURLINC_EASY_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2019, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | CURL_EXTERN CURL *curl_easy_init(void); 29 | CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...); 30 | CURL_EXTERN CURLcode curl_easy_perform(CURL *curl); 31 | CURL_EXTERN void curl_easy_cleanup(CURL *curl); 32 | 33 | /* 34 | * NAME curl_easy_getinfo() 35 | * 36 | * DESCRIPTION 37 | * 38 | * Request internal information from the curl session with this function. The 39 | * third argument MUST be a pointer to a long, a pointer to a char * or a 40 | * pointer to a double (as the documentation describes elsewhere). The data 41 | * pointed to will be filled in accordingly and can be relied upon only if the 42 | * function returns CURLE_OK. This function is intended to get used *AFTER* a 43 | * performed transfer, all results from this function are undefined until the 44 | * transfer is completed. 45 | */ 46 | CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...); 47 | 48 | 49 | /* 50 | * NAME curl_easy_duphandle() 51 | * 52 | * DESCRIPTION 53 | * 54 | * Creates a new curl session handle with the same options set for the handle 55 | * passed in. Duplicating a handle could only be a matter of cloning data and 56 | * options, internal state info and things like persistent connections cannot 57 | * be transferred. It is useful in multithreaded applications when you can run 58 | * curl_easy_duphandle() for each new thread to avoid a series of identical 59 | * curl_easy_setopt() invokes in every thread. 60 | */ 61 | CURL_EXTERN CURL *curl_easy_duphandle(CURL *curl); 62 | 63 | /* 64 | * NAME curl_easy_reset() 65 | * 66 | * DESCRIPTION 67 | * 68 | * Re-initializes a CURL handle to the default values. This puts back the 69 | * handle to the same state as it was in when it was just created. 70 | * 71 | * It does keep: live connections, the Session ID cache, the DNS cache and the 72 | * cookies. 73 | */ 74 | CURL_EXTERN void curl_easy_reset(CURL *curl); 75 | 76 | /* 77 | * NAME curl_easy_recv() 78 | * 79 | * DESCRIPTION 80 | * 81 | * Receives data from the connected socket. Use after successful 82 | * curl_easy_perform() with CURLOPT_CONNECT_ONLY option. 83 | */ 84 | CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, 85 | size_t *n); 86 | 87 | /* 88 | * NAME curl_easy_send() 89 | * 90 | * DESCRIPTION 91 | * 92 | * Sends data over the connected socket. Use after successful 93 | * curl_easy_perform() with CURLOPT_CONNECT_ONLY option. 94 | */ 95 | CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer, 96 | size_t buflen, size_t *n); 97 | 98 | 99 | /* 100 | * NAME curl_easy_upkeep() 101 | * 102 | * DESCRIPTION 103 | * 104 | * Performs connection upkeep for the given session handle. 105 | */ 106 | CURL_EXTERN CURLcode curl_easy_upkeep(CURL *curl); 107 | 108 | #ifdef __cplusplus 109 | } 110 | #endif 111 | 112 | #endif 113 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/include/curl/mprintf.h: -------------------------------------------------------------------------------- 1 | #ifndef CURLINC_MPRINTF_H 2 | #define CURLINC_MPRINTF_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2019, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | #include 26 | #include /* needed for FILE */ 27 | #include "curl.h" /* for CURL_EXTERN */ 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | CURL_EXTERN int curl_mprintf(const char *format, ...); 34 | CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...); 35 | CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...); 36 | CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength, 37 | const char *format, ...); 38 | CURL_EXTERN int curl_mvprintf(const char *format, va_list args); 39 | CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args); 40 | CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args); 41 | CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength, 42 | const char *format, va_list args); 43 | CURL_EXTERN char *curl_maprintf(const char *format, ...); 44 | CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args); 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif 49 | 50 | #endif /* CURLINC_MPRINTF_H */ 51 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/include/curl/stdcheaders.h: -------------------------------------------------------------------------------- 1 | #ifndef CURLINC_STDCHEADERS_H 2 | #define CURLINC_STDCHEADERS_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2019, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | #include 26 | 27 | size_t fread(void *, size_t, size_t, FILE *); 28 | size_t fwrite(const void *, size_t, size_t, FILE *); 29 | 30 | int strcasecmp(const char *, const char *); 31 | int strncasecmp(const char *, const char *, size_t); 32 | 33 | #endif /* CURLINC_STDCHEADERS_H */ 34 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/lib/libcurl.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spuckwaffel/Dumpspace-API/78cd7ab23a6c060c9fb0253a1ebc9d95a2b85e74/DumpspaceAPI/libs/curl/lib/libcurl.lib -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/lib/pkgconfig/libcurl.pc: -------------------------------------------------------------------------------- 1 | #*************************************************************************** 2 | # _ _ ____ _ 3 | # Project ___| | | | _ \| | 4 | # / __| | | | |_) | | 5 | # | (__| |_| | _ <| |___ 6 | # \___|\___/|_| \_\_____| 7 | # 8 | # Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. 9 | # 10 | # This software is licensed as described in the file COPYING, which 11 | # you should have received as part of this distribution. The terms 12 | # are also available at https://curl.haxx.se/docs/copyright.html. 13 | # 14 | # You may opt to use, copy, modify, merge, publish, distribute and/or sell 15 | # copies of the Software, and permit persons to whom the Software is 16 | # furnished to do so, under the terms of the COPYING file. 17 | # 18 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 | # KIND, either express or implied. 20 | # 21 | ########################################################################### 22 | 23 | # This should most probably benefit from getting a "Requires:" field added 24 | # dynamically by configure. 25 | # 26 | prefix=C:/Users/risku/Downloads/vcpkg-master/packages/curl_x64-windows-static 27 | exec_prefix=${prefix} 28 | libdir=C:/Users/risku/Downloads/vcpkg-master/packages/curl_x64-windows-static/lib 29 | includedir=${prefix}/include 30 | supported_protocols="DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP POP3 POP3S RTSP SMTP SMTPS TELNET TFTP" 31 | supported_features="SSL IPv6 libz AsynchDNS SSPI SPNEGO Kerberos NTLM" 32 | 33 | Name: libcurl 34 | URL: https://curl.haxx.se/ 35 | Description: Library to transfer files with ftp, http, etc. 36 | Version: 7.68.0-DEV 37 | Libs: -L${libdir} -lcurl 38 | Libs.private: -lwldap32 -lwinmm -lws2_32 -ladvapi32 -lcrypt32 -ladvapi32 -lOpenSSL::SSL -lOpenSSL::Crypto -lZLIB::ZLIB 39 | Cflags: -I${includedir} 40 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/share/curl/CURLConfig.cmake: -------------------------------------------------------------------------------- 1 | 2 | ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### 3 | ####### Any changes to this file will be overwritten by the next CMake run #### 4 | ####### The input file was curl-config.cmake.in ######## 5 | 6 | get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE) 7 | 8 | macro(set_and_check _var _file) 9 | set(${_var} "${_file}") 10 | if(NOT EXISTS "${_file}") 11 | message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") 12 | endif() 13 | endmacro() 14 | 15 | macro(check_required_components _NAME) 16 | foreach(comp ${${_NAME}_FIND_COMPONENTS}) 17 | if(NOT ${_NAME}_${comp}_FOUND) 18 | if(${_NAME}_FIND_REQUIRED_${comp}) 19 | set(${_NAME}_FOUND FALSE) 20 | endif() 21 | endif() 22 | endforeach() 23 | endmacro() 24 | 25 | #################################################################################### 26 | 27 | include(CMakeFindDependencyMacro) 28 | if(ON) 29 | find_dependency(OpenSSL 1) 30 | endif() 31 | if(ON) 32 | find_dependency(ZLIB 1) 33 | endif() 34 | 35 | include("${CMAKE_CURRENT_LIST_DIR}/CURLTargets.cmake") 36 | check_required_components("CURL") 37 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/share/curl/CURLConfigVersion.cmake: -------------------------------------------------------------------------------- 1 | # This is a basic version file for the Config-mode of find_package(). 2 | # It is used by write_basic_package_version_file() as input file for configure_file() 3 | # to create a version-file which can be installed along a config.cmake file. 4 | # 5 | # The created file sets PACKAGE_VERSION_EXACT if the current version string and 6 | # the requested version string are exactly the same and it sets 7 | # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version, 8 | # but only if the requested major version is the same as the current one. 9 | # The variable CVF_VERSION must be set before calling configure_file(). 10 | 11 | 12 | set(PACKAGE_VERSION "7.68.0-DEV") 13 | 14 | if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) 15 | set(PACKAGE_VERSION_COMPATIBLE FALSE) 16 | else() 17 | 18 | if("7.68.0-DEV" MATCHES "^([0-9]+)\\.") 19 | set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}") 20 | else() 21 | set(CVF_VERSION_MAJOR "7.68.0-DEV") 22 | endif() 23 | 24 | if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR) 25 | set(PACKAGE_VERSION_COMPATIBLE TRUE) 26 | else() 27 | set(PACKAGE_VERSION_COMPATIBLE FALSE) 28 | endif() 29 | 30 | if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) 31 | set(PACKAGE_VERSION_EXACT TRUE) 32 | endif() 33 | endif() 34 | 35 | 36 | # if the installed project requested no architecture check, don't perform the check 37 | if("FALSE") 38 | return() 39 | endif() 40 | 41 | # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: 42 | if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") 43 | return() 44 | endif() 45 | 46 | # check that the installed version has the same 32/64bit-ness as the one which is currently searching: 47 | if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") 48 | math(EXPR installedBits "8 * 8") 49 | set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") 50 | set(PACKAGE_VERSION_UNSUITABLE TRUE) 51 | endif() 52 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/share/curl/CURLTargets-debug.cmake: -------------------------------------------------------------------------------- 1 | #---------------------------------------------------------------- 2 | # Generated CMake target import file for configuration "Debug". 3 | #---------------------------------------------------------------- 4 | 5 | # Commands may need to know the format version. 6 | set(CMAKE_IMPORT_FILE_VERSION 1) 7 | 8 | # Import target "CURL::libcurl" for configuration "Debug" 9 | set_property(TARGET CURL::libcurl APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) 10 | set_target_properties(CURL::libcurl PROPERTIES 11 | IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C;RC" 12 | IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/debug/lib/libcurl-d.lib" 13 | ) 14 | 15 | list(APPEND _IMPORT_CHECK_TARGETS CURL::libcurl ) 16 | list(APPEND _IMPORT_CHECK_FILES_FOR_CURL::libcurl "${_IMPORT_PREFIX}/debug/lib/libcurl-d.lib" ) 17 | 18 | # Commands beyond this point should not need to know the version. 19 | set(CMAKE_IMPORT_FILE_VERSION) 20 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/share/curl/CURLTargets-release.cmake: -------------------------------------------------------------------------------- 1 | #---------------------------------------------------------------- 2 | # Generated CMake target import file for configuration "Release". 3 | #---------------------------------------------------------------- 4 | 5 | # Commands may need to know the format version. 6 | set(CMAKE_IMPORT_FILE_VERSION 1) 7 | 8 | # Import target "CURL::libcurl" for configuration "Release" 9 | set_property(TARGET CURL::libcurl APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) 10 | set_target_properties(CURL::libcurl PROPERTIES 11 | IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C;RC" 12 | IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libcurl.lib" 13 | ) 14 | 15 | list(APPEND _IMPORT_CHECK_TARGETS CURL::libcurl ) 16 | list(APPEND _IMPORT_CHECK_FILES_FOR_CURL::libcurl "${_IMPORT_PREFIX}/lib/libcurl.lib" ) 17 | 18 | # Commands beyond this point should not need to know the version. 19 | set(CMAKE_IMPORT_FILE_VERSION) 20 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/share/curl/CURLTargets.cmake: -------------------------------------------------------------------------------- 1 | # Generated by CMake 2 | 3 | if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5) 4 | message(FATAL_ERROR "CMake >= 2.6.0 required") 5 | endif() 6 | cmake_policy(PUSH) 7 | cmake_policy(VERSION 2.6) 8 | #---------------------------------------------------------------- 9 | # Generated CMake target import file. 10 | #---------------------------------------------------------------- 11 | 12 | # Commands may need to know the format version. 13 | set(CMAKE_IMPORT_FILE_VERSION 1) 14 | 15 | # Protect against multiple inclusion, which would fail when already imported targets are added once more. 16 | set(_targetsDefined) 17 | set(_targetsNotDefined) 18 | set(_expectedTargets) 19 | foreach(_expectedTarget CURL::libcurl) 20 | list(APPEND _expectedTargets ${_expectedTarget}) 21 | if(NOT TARGET ${_expectedTarget}) 22 | list(APPEND _targetsNotDefined ${_expectedTarget}) 23 | endif() 24 | if(TARGET ${_expectedTarget}) 25 | list(APPEND _targetsDefined ${_expectedTarget}) 26 | endif() 27 | endforeach() 28 | if("${_targetsDefined}" STREQUAL "${_expectedTargets}") 29 | unset(_targetsDefined) 30 | unset(_targetsNotDefined) 31 | unset(_expectedTargets) 32 | set(CMAKE_IMPORT_FILE_VERSION) 33 | cmake_policy(POP) 34 | return() 35 | endif() 36 | if(NOT "${_targetsDefined}" STREQUAL "") 37 | message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n") 38 | endif() 39 | unset(_targetsDefined) 40 | unset(_targetsNotDefined) 41 | unset(_expectedTargets) 42 | 43 | 44 | # Compute the installation prefix relative to this file. 45 | get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) 46 | get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) 47 | get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) 48 | if(_IMPORT_PREFIX STREQUAL "/") 49 | set(_IMPORT_PREFIX "") 50 | endif() 51 | 52 | # Create imported target CURL::libcurl 53 | add_library(CURL::libcurl STATIC IMPORTED) 54 | 55 | set_target_properties(CURL::libcurl PROPERTIES 56 | INTERFACE_COMPILE_DEFINITIONS "CURL_STATICLIB" 57 | INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" 58 | INTERFACE_LINK_LIBRARIES "wldap32;winmm;ws2_32;advapi32;crypt32;advapi32;OpenSSL::SSL;OpenSSL::Crypto;ZLIB::ZLIB" 59 | ) 60 | 61 | if(CMAKE_VERSION VERSION_LESS 2.8.12) 62 | message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.") 63 | endif() 64 | 65 | # Load information for each installed configuration. 66 | get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) 67 | file(GLOB CONFIG_FILES "${_DIR}/CURLTargets-*.cmake") 68 | foreach(f ${CONFIG_FILES}) 69 | include(${f}) 70 | endforeach() 71 | 72 | # Cleanup temporary variables. 73 | set(_IMPORT_PREFIX) 74 | 75 | # Loop over all imported files and verify that they actually exist 76 | foreach(target ${_IMPORT_CHECK_TARGETS} ) 77 | foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} ) 78 | if(NOT EXISTS "${file}" ) 79 | message(FATAL_ERROR "The imported target \"${target}\" references the file 80 | \"${file}\" 81 | but this file does not exist. Possible reasons include: 82 | * The file was deleted, renamed, or moved to another location. 83 | * An install or uninstall procedure did not complete successfully. 84 | * The installation package was faulty and contained 85 | \"${CMAKE_CURRENT_LIST_FILE}\" 86 | but not all the files it references. 87 | ") 88 | endif() 89 | endforeach() 90 | unset(_IMPORT_CHECK_FILES_FOR_${target}) 91 | endforeach() 92 | unset(_IMPORT_CHECK_TARGETS) 93 | 94 | # This file does not depend on other imported targets which have 95 | # been exported from the same project but in a separate export set. 96 | 97 | # Commands beyond this point should not need to know the version. 98 | set(CMAKE_IMPORT_FILE_VERSION) 99 | cmake_policy(POP) 100 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/share/curl/copyright: -------------------------------------------------------------------------------- 1 | COPYRIGHT AND PERMISSION NOTICE 2 | 3 | Copyright (c) 1996 - 2020, Daniel Stenberg, , and many 4 | contributors, see the THANKS file. 5 | 6 | All rights reserved. 7 | 8 | Permission to use, copy, modify, and distribute this software for any purpose 9 | with or without fee is hereby granted, provided that the above copyright 10 | notice and this permission notice appear in all copies. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN 15 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 17 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 18 | OR OTHER DEALINGS IN THE SOFTWARE. 19 | 20 | Except as contained in this notice, the name of a copyright holder shall not 21 | be used in advertising or otherwise to promote the sale, use or other dealings 22 | in this Software without prior written authorization of the copyright holder. 23 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/share/curl/vcpkg-cmake-wrapper.cmake: -------------------------------------------------------------------------------- 1 | list(REMOVE_ITEM ARGS "NO_MODULE") 2 | list(REMOVE_ITEM ARGS "CONFIG") 3 | list(REMOVE_ITEM ARGS "MODULE") 4 | 5 | _find_package(${ARGS} CONFIG) 6 | 7 | if(TARGET CURL::libcurl) 8 | set(CURL_FOUND TRUE) 9 | 10 | get_target_property(_curl_include_dirs CURL::libcurl INTERFACE_INCLUDE_DIRECTORIES) 11 | get_target_property(_curl_link_libraries CURL::libcurl INTERFACE_LINK_LIBRARIES) 12 | 13 | if (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") 14 | get_target_property(_curl_location_debug CURL::libcurl IMPORTED_IMPLIB_DEBUG) 15 | get_target_property(_curl_location_release CURL::libcurl IMPORTED_IMPLIB_RELEASE) 16 | endif() 17 | 18 | if(NOT _curl_location_debug AND NOT _curl_location_release) 19 | get_target_property(_curl_location_debug CURL::libcurl IMPORTED_LOCATION_DEBUG) 20 | get_target_property(_curl_location_release CURL::libcurl IMPORTED_LOCATION_RELEASE) 21 | endif() 22 | 23 | if(NOT _curl_link_libraries) 24 | set(_curl_link_libraries) 25 | endif() 26 | 27 | set(CURL_INCLUDE_DIRS "${_curl_include_dirs}") 28 | set(CURL_LIBRARY_DEBUG "${_curl_location_debug}") 29 | set(CURL_LIBRARY_RELEASE "${_curl_location_release}") 30 | 31 | #For builds which rely on CURL_LIBRAR(Y/IES) 32 | include(${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake) 33 | select_library_configurations(CURL) 34 | 35 | set(CURL_LIBRARIES ${CURL_LIBRARY} ${_curl_link_libraries}) 36 | set(CURL_VERSION_STRING "${CURL_VERSION}") 37 | 38 | set(_curl_include_dirs) 39 | set(_curl_link_libraries) 40 | set(_curl_location_debug) 41 | set(_curl_location_release) 42 | endif() 43 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/curl/share/curl/vcpkg_abi_info.txt: -------------------------------------------------------------------------------- 1 | openssl 3e7603b31909253484743bd72ba226afd1210f83 2 | zlib b055e0cd6bcf6ab8147282f183cff1816386dda1 3 | vcpkg-cmake-wrapper.cmake 02b9027fe16333fd92f1e2424cf92f4b6de720ab 4 | 0008_fix_tools_path.patch 13a5edc12c612860f802ac258463450fe43635ee 5 | portfile.cmake 1d2ecbe264e91d26ebbbb790f1051937a10d5157 6 | 0005_remove_imp_suffix.patch 2713a098ce6fa0257bd7676dea665ce61f215bdd 7 | 0001_cmake.patch 41a72cc0844e763bf89d5341e88ec3f20a22fc3a 8 | CONTROL 43d7eb0b311d972c343c703916073a817ebcea25 9 | 0007_disable_tool_export_curl_target.patch 6833e16fc870491a3606271c4e4bed590ac32c3e 10 | 0006_fix_tool_depends.patch 6c4bad90c194f210dfebe52b0e05bf3a6e3d0396 11 | 0010_fix_othertests_cmake.patch 90d852bb9fb49bad6968e6fe61e048f8efda908d 12 | 0003_fix_libraries.patch af9035ba9afa545d7a16fc1fc24ff94bf41f3f02 13 | 0009_fix_openssl_config.patch b4524fdf0405bb0dd09513a0a5226cd67640e61a 14 | 0002_fix_uwp.patch b57e03826b75299a923fec8aded43edc969a3232 15 | 0004_nghttp2_staticlib.patch efa66e698ce46deff5496eb9a8b59ec633a99916 16 | cmake 3.14.0 17 | powershell ab1effc926b000a6adc12198a1886514ec203621a53b0cd7ec1cd9a8225dccda7e857feaabcfba4004bea73129b986abaad777c4573f44e0af70411226ce08b0 18 | vcpkg_fixup_cmake_targets dac334f3bf50b8262be92623168023aa565aa729 19 | post_build_checks 2 20 | triplet 11b48685057027ff91b8ac481e606bbf604cef3b 21 | features core;non-http;openssl;ssl;sspi;winssl 22 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/gzip/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017, Mapbox Inc. 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions 6 | are met: 7 | 8 | - Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | - Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 15 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 16 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 17 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 18 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 19 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 20 | TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 22 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 23 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /DumpspaceAPI/libs/gzip/README.md: -------------------------------------------------------------------------------- 1 | Gzip C++ lib for gzip compression and decompression. Extracted from [mapnik-vector-tile](https://github.com/mapbox/mapnik-vector-tile) for light-weight modularity. 2 | 3 | [![Build Status](https://travis-ci.com/mapbox/gzip-hpp.svg?branch=master)](https://travis-ci.com/mapbox/gzip-hpp) 4 | [![hpp-skel badge](https://raw.githubusercontent.com/mapbox/cpp/master/assets/hpp-skel-badge_blue.svg)](https://github.com/mapbox/hpp-skel) 5 | 6 | ## Usage 7 | ```c++ 8 | // Include the specific gzip headers your code needs, for example... 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | // All function calls must pass in a pointer of an 16 | // immutable character sequence (aka a string in C) and its size 17 | std::string data = "hello"; 18 | const char * pointer = data.data(); 19 | std::size_t size = data.size(); 20 | 21 | // Check if compressed. Can check both gzip and zlib. 22 | bool c = gzip::is_compressed(pointer, size); // false 23 | 24 | // Compress returns a std::string 25 | std::string compressed_data = gzip::compress(pointer, size); 26 | 27 | // Decompress returns a std::string and decodes both zlib and gzip 28 | const char * compressed_pointer = compressed_data.data(); 29 | std::string decompressed_data = gzip::decompress(compressed_pointer, compressed_data.size()); 30 | 31 | // Or like so 32 | std::string compressed_data = gzip::compress(tile->data(), tile->data.size()); 33 | 34 | // Or like so 35 | std::string value = gzip::compress(node::Buffer::Data(obj), node::Buffer::Length(obj)); 36 | 37 | // Or...etc 38 | 39 | ``` 40 | #### Compress 41 | ```c++ 42 | // Optionally include compression level 43 | std::size_t size; // No default value, but what happens when not passed?? 44 | int level = Z_DEFAULT_COMPRESSION; // Z_DEFAULT_COMPRESSION is the default if no arg is passed 45 | 46 | std::string compressed_data = gzip::compress(tile->data(), size, level); 47 | ``` 48 | #### Decompress 49 | ```c++ 50 | // No args other than the std:string 51 | std::string data = "hello"; 52 | std::string compressed_data = gzip::compress(data); 53 | const char * compressed_pointer = compressed_data.data(); 54 | 55 | std::string decompressed_data = gzip::decompress(compressed_pointer, compressed_data.size()); 56 | 57 | ``` 58 | 59 | ## Test 60 | 61 | ```shell 62 | # build test binaries 63 | make 64 | 65 | # run tests 66 | make test 67 | ``` 68 | 69 | You can make Release test binaries as well 70 | ```shell 71 | BUILDTYPE=Release make 72 | BUILDTYPE=Release make test 73 | ``` 74 | 75 | ## Versioning 76 | 77 | This library is semantically versioned using the /include/gzip/version.cpp file. This defines a number of macros that can be used to check the current major, minor, or patch versions, as well as the full version string. 78 | 79 | Here's how you can check for a particular version to use specific API methods 80 | ```c++ 81 | #if GZIP_VERSION_MAJOR > 2 82 | // use version 2 api 83 | #else 84 | // use older verion apis 85 | #endif 86 | ``` 87 | 88 | Here's how to check the version string 89 | ```c++ 90 | std::cout << "version: " << GZIP_VERSION_STRING << "/n"; 91 | // => version: 0.2.0 92 | ``` 93 | 94 | And lastly, mathematically checking for a specific version: 95 | ```c++ 96 | #if GZIP_VERSION_CODE > 20001 97 | // use feature provided in v2.0.1 98 | #endif 99 | ``` 100 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/gzip/compress.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // zlib 4 | #include 5 | 6 | // std 7 | #include 8 | #include 9 | #include 10 | 11 | namespace gzip { 12 | 13 | class Compressor 14 | { 15 | std::size_t max_; 16 | int level_; 17 | 18 | public: 19 | Compressor(int level = Z_DEFAULT_COMPRESSION, 20 | std::size_t max_bytes = 2000000000) // by default refuse operation if uncompressed data is > 2GB 21 | : max_(max_bytes), 22 | level_(level) 23 | { 24 | } 25 | 26 | template 27 | void compress(InputType& output, 28 | const char* data, 29 | std::size_t size) const 30 | { 31 | 32 | #ifdef DEBUG 33 | // Verify if size input will fit into unsigned int, type used for zlib's avail_in 34 | if (size > std::numeric_limits::max()) 35 | { 36 | throw std::runtime_error("size arg is too large to fit into unsigned int type"); 37 | } 38 | #endif 39 | if (size > max_) 40 | { 41 | throw std::runtime_error("size may use more memory than intended when decompressing"); 42 | } 43 | 44 | z_stream deflate_s; 45 | deflate_s.zalloc = Z_NULL; 46 | deflate_s.zfree = Z_NULL; 47 | deflate_s.opaque = Z_NULL; 48 | deflate_s.avail_in = 0; 49 | deflate_s.next_in = Z_NULL; 50 | 51 | // The windowBits parameter is the base two logarithm of the window size (the size of the history buffer). 52 | // It should be in the range 8..15 for this version of the library. 53 | // Larger values of this parameter result in better compression at the expense of memory usage. 54 | // This range of values also changes the decoding type: 55 | // -8 to -15 for raw deflate 56 | // 8 to 15 for zlib 57 | // (8 to 15) + 16 for gzip 58 | // (8 to 15) + 32 to automatically detect gzip/zlib header (decompression/inflate only) 59 | constexpr int window_bits = 15 + 16; // gzip with windowbits of 15 60 | 61 | constexpr int mem_level = 8; 62 | // The memory requirements for deflate are (in bytes): 63 | // (1 << (window_bits+2)) + (1 << (mem_level+9)) 64 | // with a default value of 8 for mem_level and our window_bits of 15 65 | // this is 128Kb 66 | 67 | #pragma GCC diagnostic push 68 | #pragma GCC diagnostic ignored "-Wold-style-cast" 69 | if (deflateInit2(&deflate_s, level_, Z_DEFLATED, window_bits, mem_level, Z_DEFAULT_STRATEGY) != Z_OK) 70 | { 71 | throw std::runtime_error("deflate init failed"); 72 | } 73 | #pragma GCC diagnostic pop 74 | 75 | deflate_s.next_in = reinterpret_cast(data); 76 | deflate_s.avail_in = static_cast(size); 77 | 78 | std::size_t size_compressed = 0; 79 | do 80 | { 81 | size_t increase = size / 2 + 1024; 82 | if (output.size() < (size_compressed + increase)) 83 | { 84 | output.resize(size_compressed + increase); 85 | } 86 | // There is no way we see that "increase" would not fit in an unsigned int, 87 | // hence we use static cast here to avoid -Wshorten-64-to-32 error 88 | deflate_s.avail_out = static_cast(increase); 89 | deflate_s.next_out = reinterpret_cast((&output[0] + size_compressed)); 90 | // From http://www.zlib.net/zlib_how.html 91 | // "deflate() has a return value that can indicate errors, yet we do not check it here. 92 | // Why not? Well, it turns out that deflate() can do no wrong here." 93 | // Basically only possible error is from deflateInit not working properly 94 | deflate(&deflate_s, Z_FINISH); 95 | size_compressed += (increase - deflate_s.avail_out); 96 | } while (deflate_s.avail_out == 0); 97 | 98 | deflateEnd(&deflate_s); 99 | output.resize(size_compressed); 100 | } 101 | }; 102 | 103 | inline std::string compress(const char* data, 104 | std::size_t size, 105 | int level = Z_DEFAULT_COMPRESSION) 106 | { 107 | Compressor comp(level); 108 | std::string output; 109 | comp.compress(output, data, size); 110 | return output; 111 | } 112 | 113 | } // namespace gzip 114 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/gzip/config.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef ZLIB_CONST 4 | #define ZLIB_CONST 5 | #endif -------------------------------------------------------------------------------- /DumpspaceAPI/libs/gzip/decompress.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // zlib 4 | #include 5 | 6 | // std 7 | #include 8 | #include 9 | #include 10 | 11 | namespace gzip { 12 | 13 | class Decompressor 14 | { 15 | std::size_t max_; 16 | 17 | public: 18 | Decompressor(std::size_t max_bytes = 1000000000) // by default refuse operation if compressed data is > 1GB 19 | : max_(max_bytes) 20 | { 21 | } 22 | 23 | template 24 | void decompress(OutputType& output, 25 | const char* data, 26 | std::size_t size) const 27 | { 28 | z_stream inflate_s; 29 | 30 | inflate_s.zalloc = Z_NULL; 31 | inflate_s.zfree = Z_NULL; 32 | inflate_s.opaque = Z_NULL; 33 | inflate_s.avail_in = 0; 34 | inflate_s.next_in = Z_NULL; 35 | 36 | // The windowBits parameter is the base two logarithm of the window size (the size of the history buffer). 37 | // It should be in the range 8..15 for this version of the library. 38 | // Larger values of this parameter result in better compression at the expense of memory usage. 39 | // This range of values also changes the decoding type: 40 | // -8 to -15 for raw deflate 41 | // 8 to 15 for zlib 42 | // (8 to 15) + 16 for gzip 43 | // (8 to 15) + 32 to automatically detect gzip/zlib header 44 | constexpr int window_bits = 15 + 32; // auto with windowbits of 15 45 | 46 | #pragma GCC diagnostic push 47 | #pragma GCC diagnostic ignored "-Wold-style-cast" 48 | if (inflateInit2(&inflate_s, window_bits) != Z_OK) 49 | { 50 | throw std::runtime_error("inflate init failed"); 51 | } 52 | #pragma GCC diagnostic pop 53 | inflate_s.next_in = reinterpret_cast(data); 54 | 55 | #ifdef DEBUG 56 | // Verify if size (long type) input will fit into unsigned int, type used for zlib's avail_in 57 | std::uint64_t size_64 = size * 2; 58 | if (size_64 > std::numeric_limits::max()) 59 | { 60 | inflateEnd(&inflate_s); 61 | throw std::runtime_error("size arg is too large to fit into unsigned int type x2"); 62 | } 63 | #endif 64 | if (size > max_ || (size * 2) > max_) 65 | { 66 | inflateEnd(&inflate_s); 67 | throw std::runtime_error("size may use more memory than intended when decompressing"); 68 | } 69 | inflate_s.avail_in = static_cast(size); 70 | std::size_t size_uncompressed = 0; 71 | do 72 | { 73 | std::size_t resize_to = size_uncompressed + 2 * size; 74 | if (resize_to > max_) 75 | { 76 | inflateEnd(&inflate_s); 77 | throw std::runtime_error("size of output string will use more memory then intended when decompressing"); 78 | } 79 | output.resize(resize_to); 80 | inflate_s.avail_out = static_cast(2 * size); 81 | inflate_s.next_out = reinterpret_cast(&output[0] + size_uncompressed); 82 | int ret = inflate(&inflate_s, Z_FINISH); 83 | if (ret != Z_STREAM_END && ret != Z_OK && ret != Z_BUF_ERROR) 84 | { 85 | std::string error_msg = inflate_s.msg; 86 | inflateEnd(&inflate_s); 87 | throw std::runtime_error(error_msg); 88 | } 89 | 90 | size_uncompressed += (2 * size - inflate_s.avail_out); 91 | } while (inflate_s.avail_out == 0); 92 | inflateEnd(&inflate_s); 93 | output.resize(size_uncompressed); 94 | } 95 | }; 96 | 97 | inline std::string decompress(const char* data, std::size_t size) 98 | { 99 | Decompressor decomp; 100 | std::string output; 101 | decomp.decompress(output, data, size); 102 | return output; 103 | } 104 | 105 | } // namespace gzip 106 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/gzip/utils.hpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | namespace gzip { 4 | 5 | // These live in gzip.hpp because it doesnt need to use deps. 6 | // Otherwise, they would need to live in impl files if these methods used 7 | // zlib structures or functions like inflate/deflate) 8 | inline bool is_compressed(const char* data, std::size_t size) 9 | { 10 | return size > 2 && 11 | ( 12 | // zlib 13 | ( 14 | static_cast(data[0]) == 0x78 && 15 | (static_cast(data[1]) == 0x9C || 16 | static_cast(data[1]) == 0x01 || 17 | static_cast(data[1]) == 0xDA || 18 | static_cast(data[1]) == 0x5E)) || 19 | // gzip 20 | (static_cast(data[0]) == 0x1F && static_cast(data[1]) == 0x8B)); 21 | } 22 | } // namespace gzip 23 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/gzip/version.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | /// The major version number 4 | #define GZIP_VERSION_MAJOR 1 5 | 6 | /// The minor version number 7 | #define GZIP_VERSION_MINOR 0 8 | 9 | /// The patch number 10 | #define GZIP_VERSION_PATCH 0 11 | 12 | /// The complete version number 13 | #define GZIP_VERSION_CODE (GZIP_VERSION_MAJOR * 10000 + GZIP_VERSION_MINOR * 100 + GZIP_VERSION_PATCH) 14 | 15 | /// Version number as string 16 | #define GZIP_VERSION_STRING "1.0.0" -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/adl_serializer.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | #include 6 | #include 7 | 8 | namespace nlohmann 9 | { 10 | 11 | template 12 | struct adl_serializer 13 | { 14 | /*! 15 | @brief convert a JSON value to any value type 16 | 17 | This function is usually called by the `get()` function of the 18 | @ref basic_json class (either explicit or via conversion operators). 19 | 20 | @param[in] j JSON value to read from 21 | @param[in,out] val value to write to 22 | */ 23 | template 24 | static auto from_json(BasicJsonType&& j, ValueType& val) noexcept( 25 | noexcept(::nlohmann::from_json(std::forward(j), val))) 26 | -> decltype(::nlohmann::from_json(std::forward(j), val), void()) 27 | { 28 | ::nlohmann::from_json(std::forward(j), val); 29 | } 30 | 31 | /*! 32 | @brief convert any value type to a JSON value 33 | 34 | This function is usually called by the constructors of the @ref basic_json 35 | class. 36 | 37 | @param[in,out] j JSON value to write to 38 | @param[in] val value to read from 39 | */ 40 | template 41 | static auto to_json(BasicJsonType& j, ValueType&& val) noexcept( 42 | noexcept(::nlohmann::to_json(j, std::forward(val)))) 43 | -> decltype(::nlohmann::to_json(j, std::forward(val)), void()) 44 | { 45 | ::nlohmann::to_json(j, std::forward(val)); 46 | } 47 | }; 48 | 49 | } // namespace nlohmann 50 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/hash.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include // size_t, uint8_t 4 | #include // hash 5 | 6 | namespace nlohmann 7 | { 8 | namespace detail 9 | { 10 | 11 | // boost::hash_combine 12 | inline std::size_t combine(std::size_t seed, std::size_t h) noexcept 13 | { 14 | seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U); 15 | return seed; 16 | } 17 | 18 | /*! 19 | @brief hash a JSON value 20 | 21 | The hash function tries to rely on std::hash where possible. Furthermore, the 22 | type of the JSON value is taken into account to have different hash values for 23 | null, 0, 0U, and false, etc. 24 | 25 | @tparam BasicJsonType basic_json specialization 26 | @param j JSON value to hash 27 | @return hash value of j 28 | */ 29 | template 30 | std::size_t hash(const BasicJsonType& j) 31 | { 32 | using string_t = typename BasicJsonType::string_t; 33 | using number_integer_t = typename BasicJsonType::number_integer_t; 34 | using number_unsigned_t = typename BasicJsonType::number_unsigned_t; 35 | using number_float_t = typename BasicJsonType::number_float_t; 36 | 37 | const auto type = static_cast(j.type()); 38 | switch (j.type()) 39 | { 40 | case BasicJsonType::value_t::null: 41 | case BasicJsonType::value_t::discarded: 42 | { 43 | return combine(type, 0); 44 | } 45 | 46 | case BasicJsonType::value_t::object: 47 | { 48 | auto seed = combine(type, j.size()); 49 | for (const auto& element : j.items()) 50 | { 51 | const auto h = std::hash {}(element.key()); 52 | seed = combine(seed, h); 53 | seed = combine(seed, hash(element.value())); 54 | } 55 | return seed; 56 | } 57 | 58 | case BasicJsonType::value_t::array: 59 | { 60 | auto seed = combine(type, j.size()); 61 | for (const auto& element : j) 62 | { 63 | seed = combine(seed, hash(element)); 64 | } 65 | return seed; 66 | } 67 | 68 | case BasicJsonType::value_t::string: 69 | { 70 | const auto h = std::hash {}(j.template get_ref()); 71 | return combine(type, h); 72 | } 73 | 74 | case BasicJsonType::value_t::boolean: 75 | { 76 | const auto h = std::hash {}(j.template get()); 77 | return combine(type, h); 78 | } 79 | 80 | case BasicJsonType::value_t::number_integer: 81 | { 82 | const auto h = std::hash {}(j.template get()); 83 | return combine(type, h); 84 | } 85 | 86 | case nlohmann::detail::value_t::number_unsigned: 87 | { 88 | const auto h = std::hash {}(j.template get()); 89 | return combine(type, h); 90 | } 91 | 92 | case nlohmann::detail::value_t::number_float: 93 | { 94 | const auto h = std::hash {}(j.template get()); 95 | return combine(type, h); 96 | } 97 | 98 | case nlohmann::detail::value_t::binary: 99 | { 100 | auto seed = combine(type, j.get_binary().size()); 101 | const auto h = std::hash {}(j.get_binary().has_subtype()); 102 | seed = combine(seed, h); 103 | seed = combine(seed, j.get_binary().subtype()); 104 | for (const auto byte : j.get_binary()) 105 | { 106 | seed = combine(seed, std::hash {}(byte)); 107 | } 108 | return seed; 109 | } 110 | 111 | default: // LCOV_EXCL_LINE 112 | JSON_ASSERT(false); // LCOV_EXCL_LINE 113 | } 114 | } 115 | 116 | } // namespace detail 117 | } // namespace nlohmann 118 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/input/position_t.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include // size_t 4 | 5 | namespace nlohmann 6 | { 7 | namespace detail 8 | { 9 | /// struct to capture the start position of the current token 10 | struct position_t 11 | { 12 | /// the total number of characters read 13 | std::size_t chars_read_total = 0; 14 | /// the number of characters read in the current line 15 | std::size_t chars_read_current_line = 0; 16 | /// the number of lines read 17 | std::size_t lines_read = 0; 18 | 19 | /// conversion to size_t to preserve SAX interface 20 | constexpr operator size_t() const 21 | { 22 | return chars_read_total; 23 | } 24 | }; 25 | 26 | } // namespace detail 27 | } // namespace nlohmann 28 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/iterators/internal_iterator.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | namespace nlohmann 6 | { 7 | namespace detail 8 | { 9 | /*! 10 | @brief an iterator value 11 | 12 | @note This structure could easily be a union, but MSVC currently does not allow 13 | unions members with complex constructors, see https://github.com/nlohmann/json/pull/105. 14 | */ 15 | template struct internal_iterator 16 | { 17 | /// iterator for JSON objects 18 | typename BasicJsonType::object_t::iterator object_iterator {}; 19 | /// iterator for JSON arrays 20 | typename BasicJsonType::array_t::iterator array_iterator {}; 21 | /// generic iterator for all other types 22 | primitive_iterator_t primitive_iterator {}; 23 | }; 24 | } // namespace detail 25 | } // namespace nlohmann 26 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/iterators/iterator_traits.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include // random_access_iterator_tag 4 | 5 | #include 6 | #include 7 | 8 | namespace nlohmann 9 | { 10 | namespace detail 11 | { 12 | template 13 | struct iterator_types {}; 14 | 15 | template 16 | struct iterator_types < 17 | It, 18 | void_t> 20 | { 21 | using difference_type = typename It::difference_type; 22 | using value_type = typename It::value_type; 23 | using pointer = typename It::pointer; 24 | using reference = typename It::reference; 25 | using iterator_category = typename It::iterator_category; 26 | }; 27 | 28 | // This is required as some compilers implement std::iterator_traits in a way that 29 | // doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341. 30 | template 31 | struct iterator_traits 32 | { 33 | }; 34 | 35 | template 36 | struct iterator_traits < T, enable_if_t < !std::is_pointer::value >> 37 | : iterator_types 38 | { 39 | }; 40 | 41 | template 42 | struct iterator_traits::value>> 43 | { 44 | using iterator_category = std::random_access_iterator_tag; 45 | using value_type = T; 46 | using difference_type = ptrdiff_t; 47 | using pointer = T*; 48 | using reference = T&; 49 | }; 50 | } // namespace detail 51 | } // namespace nlohmann 52 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/iterators/json_reverse_iterator.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include // ptrdiff_t 4 | #include // reverse_iterator 5 | #include // declval 6 | 7 | namespace nlohmann 8 | { 9 | namespace detail 10 | { 11 | ////////////////////// 12 | // reverse_iterator // 13 | ////////////////////// 14 | 15 | /*! 16 | @brief a template for a reverse iterator class 17 | 18 | @tparam Base the base iterator type to reverse. Valid types are @ref 19 | iterator (to create @ref reverse_iterator) and @ref const_iterator (to 20 | create @ref const_reverse_iterator). 21 | 22 | @requirement The class satisfies the following concept requirements: 23 | - 24 | [BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator): 25 | The iterator that can be moved can be moved in both directions (i.e. 26 | incremented and decremented). 27 | - [OutputIterator](https://en.cppreference.com/w/cpp/named_req/OutputIterator): 28 | It is possible to write to the pointed-to element (only if @a Base is 29 | @ref iterator). 30 | 31 | @since version 1.0.0 32 | */ 33 | template 34 | class json_reverse_iterator : public std::reverse_iterator 35 | { 36 | public: 37 | using difference_type = std::ptrdiff_t; 38 | /// shortcut to the reverse iterator adapter 39 | using base_iterator = std::reverse_iterator; 40 | /// the reference type for the pointed-to element 41 | using reference = typename Base::reference; 42 | 43 | /// create reverse iterator from iterator 44 | explicit json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept 45 | : base_iterator(it) {} 46 | 47 | /// create reverse iterator from base class 48 | explicit json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {} 49 | 50 | /// post-increment (it++) 51 | json_reverse_iterator const operator++(int) 52 | { 53 | return static_cast(base_iterator::operator++(1)); 54 | } 55 | 56 | /// pre-increment (++it) 57 | json_reverse_iterator& operator++() 58 | { 59 | return static_cast(base_iterator::operator++()); 60 | } 61 | 62 | /// post-decrement (it--) 63 | json_reverse_iterator const operator--(int) 64 | { 65 | return static_cast(base_iterator::operator--(1)); 66 | } 67 | 68 | /// pre-decrement (--it) 69 | json_reverse_iterator& operator--() 70 | { 71 | return static_cast(base_iterator::operator--()); 72 | } 73 | 74 | /// add to iterator 75 | json_reverse_iterator& operator+=(difference_type i) 76 | { 77 | return static_cast(base_iterator::operator+=(i)); 78 | } 79 | 80 | /// add to iterator 81 | json_reverse_iterator operator+(difference_type i) const 82 | { 83 | return static_cast(base_iterator::operator+(i)); 84 | } 85 | 86 | /// subtract from iterator 87 | json_reverse_iterator operator-(difference_type i) const 88 | { 89 | return static_cast(base_iterator::operator-(i)); 90 | } 91 | 92 | /// return difference 93 | difference_type operator-(const json_reverse_iterator& other) const 94 | { 95 | return base_iterator(*this) - base_iterator(other); 96 | } 97 | 98 | /// access to successor 99 | reference operator[](difference_type n) const 100 | { 101 | return *(this->operator+(n)); 102 | } 103 | 104 | /// return the key of an object iterator 105 | auto key() const -> decltype(std::declval().key()) 106 | { 107 | auto it = --this->base(); 108 | return it.key(); 109 | } 110 | 111 | /// return the value of an iterator 112 | reference value() const 113 | { 114 | auto it = --this->base(); 115 | return it.operator * (); 116 | } 117 | }; 118 | } // namespace detail 119 | } // namespace nlohmann 120 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/iterators/primitive_iterator.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include // ptrdiff_t 4 | #include // numeric_limits 5 | 6 | namespace nlohmann 7 | { 8 | namespace detail 9 | { 10 | /* 11 | @brief an iterator for primitive JSON types 12 | 13 | This class models an iterator for primitive JSON types (boolean, number, 14 | string). It's only purpose is to allow the iterator/const_iterator classes 15 | to "iterate" over primitive values. Internally, the iterator is modeled by 16 | a `difference_type` variable. Value begin_value (`0`) models the begin, 17 | end_value (`1`) models past the end. 18 | */ 19 | class primitive_iterator_t 20 | { 21 | private: 22 | using difference_type = std::ptrdiff_t; 23 | static constexpr difference_type begin_value = 0; 24 | static constexpr difference_type end_value = begin_value + 1; 25 | 26 | /// iterator as signed integer type 27 | difference_type m_it = (std::numeric_limits::min)(); 28 | 29 | public: 30 | constexpr difference_type get_value() const noexcept 31 | { 32 | return m_it; 33 | } 34 | 35 | /// set iterator to a defined beginning 36 | void set_begin() noexcept 37 | { 38 | m_it = begin_value; 39 | } 40 | 41 | /// set iterator to a defined past the end 42 | void set_end() noexcept 43 | { 44 | m_it = end_value; 45 | } 46 | 47 | /// return whether the iterator can be dereferenced 48 | constexpr bool is_begin() const noexcept 49 | { 50 | return m_it == begin_value; 51 | } 52 | 53 | /// return whether the iterator is at end 54 | constexpr bool is_end() const noexcept 55 | { 56 | return m_it == end_value; 57 | } 58 | 59 | friend constexpr bool operator==(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept 60 | { 61 | return lhs.m_it == rhs.m_it; 62 | } 63 | 64 | friend constexpr bool operator<(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept 65 | { 66 | return lhs.m_it < rhs.m_it; 67 | } 68 | 69 | primitive_iterator_t operator+(difference_type n) noexcept 70 | { 71 | auto result = *this; 72 | result += n; 73 | return result; 74 | } 75 | 76 | friend constexpr difference_type operator-(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept 77 | { 78 | return lhs.m_it - rhs.m_it; 79 | } 80 | 81 | primitive_iterator_t& operator++() noexcept 82 | { 83 | ++m_it; 84 | return *this; 85 | } 86 | 87 | primitive_iterator_t const operator++(int) noexcept 88 | { 89 | auto result = *this; 90 | ++m_it; 91 | return result; 92 | } 93 | 94 | primitive_iterator_t& operator--() noexcept 95 | { 96 | --m_it; 97 | return *this; 98 | } 99 | 100 | primitive_iterator_t const operator--(int) noexcept 101 | { 102 | auto result = *this; 103 | --m_it; 104 | return result; 105 | } 106 | 107 | primitive_iterator_t& operator+=(difference_type n) noexcept 108 | { 109 | m_it += n; 110 | return *this; 111 | } 112 | 113 | primitive_iterator_t& operator-=(difference_type n) noexcept 114 | { 115 | m_it -= n; 116 | return *this; 117 | } 118 | }; 119 | } // namespace detail 120 | } // namespace nlohmann 121 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/json_ref.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | namespace nlohmann 9 | { 10 | namespace detail 11 | { 12 | template 13 | class json_ref 14 | { 15 | public: 16 | using value_type = BasicJsonType; 17 | 18 | json_ref(value_type&& value) 19 | : owned_value(std::move(value)) 20 | , value_ref(&owned_value) 21 | , is_rvalue(true) 22 | {} 23 | 24 | json_ref(const value_type& value) 25 | : value_ref(const_cast(&value)) 26 | , is_rvalue(false) 27 | {} 28 | 29 | json_ref(std::initializer_list init) 30 | : owned_value(init) 31 | , value_ref(&owned_value) 32 | , is_rvalue(true) 33 | {} 34 | 35 | template < 36 | class... Args, 37 | enable_if_t::value, int> = 0 > 38 | json_ref(Args && ... args) 39 | : owned_value(std::forward(args)...) 40 | , value_ref(&owned_value) 41 | , is_rvalue(true) 42 | {} 43 | 44 | // class should be movable only 45 | json_ref(json_ref&&) = default; 46 | json_ref(const json_ref&) = delete; 47 | json_ref& operator=(const json_ref&) = delete; 48 | json_ref& operator=(json_ref&&) = delete; 49 | ~json_ref() = default; 50 | 51 | value_type moved_or_copied() const 52 | { 53 | if (is_rvalue) 54 | { 55 | return std::move(*value_ref); 56 | } 57 | return *value_ref; 58 | } 59 | 60 | value_type const& operator*() const 61 | { 62 | return *static_cast(value_ref); 63 | } 64 | 65 | value_type const* operator->() const 66 | { 67 | return static_cast(value_ref); 68 | } 69 | 70 | private: 71 | mutable value_type owned_value = nullptr; 72 | value_type* value_ref = nullptr; 73 | const bool is_rvalue = true; 74 | }; 75 | } // namespace detail 76 | } // namespace nlohmann 77 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/macro_unscope.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // restore GCC/clang diagnostic settings 4 | #if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) 5 | #pragma GCC diagnostic pop 6 | #endif 7 | #if defined(__clang__) 8 | #pragma GCC diagnostic pop 9 | #endif 10 | 11 | // clean up 12 | #undef JSON_ASSERT 13 | #undef JSON_INTERNAL_CATCH 14 | #undef JSON_CATCH 15 | #undef JSON_THROW 16 | #undef JSON_TRY 17 | #undef JSON_HAS_CPP_14 18 | #undef JSON_HAS_CPP_17 19 | #undef NLOHMANN_BASIC_JSON_TPL_DECLARATION 20 | #undef NLOHMANN_BASIC_JSON_TPL 21 | #undef JSON_EXPLICIT 22 | 23 | #include 24 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/meta/cpp_future.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include // size_t 4 | #include // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type 5 | 6 | namespace nlohmann 7 | { 8 | namespace detail 9 | { 10 | // alias templates to reduce boilerplate 11 | template 12 | using enable_if_t = typename std::enable_if::type; 13 | 14 | template 15 | using uncvref_t = typename std::remove_cv::type>::type; 16 | 17 | // implementation of C++14 index_sequence and affiliates 18 | // source: https://stackoverflow.com/a/32223343 19 | template 20 | struct index_sequence 21 | { 22 | using type = index_sequence; 23 | using value_type = std::size_t; 24 | static constexpr std::size_t size() noexcept 25 | { 26 | return sizeof...(Ints); 27 | } 28 | }; 29 | 30 | template 31 | struct merge_and_renumber; 32 | 33 | template 34 | struct merge_and_renumber, index_sequence> 35 | : index_sequence < I1..., (sizeof...(I1) + I2)... > {}; 36 | 37 | template 38 | struct make_index_sequence 39 | : merge_and_renumber < typename make_index_sequence < N / 2 >::type, 40 | typename make_index_sequence < N - N / 2 >::type > {}; 41 | 42 | template<> struct make_index_sequence<0> : index_sequence<> {}; 43 | template<> struct make_index_sequence<1> : index_sequence<0> {}; 44 | 45 | template 46 | using index_sequence_for = make_index_sequence; 47 | 48 | // dispatch utility (taken from ranges-v3) 49 | template struct priority_tag : priority_tag < N - 1 > {}; 50 | template<> struct priority_tag<0> {}; 51 | 52 | // taken from ranges-v3 53 | template 54 | struct static_const 55 | { 56 | static constexpr T value{}; 57 | }; 58 | 59 | template 60 | constexpr T static_const::value; 61 | } // namespace detail 62 | } // namespace nlohmann 63 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/meta/detected.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | #include 6 | 7 | // https://en.cppreference.com/w/cpp/experimental/is_detected 8 | namespace nlohmann 9 | { 10 | namespace detail 11 | { 12 | struct nonesuch 13 | { 14 | nonesuch() = delete; 15 | ~nonesuch() = delete; 16 | nonesuch(nonesuch const&) = delete; 17 | nonesuch(nonesuch const&&) = delete; 18 | void operator=(nonesuch const&) = delete; 19 | void operator=(nonesuch&&) = delete; 20 | }; 21 | 22 | template class Op, 25 | class... Args> 26 | struct detector 27 | { 28 | using value_t = std::false_type; 29 | using type = Default; 30 | }; 31 | 32 | template class Op, class... Args> 33 | struct detector>, Op, Args...> 34 | { 35 | using value_t = std::true_type; 36 | using type = Op; 37 | }; 38 | 39 | template class Op, class... Args> 40 | using is_detected = typename detector::value_t; 41 | 42 | template class Op, class... Args> 43 | using detected_t = typename detector::type; 44 | 45 | template class Op, class... Args> 46 | using detected_or = detector; 47 | 48 | template class Op, class... Args> 49 | using detected_or_t = typename detected_or::type; 50 | 51 | template class Op, class... Args> 52 | using is_detected_exact = std::is_same>; 53 | 54 | template class Op, class... Args> 55 | using is_detected_convertible = 56 | std::is_convertible, To>; 57 | } // namespace detail 58 | } // namespace nlohmann 59 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/meta/void_t.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace nlohmann 4 | { 5 | namespace detail 6 | { 7 | template struct make_void 8 | { 9 | using type = void; 10 | }; 11 | template using void_t = typename make_void::type; 12 | } // namespace detail 13 | } // namespace nlohmann 14 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/output/output_adapters.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include // copy 4 | #include // size_t 5 | #include // streamsize 6 | #include // back_inserter 7 | #include // shared_ptr, make_shared 8 | #include // basic_ostream 9 | #include // basic_string 10 | #include // vector 11 | #include 12 | 13 | namespace nlohmann 14 | { 15 | namespace detail 16 | { 17 | /// abstract output adapter interface 18 | template struct output_adapter_protocol 19 | { 20 | virtual void write_character(CharType c) = 0; 21 | virtual void write_characters(const CharType* s, std::size_t length) = 0; 22 | virtual ~output_adapter_protocol() = default; 23 | }; 24 | 25 | /// a type to simplify interfaces 26 | template 27 | using output_adapter_t = std::shared_ptr>; 28 | 29 | /// output adapter for byte vectors 30 | template 31 | class output_vector_adapter : public output_adapter_protocol 32 | { 33 | public: 34 | explicit output_vector_adapter(std::vector& vec) noexcept 35 | : v(vec) 36 | {} 37 | 38 | void write_character(CharType c) override 39 | { 40 | v.push_back(c); 41 | } 42 | 43 | JSON_HEDLEY_NON_NULL(2) 44 | void write_characters(const CharType* s, std::size_t length) override 45 | { 46 | std::copy(s, s + length, std::back_inserter(v)); 47 | } 48 | 49 | private: 50 | std::vector& v; 51 | }; 52 | 53 | /// output adapter for output streams 54 | template 55 | class output_stream_adapter : public output_adapter_protocol 56 | { 57 | public: 58 | explicit output_stream_adapter(std::basic_ostream& s) noexcept 59 | : stream(s) 60 | {} 61 | 62 | void write_character(CharType c) override 63 | { 64 | stream.put(c); 65 | } 66 | 67 | JSON_HEDLEY_NON_NULL(2) 68 | void write_characters(const CharType* s, std::size_t length) override 69 | { 70 | stream.write(s, static_cast(length)); 71 | } 72 | 73 | private: 74 | std::basic_ostream& stream; 75 | }; 76 | 77 | /// output adapter for basic_string 78 | template> 79 | class output_string_adapter : public output_adapter_protocol 80 | { 81 | public: 82 | explicit output_string_adapter(StringType& s) noexcept 83 | : str(s) 84 | {} 85 | 86 | void write_character(CharType c) override 87 | { 88 | str.push_back(c); 89 | } 90 | 91 | JSON_HEDLEY_NON_NULL(2) 92 | void write_characters(const CharType* s, std::size_t length) override 93 | { 94 | str.append(s, length); 95 | } 96 | 97 | private: 98 | StringType& str; 99 | }; 100 | 101 | template> 102 | class output_adapter 103 | { 104 | public: 105 | output_adapter(std::vector& vec) 106 | : oa(std::make_shared>(vec)) {} 107 | 108 | output_adapter(std::basic_ostream& s) 109 | : oa(std::make_shared>(s)) {} 110 | 111 | output_adapter(StringType& s) 112 | : oa(std::make_shared>(s)) {} 113 | 114 | operator output_adapter_t() 115 | { 116 | return oa; 117 | } 118 | 119 | private: 120 | output_adapter_t oa = nullptr; 121 | }; 122 | } // namespace detail 123 | } // namespace nlohmann 124 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/detail/value_t.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include // array 4 | #include // size_t 5 | #include // uint8_t 6 | #include // string 7 | 8 | namespace nlohmann 9 | { 10 | namespace detail 11 | { 12 | /////////////////////////// 13 | // JSON type enumeration // 14 | /////////////////////////// 15 | 16 | /*! 17 | @brief the JSON type enumeration 18 | 19 | This enumeration collects the different JSON types. It is internally used to 20 | distinguish the stored values, and the functions @ref basic_json::is_null(), 21 | @ref basic_json::is_object(), @ref basic_json::is_array(), 22 | @ref basic_json::is_string(), @ref basic_json::is_boolean(), 23 | @ref basic_json::is_number() (with @ref basic_json::is_number_integer(), 24 | @ref basic_json::is_number_unsigned(), and @ref basic_json::is_number_float()), 25 | @ref basic_json::is_discarded(), @ref basic_json::is_primitive(), and 26 | @ref basic_json::is_structured() rely on it. 27 | 28 | @note There are three enumeration entries (number_integer, number_unsigned, and 29 | number_float), because the library distinguishes these three types for numbers: 30 | @ref basic_json::number_unsigned_t is used for unsigned integers, 31 | @ref basic_json::number_integer_t is used for signed integers, and 32 | @ref basic_json::number_float_t is used for floating-point numbers or to 33 | approximate integers which do not fit in the limits of their respective type. 34 | 35 | @sa @ref basic_json::basic_json(const value_t value_type) -- create a JSON 36 | value with the default value for a given type 37 | 38 | @since version 1.0.0 39 | */ 40 | enum class value_t : std::uint8_t 41 | { 42 | null, ///< null value 43 | object, ///< object (unordered set of name/value pairs) 44 | array, ///< array (ordered collection of values) 45 | string, ///< string value 46 | boolean, ///< boolean value 47 | number_integer, ///< number value (signed integer) 48 | number_unsigned, ///< number value (unsigned integer) 49 | number_float, ///< number value (floating-point) 50 | binary, ///< binary array (ordered collection of bytes) 51 | discarded ///< discarded by the parser callback function 52 | }; 53 | 54 | /*! 55 | @brief comparison operator for JSON types 56 | 57 | Returns an ordering that is similar to Python: 58 | - order: null < boolean < number < object < array < string < binary 59 | - furthermore, each type is not smaller than itself 60 | - discarded values are not comparable 61 | - binary is represented as a b"" string in python and directly comparable to a 62 | string; however, making a binary array directly comparable with a string would 63 | be surprising behavior in a JSON file. 64 | 65 | @since version 1.0.0 66 | */ 67 | inline bool operator<(const value_t lhs, const value_t rhs) noexcept 68 | { 69 | static constexpr std::array order = {{ 70 | 0 /* null */, 3 /* object */, 4 /* array */, 5 /* string */, 71 | 1 /* boolean */, 2 /* integer */, 2 /* unsigned */, 2 /* float */, 72 | 6 /* binary */ 73 | } 74 | }; 75 | 76 | const auto l_index = static_cast(lhs); 77 | const auto r_index = static_cast(rhs); 78 | return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index]; 79 | } 80 | } // namespace detail 81 | } // namespace nlohmann 82 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/include/nlohmann/json_fwd.hpp: -------------------------------------------------------------------------------- 1 | #ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_ 2 | #define INCLUDE_NLOHMANN_JSON_FWD_HPP_ 3 | 4 | #include // int64_t, uint64_t 5 | #include // map 6 | #include // allocator 7 | #include // string 8 | #include // vector 9 | 10 | /*! 11 | @brief namespace for Niels Lohmann 12 | @see https://github.com/nlohmann 13 | @since version 1.0.0 14 | */ 15 | namespace nlohmann 16 | { 17 | /*! 18 | @brief default JSONSerializer template argument 19 | 20 | This serializer ignores the template arguments and uses ADL 21 | ([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl)) 22 | for serialization. 23 | */ 24 | template 25 | struct adl_serializer; 26 | 27 | template class ObjectType = 28 | std::map, 29 | template class ArrayType = std::vector, 30 | class StringType = std::string, class BooleanType = bool, 31 | class NumberIntegerType = std::int64_t, 32 | class NumberUnsignedType = std::uint64_t, 33 | class NumberFloatType = double, 34 | template class AllocatorType = std::allocator, 35 | template class JSONSerializer = 36 | adl_serializer, 37 | class BinaryType = std::vector> 38 | class basic_json; 39 | 40 | /*! 41 | @brief JSON Pointer 42 | 43 | A JSON pointer defines a string syntax for identifying a specific value 44 | within a JSON document. It can be used with functions `at` and 45 | `operator[]`. Furthermore, JSON pointers are the base for JSON patches. 46 | 47 | @sa [RFC 6901](https://tools.ietf.org/html/rfc6901) 48 | 49 | @since version 2.0.0 50 | */ 51 | template 52 | class json_pointer; 53 | 54 | /*! 55 | @brief default JSON class 56 | 57 | This type is the default specialization of the @ref basic_json class which 58 | uses the standard template types. 59 | 60 | @since version 1.0.0 61 | */ 62 | using json = basic_json<>; 63 | 64 | template 65 | struct ordered_map; 66 | 67 | /*! 68 | @brief ordered JSON class 69 | 70 | This type preserves the insertion order of object keys. 71 | 72 | @since version 3.9.0 73 | */ 74 | using ordered_json = basic_json; 75 | 76 | } // namespace nlohmann 77 | 78 | #endif // INCLUDE_NLOHMANN_JSON_FWD_HPP_ 79 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/json/meson.build: -------------------------------------------------------------------------------- 1 | project('nlohmann_json', 2 | 'cpp', 3 | version : '3.9.1', 4 | license : 'MIT', 5 | ) 6 | 7 | nlohmann_json_dep = declare_dependency( 8 | include_directories: include_directories('single_include') 9 | ) 10 | 11 | nlohmann_json_multiple_headers = declare_dependency( 12 | include_directories: include_directories('include') 13 | ) 14 | 15 | if not meson.is_subproject() 16 | install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann') 17 | 18 | pkgc = import('pkgconfig') 19 | pkgc.generate(name: 'nlohmann_json', 20 | version: meson.project_version(), 21 | description: 'JSON for Modern C++' 22 | ) 23 | endif 24 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/BUILD_INFO: -------------------------------------------------------------------------------- 1 | CRTLinkage: static 2 | LibraryLinkage: static 3 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/CONTROL: -------------------------------------------------------------------------------- 1 | Package: openssl-windows 2 | Version: 1.1.1d-2 3 | Architecture: x64-windows-static 4 | Multi-Arch: same 5 | Abi: 73a31b1afceac349c51e836b5eb831e0b234e177 6 | Description: OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library. 7 | Type: Port 8 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/__DECC_INCLUDE_EPILOGUE.H: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This file is only used by HP C on VMS, and is included automatically 12 | * after each header file from this directory 13 | */ 14 | 15 | /* restore state. Must correspond to the save in __decc_include_prologue.h */ 16 | #pragma names restore 17 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/__DECC_INCLUDE_PROLOGUE.H: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This file is only used by HP C on VMS, and is included automatically 12 | * after each header file from this directory 13 | */ 14 | 15 | /* save state */ 16 | #pragma names save 17 | /* have the compiler shorten symbols larger than 31 chars to 23 chars 18 | * followed by a 8 hex char CRC 19 | */ 20 | #pragma names as_is,shortened 21 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/aes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_AES_H 11 | # define HEADER_AES_H 12 | 13 | # include 14 | 15 | # include 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | # define AES_ENCRYPT 1 21 | # define AES_DECRYPT 0 22 | 23 | /* 24 | * Because array size can't be a const in C, the following two are macros. 25 | * Both sizes are in bytes. 26 | */ 27 | # define AES_MAXNR 14 28 | # define AES_BLOCK_SIZE 16 29 | 30 | /* This should be a hidden type, but EVP requires that the size be known */ 31 | struct aes_key_st { 32 | # ifdef AES_LONG 33 | unsigned long rd_key[4 * (AES_MAXNR + 1)]; 34 | # else 35 | unsigned int rd_key[4 * (AES_MAXNR + 1)]; 36 | # endif 37 | int rounds; 38 | }; 39 | typedef struct aes_key_st AES_KEY; 40 | 41 | const char *AES_options(void); 42 | 43 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits, 44 | AES_KEY *key); 45 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits, 46 | AES_KEY *key); 47 | 48 | void AES_encrypt(const unsigned char *in, unsigned char *out, 49 | const AES_KEY *key); 50 | void AES_decrypt(const unsigned char *in, unsigned char *out, 51 | const AES_KEY *key); 52 | 53 | void AES_ecb_encrypt(const unsigned char *in, unsigned char *out, 54 | const AES_KEY *key, const int enc); 55 | void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, 56 | size_t length, const AES_KEY *key, 57 | unsigned char *ivec, const int enc); 58 | void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out, 59 | size_t length, const AES_KEY *key, 60 | unsigned char *ivec, int *num, const int enc); 61 | void AES_cfb1_encrypt(const unsigned char *in, unsigned char *out, 62 | size_t length, const AES_KEY *key, 63 | unsigned char *ivec, int *num, const int enc); 64 | void AES_cfb8_encrypt(const unsigned char *in, unsigned char *out, 65 | size_t length, const AES_KEY *key, 66 | unsigned char *ivec, int *num, const int enc); 67 | void AES_ofb128_encrypt(const unsigned char *in, unsigned char *out, 68 | size_t length, const AES_KEY *key, 69 | unsigned char *ivec, int *num); 70 | /* NB: the IV is _two_ blocks long */ 71 | void AES_ige_encrypt(const unsigned char *in, unsigned char *out, 72 | size_t length, const AES_KEY *key, 73 | unsigned char *ivec, const int enc); 74 | /* NB: the IV is _four_ blocks long */ 75 | void AES_bi_ige_encrypt(const unsigned char *in, unsigned char *out, 76 | size_t length, const AES_KEY *key, 77 | const AES_KEY *key2, const unsigned char *ivec, 78 | const int enc); 79 | 80 | int AES_wrap_key(AES_KEY *key, const unsigned char *iv, 81 | unsigned char *out, 82 | const unsigned char *in, unsigned int inlen); 83 | int AES_unwrap_key(AES_KEY *key, const unsigned char *iv, 84 | unsigned char *out, 85 | const unsigned char *in, unsigned int inlen); 86 | 87 | 88 | # ifdef __cplusplus 89 | } 90 | # endif 91 | 92 | #endif 93 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/asn1_mac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #error "This file is obsolete; please update your software." 11 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/async.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | 12 | #ifndef HEADER_ASYNC_H 13 | # define HEADER_ASYNC_H 14 | 15 | #if defined(_WIN32) 16 | # if defined(BASETYPES) || defined(_WINDEF_H) 17 | /* application has to include to use this */ 18 | #define OSSL_ASYNC_FD HANDLE 19 | #define OSSL_BAD_ASYNC_FD INVALID_HANDLE_VALUE 20 | # endif 21 | #else 22 | #define OSSL_ASYNC_FD int 23 | #define OSSL_BAD_ASYNC_FD -1 24 | #endif 25 | # include 26 | 27 | 28 | # ifdef __cplusplus 29 | extern "C" { 30 | # endif 31 | 32 | typedef struct async_job_st ASYNC_JOB; 33 | typedef struct async_wait_ctx_st ASYNC_WAIT_CTX; 34 | 35 | #define ASYNC_ERR 0 36 | #define ASYNC_NO_JOBS 1 37 | #define ASYNC_PAUSE 2 38 | #define ASYNC_FINISH 3 39 | 40 | int ASYNC_init_thread(size_t max_size, size_t init_size); 41 | void ASYNC_cleanup_thread(void); 42 | 43 | #ifdef OSSL_ASYNC_FD 44 | ASYNC_WAIT_CTX *ASYNC_WAIT_CTX_new(void); 45 | void ASYNC_WAIT_CTX_free(ASYNC_WAIT_CTX *ctx); 46 | int ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key, 47 | OSSL_ASYNC_FD fd, 48 | void *custom_data, 49 | void (*cleanup)(ASYNC_WAIT_CTX *, const void *, 50 | OSSL_ASYNC_FD, void *)); 51 | int ASYNC_WAIT_CTX_get_fd(ASYNC_WAIT_CTX *ctx, const void *key, 52 | OSSL_ASYNC_FD *fd, void **custom_data); 53 | int ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd, 54 | size_t *numfds); 55 | int ASYNC_WAIT_CTX_get_changed_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *addfd, 56 | size_t *numaddfds, OSSL_ASYNC_FD *delfd, 57 | size_t *numdelfds); 58 | int ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key); 59 | #endif 60 | 61 | int ASYNC_is_capable(void); 62 | 63 | int ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret, 64 | int (*func)(void *), void *args, size_t size); 65 | int ASYNC_pause_job(void); 66 | 67 | ASYNC_JOB *ASYNC_get_current_job(void); 68 | ASYNC_WAIT_CTX *ASYNC_get_wait_ctx(ASYNC_JOB *job); 69 | void ASYNC_block_pause(void); 70 | void ASYNC_unblock_pause(void); 71 | 72 | 73 | # ifdef __cplusplus 74 | } 75 | # endif 76 | #endif 77 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/asyncerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_ASYNCERR_H 12 | # define HEADER_ASYNCERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # ifdef __cplusplus 19 | extern "C" 20 | # endif 21 | int ERR_load_ASYNC_strings(void); 22 | 23 | /* 24 | * ASYNC function codes. 25 | */ 26 | # define ASYNC_F_ASYNC_CTX_NEW 100 27 | # define ASYNC_F_ASYNC_INIT_THREAD 101 28 | # define ASYNC_F_ASYNC_JOB_NEW 102 29 | # define ASYNC_F_ASYNC_PAUSE_JOB 103 30 | # define ASYNC_F_ASYNC_START_FUNC 104 31 | # define ASYNC_F_ASYNC_START_JOB 105 32 | # define ASYNC_F_ASYNC_WAIT_CTX_SET_WAIT_FD 106 33 | 34 | /* 35 | * ASYNC reason codes. 36 | */ 37 | # define ASYNC_R_FAILED_TO_SET_POOL 101 38 | # define ASYNC_R_FAILED_TO_SWAP_CONTEXT 102 39 | # define ASYNC_R_INIT_FAILED 105 40 | # define ASYNC_R_INVALID_POOL_SIZE 103 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/blowfish.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_BLOWFISH_H 11 | # define HEADER_BLOWFISH_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_BF 16 | # include 17 | # ifdef __cplusplus 18 | extern "C" { 19 | # endif 20 | 21 | # define BF_ENCRYPT 1 22 | # define BF_DECRYPT 0 23 | 24 | /*- 25 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 26 | * ! BF_LONG has to be at least 32 bits wide. ! 27 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 28 | */ 29 | # define BF_LONG unsigned int 30 | 31 | # define BF_ROUNDS 16 32 | # define BF_BLOCK 8 33 | 34 | typedef struct bf_key_st { 35 | BF_LONG P[BF_ROUNDS + 2]; 36 | BF_LONG S[4 * 256]; 37 | } BF_KEY; 38 | 39 | void BF_set_key(BF_KEY *key, int len, const unsigned char *data); 40 | 41 | void BF_encrypt(BF_LONG *data, const BF_KEY *key); 42 | void BF_decrypt(BF_LONG *data, const BF_KEY *key); 43 | 44 | void BF_ecb_encrypt(const unsigned char *in, unsigned char *out, 45 | const BF_KEY *key, int enc); 46 | void BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, 47 | const BF_KEY *schedule, unsigned char *ivec, int enc); 48 | void BF_cfb64_encrypt(const unsigned char *in, unsigned char *out, 49 | long length, const BF_KEY *schedule, 50 | unsigned char *ivec, int *num, int enc); 51 | void BF_ofb64_encrypt(const unsigned char *in, unsigned char *out, 52 | long length, const BF_KEY *schedule, 53 | unsigned char *ivec, int *num); 54 | const char *BF_options(void); 55 | 56 | # ifdef __cplusplus 57 | } 58 | # endif 59 | # endif 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/buffer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_BUFFER_H 11 | # define HEADER_BUFFER_H 12 | 13 | # include 14 | # ifndef HEADER_CRYPTO_H 15 | # include 16 | # endif 17 | # include 18 | 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | # include 25 | # include 26 | 27 | /* 28 | * These names are outdated as of OpenSSL 1.1; a future release 29 | * will move them to be deprecated. 30 | */ 31 | # define BUF_strdup(s) OPENSSL_strdup(s) 32 | # define BUF_strndup(s, size) OPENSSL_strndup(s, size) 33 | # define BUF_memdup(data, size) OPENSSL_memdup(data, size) 34 | # define BUF_strlcpy(dst, src, size) OPENSSL_strlcpy(dst, src, size) 35 | # define BUF_strlcat(dst, src, size) OPENSSL_strlcat(dst, src, size) 36 | # define BUF_strnlen(str, maxlen) OPENSSL_strnlen(str, maxlen) 37 | 38 | struct buf_mem_st { 39 | size_t length; /* current number of bytes */ 40 | char *data; 41 | size_t max; /* size of buffer */ 42 | unsigned long flags; 43 | }; 44 | 45 | # define BUF_MEM_FLAG_SECURE 0x01 46 | 47 | BUF_MEM *BUF_MEM_new(void); 48 | BUF_MEM *BUF_MEM_new_ex(unsigned long flags); 49 | void BUF_MEM_free(BUF_MEM *a); 50 | size_t BUF_MEM_grow(BUF_MEM *str, size_t len); 51 | size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len); 52 | void BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz); 53 | 54 | 55 | # ifdef __cplusplus 56 | } 57 | # endif 58 | #endif 59 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/buffererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_BUFERR_H 12 | # define HEADER_BUFERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # ifdef __cplusplus 19 | extern "C" 20 | # endif 21 | int ERR_load_BUF_strings(void); 22 | 23 | /* 24 | * BUF function codes. 25 | */ 26 | # define BUF_F_BUF_MEM_GROW 100 27 | # define BUF_F_BUF_MEM_GROW_CLEAN 105 28 | # define BUF_F_BUF_MEM_NEW 101 29 | 30 | /* 31 | * BUF reason codes. 32 | */ 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/camellia.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_CAMELLIA_H 11 | # define HEADER_CAMELLIA_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_CAMELLIA 16 | # include 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | # define CAMELLIA_ENCRYPT 1 22 | # define CAMELLIA_DECRYPT 0 23 | 24 | /* 25 | * Because array size can't be a const in C, the following two are macros. 26 | * Both sizes are in bytes. 27 | */ 28 | 29 | /* This should be a hidden type, but EVP requires that the size be known */ 30 | 31 | # define CAMELLIA_BLOCK_SIZE 16 32 | # define CAMELLIA_TABLE_BYTE_LEN 272 33 | # define CAMELLIA_TABLE_WORD_LEN (CAMELLIA_TABLE_BYTE_LEN / 4) 34 | 35 | typedef unsigned int KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN]; /* to match 36 | * with WORD */ 37 | 38 | struct camellia_key_st { 39 | union { 40 | double d; /* ensures 64-bit align */ 41 | KEY_TABLE_TYPE rd_key; 42 | } u; 43 | int grand_rounds; 44 | }; 45 | typedef struct camellia_key_st CAMELLIA_KEY; 46 | 47 | int Camellia_set_key(const unsigned char *userKey, const int bits, 48 | CAMELLIA_KEY *key); 49 | 50 | void Camellia_encrypt(const unsigned char *in, unsigned char *out, 51 | const CAMELLIA_KEY *key); 52 | void Camellia_decrypt(const unsigned char *in, unsigned char *out, 53 | const CAMELLIA_KEY *key); 54 | 55 | void Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out, 56 | const CAMELLIA_KEY *key, const int enc); 57 | void Camellia_cbc_encrypt(const unsigned char *in, unsigned char *out, 58 | size_t length, const CAMELLIA_KEY *key, 59 | unsigned char *ivec, const int enc); 60 | void Camellia_cfb128_encrypt(const unsigned char *in, unsigned char *out, 61 | size_t length, const CAMELLIA_KEY *key, 62 | unsigned char *ivec, int *num, const int enc); 63 | void Camellia_cfb1_encrypt(const unsigned char *in, unsigned char *out, 64 | size_t length, const CAMELLIA_KEY *key, 65 | unsigned char *ivec, int *num, const int enc); 66 | void Camellia_cfb8_encrypt(const unsigned char *in, unsigned char *out, 67 | size_t length, const CAMELLIA_KEY *key, 68 | unsigned char *ivec, int *num, const int enc); 69 | void Camellia_ofb128_encrypt(const unsigned char *in, unsigned char *out, 70 | size_t length, const CAMELLIA_KEY *key, 71 | unsigned char *ivec, int *num); 72 | void Camellia_ctr128_encrypt(const unsigned char *in, unsigned char *out, 73 | size_t length, const CAMELLIA_KEY *key, 74 | unsigned char ivec[CAMELLIA_BLOCK_SIZE], 75 | unsigned char ecount_buf[CAMELLIA_BLOCK_SIZE], 76 | unsigned int *num); 77 | 78 | # ifdef __cplusplus 79 | } 80 | # endif 81 | # endif 82 | 83 | #endif 84 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/cast.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_CAST_H 11 | # define HEADER_CAST_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_CAST 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | # define CAST_ENCRYPT 1 21 | # define CAST_DECRYPT 0 22 | 23 | # define CAST_LONG unsigned int 24 | 25 | # define CAST_BLOCK 8 26 | # define CAST_KEY_LENGTH 16 27 | 28 | typedef struct cast_key_st { 29 | CAST_LONG data[32]; 30 | int short_key; /* Use reduced rounds for short key */ 31 | } CAST_KEY; 32 | 33 | void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data); 34 | void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out, 35 | const CAST_KEY *key, int enc); 36 | void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key); 37 | void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key); 38 | void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, 39 | long length, const CAST_KEY *ks, unsigned char *iv, 40 | int enc); 41 | void CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out, 42 | long length, const CAST_KEY *schedule, 43 | unsigned char *ivec, int *num, int enc); 44 | void CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out, 45 | long length, const CAST_KEY *schedule, 46 | unsigned char *ivec, int *num); 47 | 48 | # ifdef __cplusplus 49 | } 50 | # endif 51 | # endif 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/cmac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_CMAC_H 11 | # define HEADER_CMAC_H 12 | 13 | # ifndef OPENSSL_NO_CMAC 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | # include 20 | 21 | /* Opaque */ 22 | typedef struct CMAC_CTX_st CMAC_CTX; 23 | 24 | CMAC_CTX *CMAC_CTX_new(void); 25 | void CMAC_CTX_cleanup(CMAC_CTX *ctx); 26 | void CMAC_CTX_free(CMAC_CTX *ctx); 27 | EVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx); 28 | int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in); 29 | 30 | int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen, 31 | const EVP_CIPHER *cipher, ENGINE *impl); 32 | int CMAC_Update(CMAC_CTX *ctx, const void *data, size_t dlen); 33 | int CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen); 34 | int CMAC_resume(CMAC_CTX *ctx); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | # endif 41 | #endif 42 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/comp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_COMP_H 11 | # define HEADER_COMP_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_COMP 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | 23 | 24 | COMP_CTX *COMP_CTX_new(COMP_METHOD *meth); 25 | const COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx); 26 | int COMP_CTX_get_type(const COMP_CTX* comp); 27 | int COMP_get_type(const COMP_METHOD *meth); 28 | const char *COMP_get_name(const COMP_METHOD *meth); 29 | void COMP_CTX_free(COMP_CTX *ctx); 30 | 31 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, 32 | unsigned char *in, int ilen); 33 | int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, 34 | unsigned char *in, int ilen); 35 | 36 | COMP_METHOD *COMP_zlib(void); 37 | 38 | #if OPENSSL_API_COMPAT < 0x10100000L 39 | #define COMP_zlib_cleanup() while(0) continue 40 | #endif 41 | 42 | # ifdef HEADER_BIO_H 43 | # ifdef ZLIB 44 | const BIO_METHOD *BIO_f_zlib(void); 45 | # endif 46 | # endif 47 | 48 | 49 | # ifdef __cplusplus 50 | } 51 | # endif 52 | # endif 53 | #endif 54 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/comperr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_COMPERR_H 12 | # define HEADER_COMPERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # include 19 | 20 | # ifndef OPENSSL_NO_COMP 21 | 22 | # ifdef __cplusplus 23 | extern "C" 24 | # endif 25 | int ERR_load_COMP_strings(void); 26 | 27 | /* 28 | * COMP function codes. 29 | */ 30 | # define COMP_F_BIO_ZLIB_FLUSH 99 31 | # define COMP_F_BIO_ZLIB_NEW 100 32 | # define COMP_F_BIO_ZLIB_READ 101 33 | # define COMP_F_BIO_ZLIB_WRITE 102 34 | # define COMP_F_COMP_CTX_NEW 103 35 | 36 | /* 37 | * COMP reason codes. 38 | */ 39 | # define COMP_R_ZLIB_DEFLATE_ERROR 99 40 | # define COMP_R_ZLIB_INFLATE_ERROR 100 41 | # define COMP_R_ZLIB_NOT_SUPPORTED 101 42 | 43 | # endif 44 | #endif 45 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/conf_api.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_CONF_API_H 11 | # define HEADER_CONF_API_H 12 | 13 | # include 14 | # include 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | /* Up until OpenSSL 0.9.5a, this was new_section */ 21 | CONF_VALUE *_CONF_new_section(CONF *conf, const char *section); 22 | /* Up until OpenSSL 0.9.5a, this was get_section */ 23 | CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section); 24 | /* Up until OpenSSL 0.9.5a, this was CONF_get_section */ 25 | STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, 26 | const char *section); 27 | 28 | int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value); 29 | char *_CONF_get_string(const CONF *conf, const char *section, 30 | const char *name); 31 | long _CONF_get_number(const CONF *conf, const char *section, 32 | const char *name); 33 | 34 | int _CONF_new_data(CONF *conf); 35 | void _CONF_free_data(CONF *conf); 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif 40 | #endif 41 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/conferr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_CONFERR_H 12 | # define HEADER_CONFERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # ifdef __cplusplus 19 | extern "C" 20 | # endif 21 | int ERR_load_CONF_strings(void); 22 | 23 | /* 24 | * CONF function codes. 25 | */ 26 | # define CONF_F_CONF_DUMP_FP 104 27 | # define CONF_F_CONF_LOAD 100 28 | # define CONF_F_CONF_LOAD_FP 103 29 | # define CONF_F_CONF_PARSE_LIST 119 30 | # define CONF_F_DEF_LOAD 120 31 | # define CONF_F_DEF_LOAD_BIO 121 32 | # define CONF_F_GET_NEXT_FILE 107 33 | # define CONF_F_MODULE_ADD 122 34 | # define CONF_F_MODULE_INIT 115 35 | # define CONF_F_MODULE_LOAD_DSO 117 36 | # define CONF_F_MODULE_RUN 118 37 | # define CONF_F_NCONF_DUMP_BIO 105 38 | # define CONF_F_NCONF_DUMP_FP 106 39 | # define CONF_F_NCONF_GET_NUMBER_E 112 40 | # define CONF_F_NCONF_GET_SECTION 108 41 | # define CONF_F_NCONF_GET_STRING 109 42 | # define CONF_F_NCONF_LOAD 113 43 | # define CONF_F_NCONF_LOAD_BIO 110 44 | # define CONF_F_NCONF_LOAD_FP 114 45 | # define CONF_F_NCONF_NEW 111 46 | # define CONF_F_PROCESS_INCLUDE 116 47 | # define CONF_F_SSL_MODULE_INIT 123 48 | # define CONF_F_STR_COPY 101 49 | 50 | /* 51 | * CONF reason codes. 52 | */ 53 | # define CONF_R_ERROR_LOADING_DSO 110 54 | # define CONF_R_LIST_CANNOT_BE_NULL 115 55 | # define CONF_R_MISSING_CLOSE_SQUARE_BRACKET 100 56 | # define CONF_R_MISSING_EQUAL_SIGN 101 57 | # define CONF_R_MISSING_INIT_FUNCTION 112 58 | # define CONF_R_MODULE_INITIALIZATION_ERROR 109 59 | # define CONF_R_NO_CLOSE_BRACE 102 60 | # define CONF_R_NO_CONF 105 61 | # define CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE 106 62 | # define CONF_R_NO_SECTION 107 63 | # define CONF_R_NO_SUCH_FILE 114 64 | # define CONF_R_NO_VALUE 108 65 | # define CONF_R_NUMBER_TOO_LARGE 121 66 | # define CONF_R_RECURSIVE_DIRECTORY_INCLUDE 111 67 | # define CONF_R_SSL_COMMAND_SECTION_EMPTY 117 68 | # define CONF_R_SSL_COMMAND_SECTION_NOT_FOUND 118 69 | # define CONF_R_SSL_SECTION_EMPTY 119 70 | # define CONF_R_SSL_SECTION_NOT_FOUND 120 71 | # define CONF_R_UNABLE_TO_CREATE_NEW_SECTION 103 72 | # define CONF_R_UNKNOWN_MODULE_NAME 113 73 | # define CONF_R_VARIABLE_EXPANSION_TOO_LONG 116 74 | # define CONF_R_VARIABLE_HAS_NO_VALUE 104 75 | 76 | #endif 77 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/cryptoerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_CRYPTOERR_H 12 | # define HEADER_CRYPTOERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # ifdef __cplusplus 19 | extern "C" 20 | # endif 21 | int ERR_load_CRYPTO_strings(void); 22 | 23 | /* 24 | * CRYPTO function codes. 25 | */ 26 | # define CRYPTO_F_CMAC_CTX_NEW 120 27 | # define CRYPTO_F_CRYPTO_DUP_EX_DATA 110 28 | # define CRYPTO_F_CRYPTO_FREE_EX_DATA 111 29 | # define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX 100 30 | # define CRYPTO_F_CRYPTO_MEMDUP 115 31 | # define CRYPTO_F_CRYPTO_NEW_EX_DATA 112 32 | # define CRYPTO_F_CRYPTO_OCB128_COPY_CTX 121 33 | # define CRYPTO_F_CRYPTO_OCB128_INIT 122 34 | # define CRYPTO_F_CRYPTO_SET_EX_DATA 102 35 | # define CRYPTO_F_FIPS_MODE_SET 109 36 | # define CRYPTO_F_GET_AND_LOCK 113 37 | # define CRYPTO_F_OPENSSL_ATEXIT 114 38 | # define CRYPTO_F_OPENSSL_BUF2HEXSTR 117 39 | # define CRYPTO_F_OPENSSL_FOPEN 119 40 | # define CRYPTO_F_OPENSSL_HEXSTR2BUF 118 41 | # define CRYPTO_F_OPENSSL_INIT_CRYPTO 116 42 | # define CRYPTO_F_OPENSSL_LH_NEW 126 43 | # define CRYPTO_F_OPENSSL_SK_DEEP_COPY 127 44 | # define CRYPTO_F_OPENSSL_SK_DUP 128 45 | # define CRYPTO_F_PKEY_HMAC_INIT 123 46 | # define CRYPTO_F_PKEY_POLY1305_INIT 124 47 | # define CRYPTO_F_PKEY_SIPHASH_INIT 125 48 | # define CRYPTO_F_SK_RESERVE 129 49 | 50 | /* 51 | * CRYPTO reason codes. 52 | */ 53 | # define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED 101 54 | # define CRYPTO_R_ILLEGAL_HEX_DIGIT 102 55 | # define CRYPTO_R_ODD_NUMBER_OF_DIGITS 103 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/cterr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_CTERR_H 12 | # define HEADER_CTERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # include 19 | 20 | # ifndef OPENSSL_NO_CT 21 | 22 | # ifdef __cplusplus 23 | extern "C" 24 | # endif 25 | int ERR_load_CT_strings(void); 26 | 27 | /* 28 | * CT function codes. 29 | */ 30 | # define CT_F_CTLOG_NEW 117 31 | # define CT_F_CTLOG_NEW_FROM_BASE64 118 32 | # define CT_F_CTLOG_NEW_FROM_CONF 119 33 | # define CT_F_CTLOG_STORE_LOAD_CTX_NEW 122 34 | # define CT_F_CTLOG_STORE_LOAD_FILE 123 35 | # define CT_F_CTLOG_STORE_LOAD_LOG 130 36 | # define CT_F_CTLOG_STORE_NEW 131 37 | # define CT_F_CT_BASE64_DECODE 124 38 | # define CT_F_CT_POLICY_EVAL_CTX_NEW 133 39 | # define CT_F_CT_V1_LOG_ID_FROM_PKEY 125 40 | # define CT_F_I2O_SCT 107 41 | # define CT_F_I2O_SCT_LIST 108 42 | # define CT_F_I2O_SCT_SIGNATURE 109 43 | # define CT_F_O2I_SCT 110 44 | # define CT_F_O2I_SCT_LIST 111 45 | # define CT_F_O2I_SCT_SIGNATURE 112 46 | # define CT_F_SCT_CTX_NEW 126 47 | # define CT_F_SCT_CTX_VERIFY 128 48 | # define CT_F_SCT_NEW 100 49 | # define CT_F_SCT_NEW_FROM_BASE64 127 50 | # define CT_F_SCT_SET0_LOG_ID 101 51 | # define CT_F_SCT_SET1_EXTENSIONS 114 52 | # define CT_F_SCT_SET1_LOG_ID 115 53 | # define CT_F_SCT_SET1_SIGNATURE 116 54 | # define CT_F_SCT_SET_LOG_ENTRY_TYPE 102 55 | # define CT_F_SCT_SET_SIGNATURE_NID 103 56 | # define CT_F_SCT_SET_VERSION 104 57 | 58 | /* 59 | * CT reason codes. 60 | */ 61 | # define CT_R_BASE64_DECODE_ERROR 108 62 | # define CT_R_INVALID_LOG_ID_LENGTH 100 63 | # define CT_R_LOG_CONF_INVALID 109 64 | # define CT_R_LOG_CONF_INVALID_KEY 110 65 | # define CT_R_LOG_CONF_MISSING_DESCRIPTION 111 66 | # define CT_R_LOG_CONF_MISSING_KEY 112 67 | # define CT_R_LOG_KEY_INVALID 113 68 | # define CT_R_SCT_FUTURE_TIMESTAMP 116 69 | # define CT_R_SCT_INVALID 104 70 | # define CT_R_SCT_INVALID_SIGNATURE 107 71 | # define CT_R_SCT_LIST_INVALID 105 72 | # define CT_R_SCT_LOG_ID_MISMATCH 114 73 | # define CT_R_SCT_NOT_SET 106 74 | # define CT_R_SCT_UNSUPPORTED_VERSION 115 75 | # define CT_R_UNRECOGNIZED_SIGNATURE_NID 101 76 | # define CT_R_UNSUPPORTED_ENTRY_TYPE 102 77 | # define CT_R_UNSUPPORTED_VERSION 103 78 | 79 | # endif 80 | #endif 81 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/dherr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_DHERR_H 12 | # define HEADER_DHERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # include 19 | 20 | # ifndef OPENSSL_NO_DH 21 | 22 | # ifdef __cplusplus 23 | extern "C" 24 | # endif 25 | int ERR_load_DH_strings(void); 26 | 27 | /* 28 | * DH function codes. 29 | */ 30 | # define DH_F_COMPUTE_KEY 102 31 | # define DH_F_DHPARAMS_PRINT_FP 101 32 | # define DH_F_DH_BUILTIN_GENPARAMS 106 33 | # define DH_F_DH_CHECK_EX 121 34 | # define DH_F_DH_CHECK_PARAMS_EX 122 35 | # define DH_F_DH_CHECK_PUB_KEY_EX 123 36 | # define DH_F_DH_CMS_DECRYPT 114 37 | # define DH_F_DH_CMS_SET_PEERKEY 115 38 | # define DH_F_DH_CMS_SET_SHARED_INFO 116 39 | # define DH_F_DH_METH_DUP 117 40 | # define DH_F_DH_METH_NEW 118 41 | # define DH_F_DH_METH_SET1_NAME 119 42 | # define DH_F_DH_NEW_BY_NID 104 43 | # define DH_F_DH_NEW_METHOD 105 44 | # define DH_F_DH_PARAM_DECODE 107 45 | # define DH_F_DH_PKEY_PUBLIC_CHECK 124 46 | # define DH_F_DH_PRIV_DECODE 110 47 | # define DH_F_DH_PRIV_ENCODE 111 48 | # define DH_F_DH_PUB_DECODE 108 49 | # define DH_F_DH_PUB_ENCODE 109 50 | # define DH_F_DO_DH_PRINT 100 51 | # define DH_F_GENERATE_KEY 103 52 | # define DH_F_PKEY_DH_CTRL_STR 120 53 | # define DH_F_PKEY_DH_DERIVE 112 54 | # define DH_F_PKEY_DH_INIT 125 55 | # define DH_F_PKEY_DH_KEYGEN 113 56 | 57 | /* 58 | * DH reason codes. 59 | */ 60 | # define DH_R_BAD_GENERATOR 101 61 | # define DH_R_BN_DECODE_ERROR 109 62 | # define DH_R_BN_ERROR 106 63 | # define DH_R_CHECK_INVALID_J_VALUE 115 64 | # define DH_R_CHECK_INVALID_Q_VALUE 116 65 | # define DH_R_CHECK_PUBKEY_INVALID 122 66 | # define DH_R_CHECK_PUBKEY_TOO_LARGE 123 67 | # define DH_R_CHECK_PUBKEY_TOO_SMALL 124 68 | # define DH_R_CHECK_P_NOT_PRIME 117 69 | # define DH_R_CHECK_P_NOT_SAFE_PRIME 118 70 | # define DH_R_CHECK_Q_NOT_PRIME 119 71 | # define DH_R_DECODE_ERROR 104 72 | # define DH_R_INVALID_PARAMETER_NAME 110 73 | # define DH_R_INVALID_PARAMETER_NID 114 74 | # define DH_R_INVALID_PUBKEY 102 75 | # define DH_R_KDF_PARAMETER_ERROR 112 76 | # define DH_R_KEYS_NOT_SET 108 77 | # define DH_R_MISSING_PUBKEY 125 78 | # define DH_R_MODULUS_TOO_LARGE 103 79 | # define DH_R_NOT_SUITABLE_GENERATOR 120 80 | # define DH_R_NO_PARAMETERS_SET 107 81 | # define DH_R_NO_PRIVATE_VALUE 100 82 | # define DH_R_PARAMETER_ENCODING_ERROR 105 83 | # define DH_R_PEER_KEY_ERROR 111 84 | # define DH_R_SHARED_INFO_ERROR 113 85 | # define DH_R_UNABLE_TO_CHECK_GENERATOR 121 86 | 87 | # endif 88 | #endif 89 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/dsaerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_DSAERR_H 12 | # define HEADER_DSAERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # include 19 | 20 | # ifndef OPENSSL_NO_DSA 21 | 22 | # ifdef __cplusplus 23 | extern "C" 24 | # endif 25 | int ERR_load_DSA_strings(void); 26 | 27 | /* 28 | * DSA function codes. 29 | */ 30 | # define DSA_F_DSAPARAMS_PRINT 100 31 | # define DSA_F_DSAPARAMS_PRINT_FP 101 32 | # define DSA_F_DSA_BUILTIN_PARAMGEN 125 33 | # define DSA_F_DSA_BUILTIN_PARAMGEN2 126 34 | # define DSA_F_DSA_DO_SIGN 112 35 | # define DSA_F_DSA_DO_VERIFY 113 36 | # define DSA_F_DSA_METH_DUP 127 37 | # define DSA_F_DSA_METH_NEW 128 38 | # define DSA_F_DSA_METH_SET1_NAME 129 39 | # define DSA_F_DSA_NEW_METHOD 103 40 | # define DSA_F_DSA_PARAM_DECODE 119 41 | # define DSA_F_DSA_PRINT_FP 105 42 | # define DSA_F_DSA_PRIV_DECODE 115 43 | # define DSA_F_DSA_PRIV_ENCODE 116 44 | # define DSA_F_DSA_PUB_DECODE 117 45 | # define DSA_F_DSA_PUB_ENCODE 118 46 | # define DSA_F_DSA_SIGN 106 47 | # define DSA_F_DSA_SIGN_SETUP 107 48 | # define DSA_F_DSA_SIG_NEW 102 49 | # define DSA_F_OLD_DSA_PRIV_DECODE 122 50 | # define DSA_F_PKEY_DSA_CTRL 120 51 | # define DSA_F_PKEY_DSA_CTRL_STR 104 52 | # define DSA_F_PKEY_DSA_KEYGEN 121 53 | 54 | /* 55 | * DSA reason codes. 56 | */ 57 | # define DSA_R_BAD_Q_VALUE 102 58 | # define DSA_R_BN_DECODE_ERROR 108 59 | # define DSA_R_BN_ERROR 109 60 | # define DSA_R_DECODE_ERROR 104 61 | # define DSA_R_INVALID_DIGEST_TYPE 106 62 | # define DSA_R_INVALID_PARAMETERS 112 63 | # define DSA_R_MISSING_PARAMETERS 101 64 | # define DSA_R_MISSING_PRIVATE_KEY 111 65 | # define DSA_R_MODULUS_TOO_LARGE 103 66 | # define DSA_R_NO_PARAMETERS_SET 107 67 | # define DSA_R_PARAMETER_ENCODING_ERROR 105 68 | # define DSA_R_Q_NOT_PRIME 113 69 | # define DSA_R_SEED_LEN_SMALL 110 70 | 71 | # endif 72 | #endif 73 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/dtls1.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_DTLS1_H 11 | # define HEADER_DTLS1_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | # define DTLS1_VERSION 0xFEFF 18 | # define DTLS1_2_VERSION 0xFEFD 19 | # define DTLS_MIN_VERSION DTLS1_VERSION 20 | # define DTLS_MAX_VERSION DTLS1_2_VERSION 21 | # define DTLS1_VERSION_MAJOR 0xFE 22 | 23 | # define DTLS1_BAD_VER 0x0100 24 | 25 | /* Special value for method supporting multiple versions */ 26 | # define DTLS_ANY_VERSION 0x1FFFF 27 | 28 | /* lengths of messages */ 29 | /* 30 | * Actually the max cookie length in DTLS is 255. But we can't change this now 31 | * due to compatibility concerns. 32 | */ 33 | # define DTLS1_COOKIE_LENGTH 256 34 | 35 | # define DTLS1_RT_HEADER_LENGTH 13 36 | 37 | # define DTLS1_HM_HEADER_LENGTH 12 38 | 39 | # define DTLS1_HM_BAD_FRAGMENT -2 40 | # define DTLS1_HM_FRAGMENT_RETRY -3 41 | 42 | # define DTLS1_CCS_HEADER_LENGTH 1 43 | 44 | # define DTLS1_AL_HEADER_LENGTH 2 45 | 46 | /* Timeout multipliers (timeout slice is defined in apps/timeouts.h */ 47 | # define DTLS1_TMO_READ_COUNT 2 48 | # define DTLS1_TMO_WRITE_COUNT 2 49 | 50 | # define DTLS1_TMO_ALERT_COUNT 12 51 | 52 | #ifdef __cplusplus 53 | } 54 | #endif 55 | #endif 56 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/ebcdic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_EBCDIC_H 11 | # define HEADER_EBCDIC_H 12 | 13 | # include 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | /* Avoid name clashes with other applications */ 20 | # define os_toascii _openssl_os_toascii 21 | # define os_toebcdic _openssl_os_toebcdic 22 | # define ebcdic2ascii _openssl_ebcdic2ascii 23 | # define ascii2ebcdic _openssl_ascii2ebcdic 24 | 25 | extern const unsigned char os_toascii[256]; 26 | extern const unsigned char os_toebcdic[256]; 27 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); 28 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | #endif 34 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/ecdh.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/ecdsa.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/hmac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_HMAC_H 11 | # define HEADER_HMAC_H 12 | 13 | # include 14 | 15 | # include 16 | 17 | # if OPENSSL_API_COMPAT < 0x10200000L 18 | # define HMAC_MAX_MD_CBLOCK 128 /* Deprecated */ 19 | # endif 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | size_t HMAC_size(const HMAC_CTX *e); 26 | HMAC_CTX *HMAC_CTX_new(void); 27 | int HMAC_CTX_reset(HMAC_CTX *ctx); 28 | void HMAC_CTX_free(HMAC_CTX *ctx); 29 | 30 | DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, 31 | const EVP_MD *md)) 32 | 33 | /*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, 34 | const EVP_MD *md, ENGINE *impl); 35 | /*__owur*/ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, 36 | size_t len); 37 | /*__owur*/ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, 38 | unsigned int *len); 39 | unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, 40 | const unsigned char *d, size_t n, unsigned char *md, 41 | unsigned int *md_len); 42 | __owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx); 43 | 44 | void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); 45 | const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/idea.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_IDEA_H 11 | # define HEADER_IDEA_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_IDEA 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | typedef unsigned int IDEA_INT; 21 | 22 | # define IDEA_ENCRYPT 1 23 | # define IDEA_DECRYPT 0 24 | 25 | # define IDEA_BLOCK 8 26 | # define IDEA_KEY_LENGTH 16 27 | 28 | typedef struct idea_key_st { 29 | IDEA_INT data[9][6]; 30 | } IDEA_KEY_SCHEDULE; 31 | 32 | const char *IDEA_options(void); 33 | void IDEA_ecb_encrypt(const unsigned char *in, unsigned char *out, 34 | IDEA_KEY_SCHEDULE *ks); 35 | void IDEA_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks); 36 | void IDEA_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk); 37 | void IDEA_cbc_encrypt(const unsigned char *in, unsigned char *out, 38 | long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, 39 | int enc); 40 | void IDEA_cfb64_encrypt(const unsigned char *in, unsigned char *out, 41 | long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, 42 | int *num, int enc); 43 | void IDEA_ofb64_encrypt(const unsigned char *in, unsigned char *out, 44 | long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv, 45 | int *num); 46 | void IDEA_encrypt(unsigned long *in, IDEA_KEY_SCHEDULE *ks); 47 | 48 | # if OPENSSL_API_COMPAT < 0x10100000L 49 | # define idea_options IDEA_options 50 | # define idea_ecb_encrypt IDEA_ecb_encrypt 51 | # define idea_set_encrypt_key IDEA_set_encrypt_key 52 | # define idea_set_decrypt_key IDEA_set_decrypt_key 53 | # define idea_cbc_encrypt IDEA_cbc_encrypt 54 | # define idea_cfb64_encrypt IDEA_cfb64_encrypt 55 | # define idea_ofb64_encrypt IDEA_ofb64_encrypt 56 | # define idea_encrypt IDEA_encrypt 57 | # endif 58 | 59 | # ifdef __cplusplus 60 | } 61 | # endif 62 | # endif 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/kdf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_KDF_H 11 | # define HEADER_KDF_H 12 | 13 | # include 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | # define EVP_PKEY_CTRL_TLS_MD (EVP_PKEY_ALG_CTRL) 19 | # define EVP_PKEY_CTRL_TLS_SECRET (EVP_PKEY_ALG_CTRL + 1) 20 | # define EVP_PKEY_CTRL_TLS_SEED (EVP_PKEY_ALG_CTRL + 2) 21 | # define EVP_PKEY_CTRL_HKDF_MD (EVP_PKEY_ALG_CTRL + 3) 22 | # define EVP_PKEY_CTRL_HKDF_SALT (EVP_PKEY_ALG_CTRL + 4) 23 | # define EVP_PKEY_CTRL_HKDF_KEY (EVP_PKEY_ALG_CTRL + 5) 24 | # define EVP_PKEY_CTRL_HKDF_INFO (EVP_PKEY_ALG_CTRL + 6) 25 | # define EVP_PKEY_CTRL_HKDF_MODE (EVP_PKEY_ALG_CTRL + 7) 26 | # define EVP_PKEY_CTRL_PASS (EVP_PKEY_ALG_CTRL + 8) 27 | # define EVP_PKEY_CTRL_SCRYPT_SALT (EVP_PKEY_ALG_CTRL + 9) 28 | # define EVP_PKEY_CTRL_SCRYPT_N (EVP_PKEY_ALG_CTRL + 10) 29 | # define EVP_PKEY_CTRL_SCRYPT_R (EVP_PKEY_ALG_CTRL + 11) 30 | # define EVP_PKEY_CTRL_SCRYPT_P (EVP_PKEY_ALG_CTRL + 12) 31 | # define EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES (EVP_PKEY_ALG_CTRL + 13) 32 | 33 | # define EVP_PKEY_HKDEF_MODE_EXTRACT_AND_EXPAND 0 34 | # define EVP_PKEY_HKDEF_MODE_EXTRACT_ONLY 1 35 | # define EVP_PKEY_HKDEF_MODE_EXPAND_ONLY 2 36 | 37 | # define EVP_PKEY_CTX_set_tls1_prf_md(pctx, md) \ 38 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 39 | EVP_PKEY_CTRL_TLS_MD, 0, (void *)(md)) 40 | 41 | # define EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, sec, seclen) \ 42 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 43 | EVP_PKEY_CTRL_TLS_SECRET, seclen, (void *)(sec)) 44 | 45 | # define EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, seed, seedlen) \ 46 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 47 | EVP_PKEY_CTRL_TLS_SEED, seedlen, (void *)(seed)) 48 | 49 | # define EVP_PKEY_CTX_set_hkdf_md(pctx, md) \ 50 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 51 | EVP_PKEY_CTRL_HKDF_MD, 0, (void *)(md)) 52 | 53 | # define EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, saltlen) \ 54 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 55 | EVP_PKEY_CTRL_HKDF_SALT, saltlen, (void *)(salt)) 56 | 57 | # define EVP_PKEY_CTX_set1_hkdf_key(pctx, key, keylen) \ 58 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 59 | EVP_PKEY_CTRL_HKDF_KEY, keylen, (void *)(key)) 60 | 61 | # define EVP_PKEY_CTX_add1_hkdf_info(pctx, info, infolen) \ 62 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 63 | EVP_PKEY_CTRL_HKDF_INFO, infolen, (void *)(info)) 64 | 65 | # define EVP_PKEY_CTX_hkdf_mode(pctx, mode) \ 66 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 67 | EVP_PKEY_CTRL_HKDF_MODE, mode, NULL) 68 | 69 | # define EVP_PKEY_CTX_set1_pbe_pass(pctx, pass, passlen) \ 70 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 71 | EVP_PKEY_CTRL_PASS, passlen, (void *)(pass)) 72 | 73 | # define EVP_PKEY_CTX_set1_scrypt_salt(pctx, salt, saltlen) \ 74 | EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 75 | EVP_PKEY_CTRL_SCRYPT_SALT, saltlen, (void *)(salt)) 76 | 77 | # define EVP_PKEY_CTX_set_scrypt_N(pctx, n) \ 78 | EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \ 79 | EVP_PKEY_CTRL_SCRYPT_N, n) 80 | 81 | # define EVP_PKEY_CTX_set_scrypt_r(pctx, r) \ 82 | EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \ 83 | EVP_PKEY_CTRL_SCRYPT_R, r) 84 | 85 | # define EVP_PKEY_CTX_set_scrypt_p(pctx, p) \ 86 | EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \ 87 | EVP_PKEY_CTRL_SCRYPT_P, p) 88 | 89 | # define EVP_PKEY_CTX_set_scrypt_maxmem_bytes(pctx, maxmem_bytes) \ 90 | EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \ 91 | EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES, maxmem_bytes) 92 | 93 | 94 | # ifdef __cplusplus 95 | } 96 | # endif 97 | #endif 98 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/kdferr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_KDFERR_H 12 | # define HEADER_KDFERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # ifdef __cplusplus 19 | extern "C" 20 | # endif 21 | int ERR_load_KDF_strings(void); 22 | 23 | /* 24 | * KDF function codes. 25 | */ 26 | # define KDF_F_PKEY_HKDF_CTRL_STR 103 27 | # define KDF_F_PKEY_HKDF_DERIVE 102 28 | # define KDF_F_PKEY_HKDF_INIT 108 29 | # define KDF_F_PKEY_SCRYPT_CTRL_STR 104 30 | # define KDF_F_PKEY_SCRYPT_CTRL_UINT64 105 31 | # define KDF_F_PKEY_SCRYPT_DERIVE 109 32 | # define KDF_F_PKEY_SCRYPT_INIT 106 33 | # define KDF_F_PKEY_SCRYPT_SET_MEMBUF 107 34 | # define KDF_F_PKEY_TLS1_PRF_CTRL_STR 100 35 | # define KDF_F_PKEY_TLS1_PRF_DERIVE 101 36 | # define KDF_F_PKEY_TLS1_PRF_INIT 110 37 | # define KDF_F_TLS1_PRF_ALG 111 38 | 39 | /* 40 | * KDF reason codes. 41 | */ 42 | # define KDF_R_INVALID_DIGEST 100 43 | # define KDF_R_MISSING_ITERATION_COUNT 109 44 | # define KDF_R_MISSING_KEY 104 45 | # define KDF_R_MISSING_MESSAGE_DIGEST 105 46 | # define KDF_R_MISSING_PARAMETER 101 47 | # define KDF_R_MISSING_PASS 110 48 | # define KDF_R_MISSING_SALT 111 49 | # define KDF_R_MISSING_SECRET 107 50 | # define KDF_R_MISSING_SEED 106 51 | # define KDF_R_UNKNOWN_PARAMETER_TYPE 103 52 | # define KDF_R_VALUE_ERROR 108 53 | # define KDF_R_VALUE_MISSING 102 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/md2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_MD2_H 11 | # define HEADER_MD2_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_MD2 16 | # include 17 | # ifdef __cplusplus 18 | extern "C" { 19 | # endif 20 | 21 | typedef unsigned char MD2_INT; 22 | 23 | # define MD2_DIGEST_LENGTH 16 24 | # define MD2_BLOCK 16 25 | 26 | typedef struct MD2state_st { 27 | unsigned int num; 28 | unsigned char data[MD2_BLOCK]; 29 | MD2_INT cksm[MD2_BLOCK]; 30 | MD2_INT state[MD2_BLOCK]; 31 | } MD2_CTX; 32 | 33 | const char *MD2_options(void); 34 | int MD2_Init(MD2_CTX *c); 35 | int MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len); 36 | int MD2_Final(unsigned char *md, MD2_CTX *c); 37 | unsigned char *MD2(const unsigned char *d, size_t n, unsigned char *md); 38 | 39 | # ifdef __cplusplus 40 | } 41 | # endif 42 | # endif 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/md4.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_MD4_H 11 | # define HEADER_MD4_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_MD4 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | /*- 23 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 24 | * ! MD4_LONG has to be at least 32 bits wide. ! 25 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 26 | */ 27 | # define MD4_LONG unsigned int 28 | 29 | # define MD4_CBLOCK 64 30 | # define MD4_LBLOCK (MD4_CBLOCK/4) 31 | # define MD4_DIGEST_LENGTH 16 32 | 33 | typedef struct MD4state_st { 34 | MD4_LONG A, B, C, D; 35 | MD4_LONG Nl, Nh; 36 | MD4_LONG data[MD4_LBLOCK]; 37 | unsigned int num; 38 | } MD4_CTX; 39 | 40 | int MD4_Init(MD4_CTX *c); 41 | int MD4_Update(MD4_CTX *c, const void *data, size_t len); 42 | int MD4_Final(unsigned char *md, MD4_CTX *c); 43 | unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md); 44 | void MD4_Transform(MD4_CTX *c, const unsigned char *b); 45 | 46 | # ifdef __cplusplus 47 | } 48 | # endif 49 | # endif 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/md5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_MD5_H 11 | # define HEADER_MD5_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_MD5 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | /* 23 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 24 | * ! MD5_LONG has to be at least 32 bits wide. ! 25 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 26 | */ 27 | # define MD5_LONG unsigned int 28 | 29 | # define MD5_CBLOCK 64 30 | # define MD5_LBLOCK (MD5_CBLOCK/4) 31 | # define MD5_DIGEST_LENGTH 16 32 | 33 | typedef struct MD5state_st { 34 | MD5_LONG A, B, C, D; 35 | MD5_LONG Nl, Nh; 36 | MD5_LONG data[MD5_LBLOCK]; 37 | unsigned int num; 38 | } MD5_CTX; 39 | 40 | int MD5_Init(MD5_CTX *c); 41 | int MD5_Update(MD5_CTX *c, const void *data, size_t len); 42 | int MD5_Final(unsigned char *md, MD5_CTX *c); 43 | unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); 44 | void MD5_Transform(MD5_CTX *c, const unsigned char *b); 45 | # ifdef __cplusplus 46 | } 47 | # endif 48 | # endif 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/mdc2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_MDC2_H 11 | # define HEADER_MDC2_H 12 | 13 | # include 14 | 15 | #ifndef OPENSSL_NO_MDC2 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # define MDC2_BLOCK 8 23 | # define MDC2_DIGEST_LENGTH 16 24 | 25 | typedef struct mdc2_ctx_st { 26 | unsigned int num; 27 | unsigned char data[MDC2_BLOCK]; 28 | DES_cblock h, hh; 29 | int pad_type; /* either 1 or 2, default 1 */ 30 | } MDC2_CTX; 31 | 32 | int MDC2_Init(MDC2_CTX *c); 33 | int MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len); 34 | int MDC2_Final(unsigned char *md, MDC2_CTX *c); 35 | unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md); 36 | 37 | # ifdef __cplusplus 38 | } 39 | # endif 40 | # endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/objectserr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_OBJERR_H 12 | # define HEADER_OBJERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # ifdef __cplusplus 19 | extern "C" 20 | # endif 21 | int ERR_load_OBJ_strings(void); 22 | 23 | /* 24 | * OBJ function codes. 25 | */ 26 | # define OBJ_F_OBJ_ADD_OBJECT 105 27 | # define OBJ_F_OBJ_ADD_SIGID 107 28 | # define OBJ_F_OBJ_CREATE 100 29 | # define OBJ_F_OBJ_DUP 101 30 | # define OBJ_F_OBJ_NAME_NEW_INDEX 106 31 | # define OBJ_F_OBJ_NID2LN 102 32 | # define OBJ_F_OBJ_NID2OBJ 103 33 | # define OBJ_F_OBJ_NID2SN 104 34 | # define OBJ_F_OBJ_TXT2OBJ 108 35 | 36 | /* 37 | * OBJ reason codes. 38 | */ 39 | # define OBJ_R_OID_EXISTS 102 40 | # define OBJ_R_UNKNOWN_NID 101 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/ocsperr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_OCSPERR_H 12 | # define HEADER_OCSPERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # include 19 | 20 | # ifndef OPENSSL_NO_OCSP 21 | 22 | # ifdef __cplusplus 23 | extern "C" 24 | # endif 25 | int ERR_load_OCSP_strings(void); 26 | 27 | /* 28 | * OCSP function codes. 29 | */ 30 | # define OCSP_F_D2I_OCSP_NONCE 102 31 | # define OCSP_F_OCSP_BASIC_ADD1_STATUS 103 32 | # define OCSP_F_OCSP_BASIC_SIGN 104 33 | # define OCSP_F_OCSP_BASIC_SIGN_CTX 119 34 | # define OCSP_F_OCSP_BASIC_VERIFY 105 35 | # define OCSP_F_OCSP_CERT_ID_NEW 101 36 | # define OCSP_F_OCSP_CHECK_DELEGATED 106 37 | # define OCSP_F_OCSP_CHECK_IDS 107 38 | # define OCSP_F_OCSP_CHECK_ISSUER 108 39 | # define OCSP_F_OCSP_CHECK_VALIDITY 115 40 | # define OCSP_F_OCSP_MATCH_ISSUERID 109 41 | # define OCSP_F_OCSP_PARSE_URL 114 42 | # define OCSP_F_OCSP_REQUEST_SIGN 110 43 | # define OCSP_F_OCSP_REQUEST_VERIFY 116 44 | # define OCSP_F_OCSP_RESPONSE_GET1_BASIC 111 45 | # define OCSP_F_PARSE_HTTP_LINE1 118 46 | 47 | /* 48 | * OCSP reason codes. 49 | */ 50 | # define OCSP_R_CERTIFICATE_VERIFY_ERROR 101 51 | # define OCSP_R_DIGEST_ERR 102 52 | # define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD 122 53 | # define OCSP_R_ERROR_IN_THISUPDATE_FIELD 123 54 | # define OCSP_R_ERROR_PARSING_URL 121 55 | # define OCSP_R_MISSING_OCSPSIGNING_USAGE 103 56 | # define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE 124 57 | # define OCSP_R_NOT_BASIC_RESPONSE 104 58 | # define OCSP_R_NO_CERTIFICATES_IN_CHAIN 105 59 | # define OCSP_R_NO_RESPONSE_DATA 108 60 | # define OCSP_R_NO_REVOKED_TIME 109 61 | # define OCSP_R_NO_SIGNER_KEY 130 62 | # define OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 110 63 | # define OCSP_R_REQUEST_NOT_SIGNED 128 64 | # define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA 111 65 | # define OCSP_R_ROOT_CA_NOT_TRUSTED 112 66 | # define OCSP_R_SERVER_RESPONSE_ERROR 114 67 | # define OCSP_R_SERVER_RESPONSE_PARSE_ERROR 115 68 | # define OCSP_R_SIGNATURE_FAILURE 117 69 | # define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND 118 70 | # define OCSP_R_STATUS_EXPIRED 125 71 | # define OCSP_R_STATUS_NOT_YET_VALID 126 72 | # define OCSP_R_STATUS_TOO_OLD 127 73 | # define OCSP_R_UNKNOWN_MESSAGE_DIGEST 119 74 | # define OCSP_R_UNKNOWN_NID 120 75 | # define OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE 129 76 | 77 | # endif 78 | #endif 79 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/opensslv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_OPENSSLV_H 11 | # define HEADER_OPENSSLV_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | /*- 18 | * Numeric release version identifier: 19 | * MNNFFPPS: major minor fix patch status 20 | * The status nibble has one of the values 0 for development, 1 to e for betas 21 | * 1 to 14, and f for release. The patch level is exactly that. 22 | * For example: 23 | * 0.9.3-dev 0x00903000 24 | * 0.9.3-beta1 0x00903001 25 | * 0.9.3-beta2-dev 0x00903002 26 | * 0.9.3-beta2 0x00903002 (same as ...beta2-dev) 27 | * 0.9.3 0x0090300f 28 | * 0.9.3a 0x0090301f 29 | * 0.9.4 0x0090400f 30 | * 1.2.3z 0x102031af 31 | * 32 | * For continuity reasons (because 0.9.5 is already out, and is coded 33 | * 0x00905100), between 0.9.5 and 0.9.6 the coding of the patch level 34 | * part is slightly different, by setting the highest bit. This means 35 | * that 0.9.5a looks like this: 0x0090581f. At 0.9.6, we can start 36 | * with 0x0090600S... 37 | * 38 | * (Prior to 0.9.3-dev a different scheme was used: 0.9.2b is 0x0922.) 39 | * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for 40 | * major minor fix final patch/beta) 41 | */ 42 | # define OPENSSL_VERSION_NUMBER 0x1010104fL 43 | # define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1d 10 Sep 2019" 44 | 45 | /*- 46 | * The macros below are to be used for shared library (.so, .dll, ...) 47 | * versioning. That kind of versioning works a bit differently between 48 | * operating systems. The most usual scheme is to set a major and a minor 49 | * number, and have the runtime loader check that the major number is equal 50 | * to what it was at application link time, while the minor number has to 51 | * be greater or equal to what it was at application link time. With this 52 | * scheme, the version number is usually part of the file name, like this: 53 | * 54 | * libcrypto.so.0.9 55 | * 56 | * Some unixen also make a softlink with the major version number only: 57 | * 58 | * libcrypto.so.0 59 | * 60 | * On Tru64 and IRIX 6.x it works a little bit differently. There, the 61 | * shared library version is stored in the file, and is actually a series 62 | * of versions, separated by colons. The rightmost version present in the 63 | * library when linking an application is stored in the application to be 64 | * matched at run time. When the application is run, a check is done to 65 | * see if the library version stored in the application matches any of the 66 | * versions in the version string of the library itself. 67 | * This version string can be constructed in any way, depending on what 68 | * kind of matching is desired. However, to implement the same scheme as 69 | * the one used in the other unixen, all compatible versions, from lowest 70 | * to highest, should be part of the string. Consecutive builds would 71 | * give the following versions strings: 72 | * 73 | * 3.0 74 | * 3.0:3.1 75 | * 3.0:3.1:3.2 76 | * 4.0 77 | * 4.0:4.1 78 | * 79 | * Notice how version 4 is completely incompatible with version, and 80 | * therefore give the breach you can see. 81 | * 82 | * There may be other schemes as well that I haven't yet discovered. 83 | * 84 | * So, here's the way it works here: first of all, the library version 85 | * number doesn't need at all to match the overall OpenSSL version. 86 | * However, it's nice and more understandable if it actually does. 87 | * The current library version is stored in the macro SHLIB_VERSION_NUMBER, 88 | * which is just a piece of text in the format "M.m.e" (Major, minor, edit). 89 | * For the sake of Tru64, IRIX, and any other OS that behaves in similar ways, 90 | * we need to keep a history of version numbers, which is done in the 91 | * macro SHLIB_VERSION_HISTORY. The numbers are separated by colons and 92 | * should only keep the versions that are binary compatible with the current. 93 | */ 94 | # define SHLIB_VERSION_HISTORY "" 95 | # define SHLIB_VERSION_NUMBER "1.1" 96 | 97 | 98 | #ifdef __cplusplus 99 | } 100 | #endif 101 | #endif /* HEADER_OPENSSLV_H */ 102 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/pem2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_PEM2_H 11 | # define HEADER_PEM2_H 12 | # include 13 | #endif 14 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/pkcs12err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_PKCS12ERR_H 12 | # define HEADER_PKCS12ERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # ifdef __cplusplus 19 | extern "C" 20 | # endif 21 | int ERR_load_PKCS12_strings(void); 22 | 23 | /* 24 | * PKCS12 function codes. 25 | */ 26 | # define PKCS12_F_OPENSSL_ASC2UNI 121 27 | # define PKCS12_F_OPENSSL_UNI2ASC 124 28 | # define PKCS12_F_OPENSSL_UNI2UTF8 127 29 | # define PKCS12_F_OPENSSL_UTF82UNI 129 30 | # define PKCS12_F_PKCS12_CREATE 105 31 | # define PKCS12_F_PKCS12_GEN_MAC 107 32 | # define PKCS12_F_PKCS12_INIT 109 33 | # define PKCS12_F_PKCS12_ITEM_DECRYPT_D2I 106 34 | # define PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT 108 35 | # define PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG 117 36 | # define PKCS12_F_PKCS12_KEY_GEN_ASC 110 37 | # define PKCS12_F_PKCS12_KEY_GEN_UNI 111 38 | # define PKCS12_F_PKCS12_KEY_GEN_UTF8 116 39 | # define PKCS12_F_PKCS12_NEWPASS 128 40 | # define PKCS12_F_PKCS12_PACK_P7DATA 114 41 | # define PKCS12_F_PKCS12_PACK_P7ENCDATA 115 42 | # define PKCS12_F_PKCS12_PARSE 118 43 | # define PKCS12_F_PKCS12_PBE_CRYPT 119 44 | # define PKCS12_F_PKCS12_PBE_KEYIVGEN 120 45 | # define PKCS12_F_PKCS12_SAFEBAG_CREATE0_P8INF 112 46 | # define PKCS12_F_PKCS12_SAFEBAG_CREATE0_PKCS8 113 47 | # define PKCS12_F_PKCS12_SAFEBAG_CREATE_PKCS8_ENCRYPT 133 48 | # define PKCS12_F_PKCS12_SETUP_MAC 122 49 | # define PKCS12_F_PKCS12_SET_MAC 123 50 | # define PKCS12_F_PKCS12_UNPACK_AUTHSAFES 130 51 | # define PKCS12_F_PKCS12_UNPACK_P7DATA 131 52 | # define PKCS12_F_PKCS12_VERIFY_MAC 126 53 | # define PKCS12_F_PKCS8_ENCRYPT 125 54 | # define PKCS12_F_PKCS8_SET0_PBE 132 55 | 56 | /* 57 | * PKCS12 reason codes. 58 | */ 59 | # define PKCS12_R_CANT_PACK_STRUCTURE 100 60 | # define PKCS12_R_CONTENT_TYPE_NOT_DATA 121 61 | # define PKCS12_R_DECODE_ERROR 101 62 | # define PKCS12_R_ENCODE_ERROR 102 63 | # define PKCS12_R_ENCRYPT_ERROR 103 64 | # define PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE 120 65 | # define PKCS12_R_INVALID_NULL_ARGUMENT 104 66 | # define PKCS12_R_INVALID_NULL_PKCS12_POINTER 105 67 | # define PKCS12_R_IV_GEN_ERROR 106 68 | # define PKCS12_R_KEY_GEN_ERROR 107 69 | # define PKCS12_R_MAC_ABSENT 108 70 | # define PKCS12_R_MAC_GENERATION_ERROR 109 71 | # define PKCS12_R_MAC_SETUP_ERROR 110 72 | # define PKCS12_R_MAC_STRING_SET_ERROR 111 73 | # define PKCS12_R_MAC_VERIFY_FAILURE 113 74 | # define PKCS12_R_PARSE_ERROR 114 75 | # define PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR 115 76 | # define PKCS12_R_PKCS12_CIPHERFINAL_ERROR 116 77 | # define PKCS12_R_PKCS12_PBE_CRYPT_ERROR 117 78 | # define PKCS12_R_UNKNOWN_DIGEST_ALGORITHM 118 79 | # define PKCS12_R_UNSUPPORTED_PKCS12_MODE 119 80 | 81 | #endif 82 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/rand.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RAND_H 11 | # define HEADER_RAND_H 12 | 13 | # include 14 | # include 15 | # include 16 | # include 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | struct rand_meth_st { 23 | int (*seed) (const void *buf, int num); 24 | int (*bytes) (unsigned char *buf, int num); 25 | void (*cleanup) (void); 26 | int (*add) (const void *buf, int num, double randomness); 27 | int (*pseudorand) (unsigned char *buf, int num); 28 | int (*status) (void); 29 | }; 30 | 31 | int RAND_set_rand_method(const RAND_METHOD *meth); 32 | const RAND_METHOD *RAND_get_rand_method(void); 33 | # ifndef OPENSSL_NO_ENGINE 34 | int RAND_set_rand_engine(ENGINE *engine); 35 | # endif 36 | 37 | RAND_METHOD *RAND_OpenSSL(void); 38 | 39 | # if OPENSSL_API_COMPAT < 0x10100000L 40 | # define RAND_cleanup() while(0) continue 41 | # endif 42 | int RAND_bytes(unsigned char *buf, int num); 43 | int RAND_priv_bytes(unsigned char *buf, int num); 44 | DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num)) 45 | 46 | void RAND_seed(const void *buf, int num); 47 | void RAND_keep_random_devices_open(int keep); 48 | 49 | # if defined(__ANDROID__) && defined(__NDK_FPABI__) 50 | __NDK_FPABI__ /* __attribute__((pcs("aapcs"))) on ARM */ 51 | # endif 52 | void RAND_add(const void *buf, int num, double randomness); 53 | int RAND_load_file(const char *file, long max_bytes); 54 | int RAND_write_file(const char *file); 55 | const char *RAND_file_name(char *file, size_t num); 56 | int RAND_status(void); 57 | 58 | # ifndef OPENSSL_NO_EGD 59 | int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes); 60 | int RAND_egd(const char *path); 61 | int RAND_egd_bytes(const char *path, int bytes); 62 | # endif 63 | 64 | int RAND_poll(void); 65 | 66 | # if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H)) 67 | /* application has to include in order to use these */ 68 | DEPRECATEDIN_1_1_0(void RAND_screen(void)) 69 | DEPRECATEDIN_1_1_0(int RAND_event(UINT, WPARAM, LPARAM)) 70 | # endif 71 | 72 | 73 | #ifdef __cplusplus 74 | } 75 | #endif 76 | 77 | #endif 78 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/randerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_RANDERR_H 12 | # define HEADER_RANDERR_H 13 | 14 | # include 15 | 16 | # ifdef __cplusplus 17 | extern "C" 18 | # endif 19 | int ERR_load_RAND_strings(void); 20 | 21 | /* 22 | * RAND function codes. 23 | */ 24 | # define RAND_F_DRBG_BYTES 101 25 | # define RAND_F_DRBG_GET_ENTROPY 105 26 | # define RAND_F_DRBG_SETUP 117 27 | # define RAND_F_GET_ENTROPY 106 28 | # define RAND_F_RAND_BYTES 100 29 | # define RAND_F_RAND_DRBG_ENABLE_LOCKING 119 30 | # define RAND_F_RAND_DRBG_GENERATE 107 31 | # define RAND_F_RAND_DRBG_GET_ENTROPY 120 32 | # define RAND_F_RAND_DRBG_GET_NONCE 123 33 | # define RAND_F_RAND_DRBG_INSTANTIATE 108 34 | # define RAND_F_RAND_DRBG_NEW 109 35 | # define RAND_F_RAND_DRBG_RESEED 110 36 | # define RAND_F_RAND_DRBG_RESTART 102 37 | # define RAND_F_RAND_DRBG_SET 104 38 | # define RAND_F_RAND_DRBG_SET_DEFAULTS 121 39 | # define RAND_F_RAND_DRBG_UNINSTANTIATE 118 40 | # define RAND_F_RAND_LOAD_FILE 111 41 | # define RAND_F_RAND_POOL_ACQUIRE_ENTROPY 122 42 | # define RAND_F_RAND_POOL_ADD 103 43 | # define RAND_F_RAND_POOL_ADD_BEGIN 113 44 | # define RAND_F_RAND_POOL_ADD_END 114 45 | # define RAND_F_RAND_POOL_ATTACH 124 46 | # define RAND_F_RAND_POOL_BYTES_NEEDED 115 47 | # define RAND_F_RAND_POOL_GROW 125 48 | # define RAND_F_RAND_POOL_NEW 116 49 | # define RAND_F_RAND_WRITE_FILE 112 50 | 51 | /* 52 | * RAND reason codes. 53 | */ 54 | # define RAND_R_ADDITIONAL_INPUT_TOO_LONG 102 55 | # define RAND_R_ALREADY_INSTANTIATED 103 56 | # define RAND_R_ARGUMENT_OUT_OF_RANGE 105 57 | # define RAND_R_CANNOT_OPEN_FILE 121 58 | # define RAND_R_DRBG_ALREADY_INITIALIZED 129 59 | # define RAND_R_DRBG_NOT_INITIALISED 104 60 | # define RAND_R_ENTROPY_INPUT_TOO_LONG 106 61 | # define RAND_R_ENTROPY_OUT_OF_RANGE 124 62 | # define RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED 127 63 | # define RAND_R_ERROR_INITIALISING_DRBG 107 64 | # define RAND_R_ERROR_INSTANTIATING_DRBG 108 65 | # define RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT 109 66 | # define RAND_R_ERROR_RETRIEVING_ENTROPY 110 67 | # define RAND_R_ERROR_RETRIEVING_NONCE 111 68 | # define RAND_R_FAILED_TO_CREATE_LOCK 126 69 | # define RAND_R_FUNC_NOT_IMPLEMENTED 101 70 | # define RAND_R_FWRITE_ERROR 123 71 | # define RAND_R_GENERATE_ERROR 112 72 | # define RAND_R_INTERNAL_ERROR 113 73 | # define RAND_R_IN_ERROR_STATE 114 74 | # define RAND_R_NOT_A_REGULAR_FILE 122 75 | # define RAND_R_NOT_INSTANTIATED 115 76 | # define RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED 128 77 | # define RAND_R_PARENT_LOCKING_NOT_ENABLED 130 78 | # define RAND_R_PARENT_STRENGTH_TOO_WEAK 131 79 | # define RAND_R_PERSONALISATION_STRING_TOO_LONG 116 80 | # define RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED 133 81 | # define RAND_R_PRNG_NOT_SEEDED 100 82 | # define RAND_R_RANDOM_POOL_OVERFLOW 125 83 | # define RAND_R_RANDOM_POOL_UNDERFLOW 134 84 | # define RAND_R_REQUEST_TOO_LARGE_FOR_DRBG 117 85 | # define RAND_R_RESEED_ERROR 118 86 | # define RAND_R_SELFTEST_FAILURE 119 87 | # define RAND_R_TOO_LITTLE_NONCE_REQUESTED 135 88 | # define RAND_R_TOO_MUCH_NONCE_REQUESTED 136 89 | # define RAND_R_UNSUPPORTED_DRBG_FLAGS 132 90 | # define RAND_R_UNSUPPORTED_DRBG_TYPE 120 91 | 92 | #endif 93 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/rc2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RC2_H 11 | # define HEADER_RC2_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_RC2 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | typedef unsigned int RC2_INT; 21 | 22 | # define RC2_ENCRYPT 1 23 | # define RC2_DECRYPT 0 24 | 25 | # define RC2_BLOCK 8 26 | # define RC2_KEY_LENGTH 16 27 | 28 | typedef struct rc2_key_st { 29 | RC2_INT data[64]; 30 | } RC2_KEY; 31 | 32 | void RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits); 33 | void RC2_ecb_encrypt(const unsigned char *in, unsigned char *out, 34 | RC2_KEY *key, int enc); 35 | void RC2_encrypt(unsigned long *data, RC2_KEY *key); 36 | void RC2_decrypt(unsigned long *data, RC2_KEY *key); 37 | void RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, 38 | RC2_KEY *ks, unsigned char *iv, int enc); 39 | void RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out, 40 | long length, RC2_KEY *schedule, unsigned char *ivec, 41 | int *num, int enc); 42 | void RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out, 43 | long length, RC2_KEY *schedule, unsigned char *ivec, 44 | int *num); 45 | 46 | # ifdef __cplusplus 47 | } 48 | # endif 49 | # endif 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/rc4.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RC4_H 11 | # define HEADER_RC4_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_RC4 16 | # include 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | typedef struct rc4_key_st { 22 | RC4_INT x, y; 23 | RC4_INT data[256]; 24 | } RC4_KEY; 25 | 26 | const char *RC4_options(void); 27 | void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data); 28 | void RC4(RC4_KEY *key, size_t len, const unsigned char *indata, 29 | unsigned char *outdata); 30 | 31 | # ifdef __cplusplus 32 | } 33 | # endif 34 | # endif 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/rc5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RC5_H 11 | # define HEADER_RC5_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_RC5 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | # define RC5_ENCRYPT 1 21 | # define RC5_DECRYPT 0 22 | 23 | # define RC5_32_INT unsigned int 24 | 25 | # define RC5_32_BLOCK 8 26 | # define RC5_32_KEY_LENGTH 16/* This is a default, max is 255 */ 27 | 28 | /* 29 | * This are the only values supported. Tweak the code if you want more The 30 | * most supported modes will be RC5-32/12/16 RC5-32/16/8 31 | */ 32 | # define RC5_8_ROUNDS 8 33 | # define RC5_12_ROUNDS 12 34 | # define RC5_16_ROUNDS 16 35 | 36 | typedef struct rc5_key_st { 37 | /* Number of rounds */ 38 | int rounds; 39 | RC5_32_INT data[2 * (RC5_16_ROUNDS + 1)]; 40 | } RC5_32_KEY; 41 | 42 | void RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data, 43 | int rounds); 44 | void RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out, 45 | RC5_32_KEY *key, int enc); 46 | void RC5_32_encrypt(unsigned long *data, RC5_32_KEY *key); 47 | void RC5_32_decrypt(unsigned long *data, RC5_32_KEY *key); 48 | void RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out, 49 | long length, RC5_32_KEY *ks, unsigned char *iv, 50 | int enc); 51 | void RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out, 52 | long length, RC5_32_KEY *schedule, 53 | unsigned char *ivec, int *num, int enc); 54 | void RC5_32_ofb64_encrypt(const unsigned char *in, unsigned char *out, 55 | long length, RC5_32_KEY *schedule, 56 | unsigned char *ivec, int *num); 57 | 58 | # ifdef __cplusplus 59 | } 60 | # endif 61 | # endif 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/ripemd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_RIPEMD_H 11 | # define HEADER_RIPEMD_H 12 | 13 | # include 14 | 15 | #ifndef OPENSSL_NO_RMD160 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # define RIPEMD160_LONG unsigned int 23 | 24 | # define RIPEMD160_CBLOCK 64 25 | # define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4) 26 | # define RIPEMD160_DIGEST_LENGTH 20 27 | 28 | typedef struct RIPEMD160state_st { 29 | RIPEMD160_LONG A, B, C, D, E; 30 | RIPEMD160_LONG Nl, Nh; 31 | RIPEMD160_LONG data[RIPEMD160_LBLOCK]; 32 | unsigned int num; 33 | } RIPEMD160_CTX; 34 | 35 | int RIPEMD160_Init(RIPEMD160_CTX *c); 36 | int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, size_t len); 37 | int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); 38 | unsigned char *RIPEMD160(const unsigned char *d, size_t n, unsigned char *md); 39 | void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b); 40 | 41 | # ifdef __cplusplus 42 | } 43 | # endif 44 | # endif 45 | 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/seed.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * Copyright (c) 2007 KISA(Korea Information Security Agency). All rights reserved. 12 | * 13 | * Redistribution and use in source and binary forms, with or without 14 | * modification, are permitted provided that the following conditions 15 | * are met: 16 | * 1. Redistributions of source code must retain the above copyright 17 | * notice, this list of conditions and the following disclaimer. 18 | * 2. Neither the name of author nor the names of its contributors may 19 | * be used to endorse or promote products derived from this software 20 | * without specific prior written permission. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 23 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25 | * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 | * SUCH DAMAGE. 33 | */ 34 | 35 | #ifndef HEADER_SEED_H 36 | # define HEADER_SEED_H 37 | 38 | # include 39 | 40 | # ifndef OPENSSL_NO_SEED 41 | # include 42 | # include 43 | 44 | #ifdef __cplusplus 45 | extern "C" { 46 | #endif 47 | 48 | /* look whether we need 'long' to get 32 bits */ 49 | # ifdef AES_LONG 50 | # ifndef SEED_LONG 51 | # define SEED_LONG 1 52 | # endif 53 | # endif 54 | 55 | # include 56 | 57 | # define SEED_BLOCK_SIZE 16 58 | # define SEED_KEY_LENGTH 16 59 | 60 | typedef struct seed_key_st { 61 | # ifdef SEED_LONG 62 | unsigned long data[32]; 63 | # else 64 | unsigned int data[32]; 65 | # endif 66 | } SEED_KEY_SCHEDULE; 67 | 68 | void SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH], 69 | SEED_KEY_SCHEDULE *ks); 70 | 71 | void SEED_encrypt(const unsigned char s[SEED_BLOCK_SIZE], 72 | unsigned char d[SEED_BLOCK_SIZE], 73 | const SEED_KEY_SCHEDULE *ks); 74 | void SEED_decrypt(const unsigned char s[SEED_BLOCK_SIZE], 75 | unsigned char d[SEED_BLOCK_SIZE], 76 | const SEED_KEY_SCHEDULE *ks); 77 | 78 | void SEED_ecb_encrypt(const unsigned char *in, unsigned char *out, 79 | const SEED_KEY_SCHEDULE *ks, int enc); 80 | void SEED_cbc_encrypt(const unsigned char *in, unsigned char *out, size_t len, 81 | const SEED_KEY_SCHEDULE *ks, 82 | unsigned char ivec[SEED_BLOCK_SIZE], int enc); 83 | void SEED_cfb128_encrypt(const unsigned char *in, unsigned char *out, 84 | size_t len, const SEED_KEY_SCHEDULE *ks, 85 | unsigned char ivec[SEED_BLOCK_SIZE], int *num, 86 | int enc); 87 | void SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out, 88 | size_t len, const SEED_KEY_SCHEDULE *ks, 89 | unsigned char ivec[SEED_BLOCK_SIZE], int *num); 90 | 91 | # ifdef __cplusplus 92 | } 93 | # endif 94 | # endif 95 | 96 | #endif 97 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/sha.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_SHA_H 11 | # define HEADER_SHA_H 12 | 13 | # include 14 | # include 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | /*- 21 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 22 | * ! SHA_LONG has to be at least 32 bits wide. ! 23 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 24 | */ 25 | # define SHA_LONG unsigned int 26 | 27 | # define SHA_LBLOCK 16 28 | # define SHA_CBLOCK (SHA_LBLOCK*4)/* SHA treats input data as a 29 | * contiguous array of 32 bit wide 30 | * big-endian values. */ 31 | # define SHA_LAST_BLOCK (SHA_CBLOCK-8) 32 | # define SHA_DIGEST_LENGTH 20 33 | 34 | typedef struct SHAstate_st { 35 | SHA_LONG h0, h1, h2, h3, h4; 36 | SHA_LONG Nl, Nh; 37 | SHA_LONG data[SHA_LBLOCK]; 38 | unsigned int num; 39 | } SHA_CTX; 40 | 41 | int SHA1_Init(SHA_CTX *c); 42 | int SHA1_Update(SHA_CTX *c, const void *data, size_t len); 43 | int SHA1_Final(unsigned char *md, SHA_CTX *c); 44 | unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md); 45 | void SHA1_Transform(SHA_CTX *c, const unsigned char *data); 46 | 47 | # define SHA256_CBLOCK (SHA_LBLOCK*4)/* SHA-256 treats input data as a 48 | * contiguous array of 32 bit wide 49 | * big-endian values. */ 50 | 51 | typedef struct SHA256state_st { 52 | SHA_LONG h[8]; 53 | SHA_LONG Nl, Nh; 54 | SHA_LONG data[SHA_LBLOCK]; 55 | unsigned int num, md_len; 56 | } SHA256_CTX; 57 | 58 | int SHA224_Init(SHA256_CTX *c); 59 | int SHA224_Update(SHA256_CTX *c, const void *data, size_t len); 60 | int SHA224_Final(unsigned char *md, SHA256_CTX *c); 61 | unsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md); 62 | int SHA256_Init(SHA256_CTX *c); 63 | int SHA256_Update(SHA256_CTX *c, const void *data, size_t len); 64 | int SHA256_Final(unsigned char *md, SHA256_CTX *c); 65 | unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md); 66 | void SHA256_Transform(SHA256_CTX *c, const unsigned char *data); 67 | 68 | # define SHA224_DIGEST_LENGTH 28 69 | # define SHA256_DIGEST_LENGTH 32 70 | # define SHA384_DIGEST_LENGTH 48 71 | # define SHA512_DIGEST_LENGTH 64 72 | 73 | /* 74 | * Unlike 32-bit digest algorithms, SHA-512 *relies* on SHA_LONG64 75 | * being exactly 64-bit wide. See Implementation Notes in sha512.c 76 | * for further details. 77 | */ 78 | /* 79 | * SHA-512 treats input data as a 80 | * contiguous array of 64 bit 81 | * wide big-endian values. 82 | */ 83 | # define SHA512_CBLOCK (SHA_LBLOCK*8) 84 | # if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) 85 | # define SHA_LONG64 unsigned __int64 86 | # define U64(C) C##UI64 87 | # elif defined(__arch64__) 88 | # define SHA_LONG64 unsigned long 89 | # define U64(C) C##UL 90 | # else 91 | # define SHA_LONG64 unsigned long long 92 | # define U64(C) C##ULL 93 | # endif 94 | 95 | typedef struct SHA512state_st { 96 | SHA_LONG64 h[8]; 97 | SHA_LONG64 Nl, Nh; 98 | union { 99 | SHA_LONG64 d[SHA_LBLOCK]; 100 | unsigned char p[SHA512_CBLOCK]; 101 | } u; 102 | unsigned int num, md_len; 103 | } SHA512_CTX; 104 | 105 | int SHA384_Init(SHA512_CTX *c); 106 | int SHA384_Update(SHA512_CTX *c, const void *data, size_t len); 107 | int SHA384_Final(unsigned char *md, SHA512_CTX *c); 108 | unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md); 109 | int SHA512_Init(SHA512_CTX *c); 110 | int SHA512_Update(SHA512_CTX *c, const void *data, size_t len); 111 | int SHA512_Final(unsigned char *md, SHA512_CTX *c); 112 | unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md); 113 | void SHA512_Transform(SHA512_CTX *c, const unsigned char *data); 114 | 115 | #ifdef __cplusplus 116 | } 117 | #endif 118 | 119 | #endif 120 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/srp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * Copyright (c) 2004, EdelKey Project. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | * 10 | * Originally written by Christophe Renou and Peter Sylvester, 11 | * for the EdelKey project. 12 | */ 13 | 14 | #ifndef HEADER_SRP_H 15 | # define HEADER_SRP_H 16 | 17 | #include 18 | 19 | #ifndef OPENSSL_NO_SRP 20 | # include 21 | # include 22 | # include 23 | # include 24 | # include 25 | 26 | # ifdef __cplusplus 27 | extern "C" { 28 | # endif 29 | 30 | typedef struct SRP_gN_cache_st { 31 | char *b64_bn; 32 | BIGNUM *bn; 33 | } SRP_gN_cache; 34 | 35 | 36 | DEFINE_STACK_OF(SRP_gN_cache) 37 | 38 | typedef struct SRP_user_pwd_st { 39 | /* Owned by us. */ 40 | char *id; 41 | BIGNUM *s; 42 | BIGNUM *v; 43 | /* Not owned by us. */ 44 | const BIGNUM *g; 45 | const BIGNUM *N; 46 | /* Owned by us. */ 47 | char *info; 48 | } SRP_user_pwd; 49 | 50 | void SRP_user_pwd_free(SRP_user_pwd *user_pwd); 51 | 52 | DEFINE_STACK_OF(SRP_user_pwd) 53 | 54 | typedef struct SRP_VBASE_st { 55 | STACK_OF(SRP_user_pwd) *users_pwd; 56 | STACK_OF(SRP_gN_cache) *gN_cache; 57 | /* to simulate a user */ 58 | char *seed_key; 59 | const BIGNUM *default_g; 60 | const BIGNUM *default_N; 61 | } SRP_VBASE; 62 | 63 | /* 64 | * Internal structure storing N and g pair 65 | */ 66 | typedef struct SRP_gN_st { 67 | char *id; 68 | const BIGNUM *g; 69 | const BIGNUM *N; 70 | } SRP_gN; 71 | 72 | DEFINE_STACK_OF(SRP_gN) 73 | 74 | SRP_VBASE *SRP_VBASE_new(char *seed_key); 75 | void SRP_VBASE_free(SRP_VBASE *vb); 76 | int SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file); 77 | 78 | /* This method ignores the configured seed and fails for an unknown user. */ 79 | DEPRECATEDIN_1_1_0(SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username)) 80 | /* NOTE: unlike in SRP_VBASE_get_by_user, caller owns the returned pointer.*/ 81 | SRP_user_pwd *SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username); 82 | 83 | char *SRP_create_verifier(const char *user, const char *pass, char **salt, 84 | char **verifier, const char *N, const char *g); 85 | int SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt, 86 | BIGNUM **verifier, const BIGNUM *N, 87 | const BIGNUM *g); 88 | 89 | # define SRP_NO_ERROR 0 90 | # define SRP_ERR_VBASE_INCOMPLETE_FILE 1 91 | # define SRP_ERR_VBASE_BN_LIB 2 92 | # define SRP_ERR_OPEN_FILE 3 93 | # define SRP_ERR_MEMORY 4 94 | 95 | # define DB_srptype 0 96 | # define DB_srpverifier 1 97 | # define DB_srpsalt 2 98 | # define DB_srpid 3 99 | # define DB_srpgN 4 100 | # define DB_srpinfo 5 101 | # undef DB_NUMBER 102 | # define DB_NUMBER 6 103 | 104 | # define DB_SRP_INDEX 'I' 105 | # define DB_SRP_VALID 'V' 106 | # define DB_SRP_REVOKED 'R' 107 | # define DB_SRP_MODIF 'v' 108 | 109 | /* see srp.c */ 110 | char *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N); 111 | SRP_gN *SRP_get_default_gN(const char *id); 112 | 113 | /* server side .... */ 114 | BIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u, 115 | const BIGNUM *b, const BIGNUM *N); 116 | BIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g, 117 | const BIGNUM *v); 118 | int SRP_Verify_A_mod_N(const BIGNUM *A, const BIGNUM *N); 119 | BIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N); 120 | 121 | /* client side .... */ 122 | BIGNUM *SRP_Calc_x(const BIGNUM *s, const char *user, const char *pass); 123 | BIGNUM *SRP_Calc_A(const BIGNUM *a, const BIGNUM *N, const BIGNUM *g); 124 | BIGNUM *SRP_Calc_client_key(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g, 125 | const BIGNUM *x, const BIGNUM *a, const BIGNUM *u); 126 | int SRP_Verify_B_mod_N(const BIGNUM *B, const BIGNUM *N); 127 | 128 | # define SRP_MINIMAL_N 1024 129 | 130 | # ifdef __cplusplus 131 | } 132 | # endif 133 | # endif 134 | 135 | #endif 136 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/srtp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * DTLS code by Eric Rescorla 12 | * 13 | * Copyright (C) 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc. 14 | */ 15 | 16 | #ifndef HEADER_D1_SRTP_H 17 | # define HEADER_D1_SRTP_H 18 | 19 | # include 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | # define SRTP_AES128_CM_SHA1_80 0x0001 26 | # define SRTP_AES128_CM_SHA1_32 0x0002 27 | # define SRTP_AES128_F8_SHA1_80 0x0003 28 | # define SRTP_AES128_F8_SHA1_32 0x0004 29 | # define SRTP_NULL_SHA1_80 0x0005 30 | # define SRTP_NULL_SHA1_32 0x0006 31 | 32 | /* AEAD SRTP protection profiles from RFC 7714 */ 33 | # define SRTP_AEAD_AES_128_GCM 0x0007 34 | # define SRTP_AEAD_AES_256_GCM 0x0008 35 | 36 | # ifndef OPENSSL_NO_SRTP 37 | 38 | __owur int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles); 39 | __owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles); 40 | 41 | __owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl); 42 | __owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s); 43 | 44 | # endif 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/ssl2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_SSL2_H 11 | # define HEADER_SSL2_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | # define SSL2_VERSION 0x0002 18 | 19 | # define SSL2_MT_CLIENT_HELLO 1 20 | 21 | #ifdef __cplusplus 22 | } 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/stack.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_STACK_H 11 | # define HEADER_STACK_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | typedef struct stack_st OPENSSL_STACK; /* Use STACK_OF(...) instead */ 18 | 19 | typedef int (*OPENSSL_sk_compfunc)(const void *, const void *); 20 | typedef void (*OPENSSL_sk_freefunc)(void *); 21 | typedef void *(*OPENSSL_sk_copyfunc)(const void *); 22 | 23 | int OPENSSL_sk_num(const OPENSSL_STACK *); 24 | void *OPENSSL_sk_value(const OPENSSL_STACK *, int); 25 | 26 | void *OPENSSL_sk_set(OPENSSL_STACK *st, int i, const void *data); 27 | 28 | OPENSSL_STACK *OPENSSL_sk_new(OPENSSL_sk_compfunc cmp); 29 | OPENSSL_STACK *OPENSSL_sk_new_null(void); 30 | OPENSSL_STACK *OPENSSL_sk_new_reserve(OPENSSL_sk_compfunc c, int n); 31 | int OPENSSL_sk_reserve(OPENSSL_STACK *st, int n); 32 | void OPENSSL_sk_free(OPENSSL_STACK *); 33 | void OPENSSL_sk_pop_free(OPENSSL_STACK *st, void (*func) (void *)); 34 | OPENSSL_STACK *OPENSSL_sk_deep_copy(const OPENSSL_STACK *, 35 | OPENSSL_sk_copyfunc c, 36 | OPENSSL_sk_freefunc f); 37 | int OPENSSL_sk_insert(OPENSSL_STACK *sk, const void *data, int where); 38 | void *OPENSSL_sk_delete(OPENSSL_STACK *st, int loc); 39 | void *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p); 40 | int OPENSSL_sk_find(OPENSSL_STACK *st, const void *data); 41 | int OPENSSL_sk_find_ex(OPENSSL_STACK *st, const void *data); 42 | int OPENSSL_sk_push(OPENSSL_STACK *st, const void *data); 43 | int OPENSSL_sk_unshift(OPENSSL_STACK *st, const void *data); 44 | void *OPENSSL_sk_shift(OPENSSL_STACK *st); 45 | void *OPENSSL_sk_pop(OPENSSL_STACK *st); 46 | void OPENSSL_sk_zero(OPENSSL_STACK *st); 47 | OPENSSL_sk_compfunc OPENSSL_sk_set_cmp_func(OPENSSL_STACK *sk, 48 | OPENSSL_sk_compfunc cmp); 49 | OPENSSL_STACK *OPENSSL_sk_dup(const OPENSSL_STACK *st); 50 | void OPENSSL_sk_sort(OPENSSL_STACK *st); 51 | int OPENSSL_sk_is_sorted(const OPENSSL_STACK *st); 52 | 53 | # if OPENSSL_API_COMPAT < 0x10100000L 54 | # define _STACK OPENSSL_STACK 55 | # define sk_num OPENSSL_sk_num 56 | # define sk_value OPENSSL_sk_value 57 | # define sk_set OPENSSL_sk_set 58 | # define sk_new OPENSSL_sk_new 59 | # define sk_new_null OPENSSL_sk_new_null 60 | # define sk_free OPENSSL_sk_free 61 | # define sk_pop_free OPENSSL_sk_pop_free 62 | # define sk_deep_copy OPENSSL_sk_deep_copy 63 | # define sk_insert OPENSSL_sk_insert 64 | # define sk_delete OPENSSL_sk_delete 65 | # define sk_delete_ptr OPENSSL_sk_delete_ptr 66 | # define sk_find OPENSSL_sk_find 67 | # define sk_find_ex OPENSSL_sk_find_ex 68 | # define sk_push OPENSSL_sk_push 69 | # define sk_unshift OPENSSL_sk_unshift 70 | # define sk_shift OPENSSL_sk_shift 71 | # define sk_pop OPENSSL_sk_pop 72 | # define sk_zero OPENSSL_sk_zero 73 | # define sk_set_cmp_func OPENSSL_sk_set_cmp_func 74 | # define sk_dup OPENSSL_sk_dup 75 | # define sk_sort OPENSSL_sk_sort 76 | # define sk_is_sorted OPENSSL_sk_is_sorted 77 | # endif 78 | 79 | #ifdef __cplusplus 80 | } 81 | #endif 82 | 83 | #endif 84 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/storeerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_OSSL_STOREERR_H 12 | # define HEADER_OSSL_STOREERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # ifdef __cplusplus 19 | extern "C" 20 | # endif 21 | int ERR_load_OSSL_STORE_strings(void); 22 | 23 | /* 24 | * OSSL_STORE function codes. 25 | */ 26 | # define OSSL_STORE_F_FILE_CTRL 129 27 | # define OSSL_STORE_F_FILE_FIND 138 28 | # define OSSL_STORE_F_FILE_GET_PASS 118 29 | # define OSSL_STORE_F_FILE_LOAD 119 30 | # define OSSL_STORE_F_FILE_LOAD_TRY_DECODE 124 31 | # define OSSL_STORE_F_FILE_NAME_TO_URI 126 32 | # define OSSL_STORE_F_FILE_OPEN 120 33 | # define OSSL_STORE_F_OSSL_STORE_ATTACH_PEM_BIO 127 34 | # define OSSL_STORE_F_OSSL_STORE_EXPECT 130 35 | # define OSSL_STORE_F_OSSL_STORE_FILE_ATTACH_PEM_BIO_INT 128 36 | # define OSSL_STORE_F_OSSL_STORE_FIND 131 37 | # define OSSL_STORE_F_OSSL_STORE_GET0_LOADER_INT 100 38 | # define OSSL_STORE_F_OSSL_STORE_INFO_GET1_CERT 101 39 | # define OSSL_STORE_F_OSSL_STORE_INFO_GET1_CRL 102 40 | # define OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME 103 41 | # define OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME_DESCRIPTION 135 42 | # define OSSL_STORE_F_OSSL_STORE_INFO_GET1_PARAMS 104 43 | # define OSSL_STORE_F_OSSL_STORE_INFO_GET1_PKEY 105 44 | # define OSSL_STORE_F_OSSL_STORE_INFO_NEW_CERT 106 45 | # define OSSL_STORE_F_OSSL_STORE_INFO_NEW_CRL 107 46 | # define OSSL_STORE_F_OSSL_STORE_INFO_NEW_EMBEDDED 123 47 | # define OSSL_STORE_F_OSSL_STORE_INFO_NEW_NAME 109 48 | # define OSSL_STORE_F_OSSL_STORE_INFO_NEW_PARAMS 110 49 | # define OSSL_STORE_F_OSSL_STORE_INFO_NEW_PKEY 111 50 | # define OSSL_STORE_F_OSSL_STORE_INFO_SET0_NAME_DESCRIPTION 134 51 | # define OSSL_STORE_F_OSSL_STORE_INIT_ONCE 112 52 | # define OSSL_STORE_F_OSSL_STORE_LOADER_NEW 113 53 | # define OSSL_STORE_F_OSSL_STORE_OPEN 114 54 | # define OSSL_STORE_F_OSSL_STORE_OPEN_INT 115 55 | # define OSSL_STORE_F_OSSL_STORE_REGISTER_LOADER_INT 117 56 | # define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ALIAS 132 57 | # define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ISSUER_SERIAL 133 58 | # define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT 136 59 | # define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_NAME 137 60 | # define OSSL_STORE_F_OSSL_STORE_UNREGISTER_LOADER_INT 116 61 | # define OSSL_STORE_F_TRY_DECODE_PARAMS 121 62 | # define OSSL_STORE_F_TRY_DECODE_PKCS12 122 63 | # define OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED 125 64 | 65 | /* 66 | * OSSL_STORE reason codes. 67 | */ 68 | # define OSSL_STORE_R_AMBIGUOUS_CONTENT_TYPE 107 69 | # define OSSL_STORE_R_BAD_PASSWORD_READ 115 70 | # define OSSL_STORE_R_ERROR_VERIFYING_PKCS12_MAC 113 71 | # define OSSL_STORE_R_FINGERPRINT_SIZE_DOES_NOT_MATCH_DIGEST 121 72 | # define OSSL_STORE_R_INVALID_SCHEME 106 73 | # define OSSL_STORE_R_IS_NOT_A 112 74 | # define OSSL_STORE_R_LOADER_INCOMPLETE 116 75 | # define OSSL_STORE_R_LOADING_STARTED 117 76 | # define OSSL_STORE_R_NOT_A_CERTIFICATE 100 77 | # define OSSL_STORE_R_NOT_A_CRL 101 78 | # define OSSL_STORE_R_NOT_A_KEY 102 79 | # define OSSL_STORE_R_NOT_A_NAME 103 80 | # define OSSL_STORE_R_NOT_PARAMETERS 104 81 | # define OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR 114 82 | # define OSSL_STORE_R_PATH_MUST_BE_ABSOLUTE 108 83 | # define OSSL_STORE_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES 119 84 | # define OSSL_STORE_R_UI_PROCESS_INTERRUPTED_OR_CANCELLED 109 85 | # define OSSL_STORE_R_UNREGISTERED_SCHEME 105 86 | # define OSSL_STORE_R_UNSUPPORTED_CONTENT_TYPE 110 87 | # define OSSL_STORE_R_UNSUPPORTED_OPERATION 118 88 | # define OSSL_STORE_R_UNSUPPORTED_SEARCH_TYPE 120 89 | # define OSSL_STORE_R_URI_AUTHORITY_UNSUPPORTED 111 90 | 91 | #endif 92 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/symhacks.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_SYMHACKS_H 11 | # define HEADER_SYMHACKS_H 12 | 13 | # include 14 | 15 | /* Case insensitive linking causes problems.... */ 16 | # if defined(OPENSSL_SYS_VMS) 17 | # undef ERR_load_CRYPTO_strings 18 | # define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings 19 | # undef OCSP_crlID_new 20 | # define OCSP_crlID_new OCSP_crlID2_new 21 | 22 | # undef d2i_ECPARAMETERS 23 | # define d2i_ECPARAMETERS d2i_UC_ECPARAMETERS 24 | # undef i2d_ECPARAMETERS 25 | # define i2d_ECPARAMETERS i2d_UC_ECPARAMETERS 26 | # undef d2i_ECPKPARAMETERS 27 | # define d2i_ECPKPARAMETERS d2i_UC_ECPKPARAMETERS 28 | # undef i2d_ECPKPARAMETERS 29 | # define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS 30 | 31 | /* This one clashes with CMS_data_create */ 32 | # undef cms_Data_create 33 | # define cms_Data_create priv_cms_Data_create 34 | 35 | # endif 36 | 37 | #endif /* ! defined HEADER_VMS_IDHACKS_H */ 38 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/txt_db.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_TXT_DB_H 11 | # define HEADER_TXT_DB_H 12 | 13 | # include 14 | # include 15 | # include 16 | # include 17 | 18 | # define DB_ERROR_OK 0 19 | # define DB_ERROR_MALLOC 1 20 | # define DB_ERROR_INDEX_CLASH 2 21 | # define DB_ERROR_INDEX_OUT_OF_RANGE 3 22 | # define DB_ERROR_NO_INDEX 4 23 | # define DB_ERROR_INSERT_INDEX_CLASH 5 24 | # define DB_ERROR_WRONG_NUM_FIELDS 6 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | typedef OPENSSL_STRING *OPENSSL_PSTRING; 31 | DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING) 32 | 33 | typedef struct txt_db_st { 34 | int num_fields; 35 | STACK_OF(OPENSSL_PSTRING) *data; 36 | LHASH_OF(OPENSSL_STRING) **index; 37 | int (**qual) (OPENSSL_STRING *); 38 | long error; 39 | long arg1; 40 | long arg2; 41 | OPENSSL_STRING *arg_row; 42 | } TXT_DB; 43 | 44 | TXT_DB *TXT_DB_read(BIO *in, int num); 45 | long TXT_DB_write(BIO *out, TXT_DB *db); 46 | int TXT_DB_create_index(TXT_DB *db, int field, int (*qual) (OPENSSL_STRING *), 47 | OPENSSL_LH_HASHFUNC hash, OPENSSL_LH_COMPFUNC cmp); 48 | void TXT_DB_free(TXT_DB *db); 49 | OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, 50 | OPENSSL_STRING *value); 51 | int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value); 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/uierr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the OpenSSL license (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef HEADER_UIERR_H 12 | # define HEADER_UIERR_H 13 | 14 | # ifndef HEADER_SYMHACKS_H 15 | # include 16 | # endif 17 | 18 | # ifdef __cplusplus 19 | extern "C" 20 | # endif 21 | int ERR_load_UI_strings(void); 22 | 23 | /* 24 | * UI function codes. 25 | */ 26 | # define UI_F_CLOSE_CONSOLE 115 27 | # define UI_F_ECHO_CONSOLE 116 28 | # define UI_F_GENERAL_ALLOCATE_BOOLEAN 108 29 | # define UI_F_GENERAL_ALLOCATE_PROMPT 109 30 | # define UI_F_NOECHO_CONSOLE 117 31 | # define UI_F_OPEN_CONSOLE 114 32 | # define UI_F_UI_CONSTRUCT_PROMPT 121 33 | # define UI_F_UI_CREATE_METHOD 112 34 | # define UI_F_UI_CTRL 111 35 | # define UI_F_UI_DUP_ERROR_STRING 101 36 | # define UI_F_UI_DUP_INFO_STRING 102 37 | # define UI_F_UI_DUP_INPUT_BOOLEAN 110 38 | # define UI_F_UI_DUP_INPUT_STRING 103 39 | # define UI_F_UI_DUP_USER_DATA 118 40 | # define UI_F_UI_DUP_VERIFY_STRING 106 41 | # define UI_F_UI_GET0_RESULT 107 42 | # define UI_F_UI_GET_RESULT_LENGTH 119 43 | # define UI_F_UI_NEW_METHOD 104 44 | # define UI_F_UI_PROCESS 113 45 | # define UI_F_UI_SET_RESULT 105 46 | # define UI_F_UI_SET_RESULT_EX 120 47 | 48 | /* 49 | * UI reason codes. 50 | */ 51 | # define UI_R_COMMON_OK_AND_CANCEL_CHARACTERS 104 52 | # define UI_R_INDEX_TOO_LARGE 102 53 | # define UI_R_INDEX_TOO_SMALL 103 54 | # define UI_R_NO_RESULT_BUFFER 105 55 | # define UI_R_PROCESSING_ERROR 107 56 | # define UI_R_RESULT_TOO_LARGE 100 57 | # define UI_R_RESULT_TOO_SMALL 101 58 | # define UI_R_SYSASSIGN_ERROR 109 59 | # define UI_R_SYSDASSGN_ERROR 110 60 | # define UI_R_SYSQIOW_ERROR 111 61 | # define UI_R_UNKNOWN_CONTROL_COMMAND 106 62 | # define UI_R_UNKNOWN_TTYGET_ERRNO_VALUE 108 63 | # define UI_R_USER_DATA_DUPLICATION_UNSUPPORTED 112 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/include/openssl/whrlpool.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the OpenSSL license (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef HEADER_WHRLPOOL_H 11 | # define HEADER_WHRLPOOL_H 12 | 13 | #include 14 | 15 | # ifndef OPENSSL_NO_WHIRLPOOL 16 | # include 17 | # include 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # define WHIRLPOOL_DIGEST_LENGTH (512/8) 23 | # define WHIRLPOOL_BBLOCK 512 24 | # define WHIRLPOOL_COUNTER (256/8) 25 | 26 | typedef struct { 27 | union { 28 | unsigned char c[WHIRLPOOL_DIGEST_LENGTH]; 29 | /* double q is here to ensure 64-bit alignment */ 30 | double q[WHIRLPOOL_DIGEST_LENGTH / sizeof(double)]; 31 | } H; 32 | unsigned char data[WHIRLPOOL_BBLOCK / 8]; 33 | unsigned int bitoff; 34 | size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)]; 35 | } WHIRLPOOL_CTX; 36 | 37 | int WHIRLPOOL_Init(WHIRLPOOL_CTX *c); 38 | int WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *inp, size_t bytes); 39 | void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *inp, size_t bits); 40 | int WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c); 41 | unsigned char *WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md); 42 | 43 | # ifdef __cplusplus 44 | } 45 | # endif 46 | # endif 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/lib/libcrypto.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spuckwaffel/Dumpspace-API/78cd7ab23a6c060c9fb0253a1ebc9d95a2b85e74/DumpspaceAPI/libs/openssl/lib/libcrypto.lib -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/lib/libssl.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spuckwaffel/Dumpspace-API/78cd7ab23a6c060c9fb0253a1ebc9d95a2b85e74/DumpspaceAPI/libs/openssl/lib/libssl.lib -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/share/openssl-windows/usage: -------------------------------------------------------------------------------- 1 | The package openssl is compatible with built-in CMake targets: 2 | 3 | find_package(OpenSSL REQUIRED) 4 | target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto) 5 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/share/openssl-windows/vcpkg_abi_info.txt: -------------------------------------------------------------------------------- 1 | EmbedSymbolsInStaticLibsZ7.patch 2428eddfb693a540a333bddfb6d319bcdb21dd25 2 | EnableWinARM64.patch 27a461a0eb4fb49cf47c8cbf466a050b99a435cf 3 | portfile.cmake 7cb86791470389f6e4b8f099b540f17330b10f93 4 | STRINGIFYPatch.patch 9231d10d38d9ddbe9d18b1923d373ee6ca18fcaf 5 | ConfigureIncludeQuotesFix.patch 96c7f8950288e78699f6b8fd6ca3cb25f879de62 6 | CONTROL 9c4d84c3da9fcd80c834afff806ec5fb8359b305 7 | EnableWinARM32.patch ce954f1ae04412820b786c3de05ee69447ababfc 8 | usage e84689f3fed71c903aaffed65f621b3eee496037 9 | cmake 3.14.0 10 | powershell ab1effc926b000a6adc12198a1886514ec203621a53b0cd7ec1cd9a8225dccda7e857feaabcfba4004bea73129b986abaad777c4573f44e0af70411226ce08b0 11 | vcpkg_fixup_cmake_targets dac334f3bf50b8262be92623168023aa565aa729 12 | post_build_checks 2 13 | triplet 11b48685057027ff91b8ac481e606bbf604cef3b 14 | features core 15 | -------------------------------------------------------------------------------- /DumpspaceAPI/libs/openssl/tools/openssl/openssl.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spuckwaffel/Dumpspace-API/78cd7ab23a6c060c9fb0253a1ebc9d95a2b85e74/DumpspaceAPI/libs/openssl/tools/openssl/openssl.exe -------------------------------------------------------------------------------- /DumpspaceAPI/libs/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spuckwaffel/Dumpspace-API/78cd7ab23a6c060c9fb0253a1ebc9d95a2b85e74/DumpspaceAPI/libs/zlib.lib -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) [year] [fullname] 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DumpspaceAPI 2 | 3 | The dumpspace API allows you to get your Games' info directly from the Dumpspace website to use it in your C++ project. 4 | 5 | This library uses [Curl](https://github.com/curl/curl), [Zlib](https://github.com/madler/zlib), [OpenSSL](https://github.com/openssl/openssl) and [JSON](https://github.com/nlohmann/json). 6 | Please look up the licenses for these projects. 7 | 8 | Additionally, in the ``libs/`` folder are precompiled libraries for the sake of clarity and demonstration, however I **strongly suggest** to compile the libraries on your own and use them instead to have the latest version and using precompiled libraries from the internet is bad practice in general, you never know whats in them. 9 | 10 | ### Example 11 | All examples are shown within the ``DumpspaceAPI.cpp`` file: 12 | 13 | - First we create a DSAPI object with the hash of the game. You can get the hash out of the url 14 | 15 | - example url: ``...dumpspace/main/Games/index.html?hash=6b77eceb <----`` 16 | ```c++ 17 | DSAPI api = DSAPI("6b77eceb"); 18 | ``` 19 | 20 | - Downloads all JSONs to use the API 21 | ```c++ 22 | api.downloadContent(); 23 | ``` 24 | - Gets any offset of the OFFSETS tab 25 | ```c++ 26 | const auto UWorldOffset = api.getOffset("OFFSET_UWORLD"); 27 | printf("UWorld offset: 0x%llX\n", UWorldOffset); 28 | ``` 29 | 30 | - Gets the size of any defined class or struct 31 | ```c++ 32 | const auto classSize = api.getSizeofClass("AActor"); 33 | printf("AActor class size: 0x%X\n", classSize); 34 | ``` 35 | 36 | - Gets the OffsetInfo of a member within a class or struct 37 | ```c++ 38 | const auto offset = api.getOffset("UWorld", "OwningGameInstance"); 39 | 40 | // is it valid? 41 | if (!offset) 42 | DebugBreak(); 43 | 44 | printf("OwningGameInstance offset: 0x%llX size: 0x%llX\n", offset.offset, offset.size); 45 | ``` 46 | 47 | - Get the function offset of a function 48 | ```c++ 49 | const auto functionOffset = api.getFunctionOffset("AFortWeapon", "WeaponDataIsValid"); 50 | printf("AFortWeapon::WeaponDataIsValid offset 0x%llX\n", functionOffset); 51 | ``` 52 | 53 | - Get the name of an enum from an enum class. 54 | - Imagine we read the rarity of a item and get the value 4 55 | ```c++ 56 | enum class EFortRarity : uint8_t { 57 | EFortRarity__Common = 0, 58 | EFortRarity__Uncommon = 1, 59 | EFortRarity__Rare = 2, 60 | EFortRarity__Epic = 3, 61 | EFortRarity__Legendary = 4, // <---- it will return this name 62 | EFortRarity__Mythic = 5, 63 | EFortRarity__Transcendent = 6, 64 | ... 65 | }; 66 | ``` 67 | 68 | ```c++ 69 | const auto enumName = api.getEnumName("EFortRarity", 4); 70 | printf("EFortRarity type 4: %s\n", enumName.c_str()); 71 | ``` 72 | 73 | ### Showcase 74 | 75 | Compiling the project would display this: 76 | 77 | ![alt text](image.png) 78 | -------------------------------------------------------------------------------- /image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spuckwaffel/Dumpspace-API/78cd7ab23a6c060c9fb0253a1ebc9d95a2b85e74/image.png --------------------------------------------------------------------------------