pax_global_header00006660000000000000000000000064134114505670014520gustar00rootroot0000000000000052 comment=459c1344aac37519ccdf19aebff56027771d2e72 opendht-1.8.1/000077500000000000000000000000001341145056700131705ustar00rootroot00000000000000opendht-1.8.1/.gitignore000066400000000000000000000010551341145056700151610ustar00rootroot00000000000000# Compiled Object files *.slo *.lo *.o *.obj # Compiled Dynamic libraries *.so *.dylib *.dll # Compiled Static libraries *.lai *.la *.a *.lib # Executables *.exe *.out *.app # Autotools /ac Makefile Makefile.in /aclocal.m4 /autom4te.cache/ /config.* /configure /depcomp /install-sh /libtool /ltmain.sh /m4/ /missing /stamp-h? .deps/ .dirstamp .libs/ *.l[ao] *~ *.pc # KDevelop .kdev4/ *.kdev4 # Python *.pyc *.stamp python/opendht.cpp python/setup.py # Doxygen doc/Doxyfile # git backup files *.orig # vim swap files *.swp *.swo # build dir build opendht-1.8.1/.gitmodules000066400000000000000000000001461341145056700153460ustar00rootroot00000000000000[submodule "argon2"] path = argon2 url = https://github.com/P-H-C/phc-winner-argon2 ignore = dirty opendht-1.8.1/.travis.yml000066400000000000000000000040671341145056700153100ustar00rootroot00000000000000dist: xenial sudo: required services: - docker language: cpp env: matrix: - OPENDHT_TEST_JOB="opendht.classic" - OPENDHT_TEST_JOB="opendht.llvm" - OPENDHT_TEST_JOB="opendht.proxyserver" - OPENDHT_TEST_JOB="opendht.proxyclient" - OPENDHT_TEST_JOB="opendht.push" before_install: - | # non llvm builds if [[ "$OPENDHT_TEST_JOB" != *"opendht.llvm"* ]]; then docker pull aberaud/opendht-deps; fi - | # classic build if [[ "$OPENDHT_TEST_JOB" == *"opendht.llvm"* ]]; then docker pull aberaud/opendht-deps-llvm fi script: - | # classic build if [[ "$OPENDHT_TEST_JOB" == *"opendht.classic"* ]]; then docker build -t opendht -f docker/DockerfileTravis .; fi - | # proxy builds if [[ "$OPENDHT_TEST_JOB" != *"opendht.llvm"* ]] && [[ "$OPENDHT_TEST_JOB" != *"opendht.classic"* ]]; then docker build -t opendht-proxy -f docker/DockerfileTravisProxy .; options='-DOPENDHT_SANITIZE=On '; if [[ "$OPENDHT_TEST_JOB" == *"opendht.proxyserver"* ]] || [[ "$OPENDHT_TEST_JOB" == *"opendht.push"* ]]; then options+='-DOPENDHT_PROXY_SERVER=ON '; else options+='-DOPENDHT_PROXY_SERVER=OFF '; fi if [[ "$OPENDHT_TEST_JOB" == *"opendht.proxyclient"* ]] || [[ "$OPENDHT_TEST_JOB" == *"opendht.push"* ]]; then options+='-DOPENDHT_PROXY_CLIENT=ON '; else options+='-DOPENDHT_PROXY_CLIENT=OFF '; fi if [[ "$OPENDHT_TEST_JOB" == *"opendht.push"* ]]; then options+='-DOPENDHT_PUSH_NOTIFICATIONS=ON '; else options+='-DOPENDHT_PUSH_NOTIFICATIONS=OFF '; fi docker run opendht-proxy /bin/sh -c "cd /root/opendht && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DOPENDHT_PYTHON=ON -DOPENDHT_LTO=ON -DOPENDHT_TESTS=ON $options .. && make -j8 && ./opendht_unit_tests && make install"; fi - | # llvm build if [[ "$OPENDHT_TEST_JOB" == *"opendht.llvm"* ]]; then docker build -f docker/DockerfileTravisLlvm . fi notifications: email: - adrien.beraud@savoirfairelinux.com opendht-1.8.1/CMakeLists.txt000066400000000000000000000244711341145056700157400ustar00rootroot00000000000000cmake_minimum_required (VERSION 3.1) project (opendht) set (opendht_VERSION_MAJOR 1) set (opendht_VERSION_MINOR 8.1) set (opendht_VERSION ${opendht_VERSION_MAJOR}.${opendht_VERSION_MINOR}) set (PACKAGE_VERSION ${opendht_VERSION}) set (VERSION "${opendht_VERSION}") # Options option (OPENDHT_STATIC "Build static library" ON) option (OPENDHT_SHARED "Build shared library" ON) option (OPENDHT_LOG "Build with logs" ON) option (OPENDHT_PYTHON "Build Python bindings" OFF) option (OPENDHT_TOOLS "Build DHT tools" ON) option (OPENDHT_SYSTEMD "Install systemd module" OFF) option (OPENDHT_ARGON2 "Use included argon2 sources" OFF) option (OPENDHT_LTO "Build with LTO" OFF) option (OPENDHT_SANITIZE "Build with address sanitizer and stack protector" OFF) option (OPENDHT_PROXY_SERVER "Enable DHT proxy server, use Restbed and jsoncpp" OFF) option (OPENDHT_PUSH_NOTIFICATIONS "Enable push notifications support" OFF) option (OPENDHT_PROXY_SERVER_IDENTITY "Allow clients to use the node identity" OFF) option (OPENDHT_PROXY_CLIENT "Enable DHT proxy client, use Restbed and jsoncpp" OFF) option (OPENDHT_INDEX "Build DHT indexation feature" OFF) option (OPENDHT_TESTS "Add unit tests executable" OFF) find_package(Doxygen) option (OPENDHT_DOCUMENTATION "Create and install the HTML based API documentation (requires Doxygen)" ${DOXYGEN_FOUND}) # Dependencies list (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") find_package (Threads) find_package (PkgConfig) find_package (GnuTLS 3.3 REQUIRED) pkg_search_module (Nettle nettle) find_package (Msgpack 1.2 REQUIRED) if (OPENDHT_TOOLS) find_package (Readline 6 REQUIRED) endif () if (NOT OPENDHT_ARGON2) find_package(PkgConfig) pkg_search_module(argon2 libargon2) if (argon2_FOUND) message("Argon2 found " ${argon2_req}) set(argon2_lib ", libargon2") else () message("Argon2 not found, using included version.") set(OPENDHT_ARGON2 ON) endif() endif () pkg_search_module(Jsoncpp jsoncpp) if (Jsoncpp_FOUND) add_definitions(-DOPENDHT_JSONCPP) list (APPEND opendht_SOURCES src/base64.h src/base64.cpp ) endif() if (OPENDHT_PROXY_SERVER OR OPENDHT_PROXY_CLIENT) find_package(Restbed REQUIRED) if (NOT Jsoncpp_FOUND) message(SEND_ERROR "Jsoncpp is required for DHT proxy support") endif() endif() # Build flags set (CMAKE_CXX_STANDARD 11) set (CMAKE_CXX_STANDARD_REQUIRED on) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-return-type -Wall -Wextra -Wnon-virtual-dtor -pedantic-errors -fvisibility=hidden") if (OPENDHT_SANITIZE) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fstack-protector-strong") endif () set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMSGPACK_DISABLE_LEGACY_NIL -DMSGPACK_DISABLE_LEGACY_CONVERT") if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif () if (OPENDHT_LOG) add_definitions(-DOPENDHT_LOG=true) else () add_definitions(-DOPENDHT_LOG=false) endif() if (OPENDHT_LTO) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto") if (CMAKE_COMPILER_IS_GNUCC) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fuse-linker-plugin") set (CMAKE_AR "gcc-ar") set (CMAKE_NM "gcc-nm") set (CMAKE_RANLIB "gcc-ranlib") endif () endif () if (MSGPACK_INCLUDE_DIRS) include_directories (SYSTEM "${MSGPACK_INCLUDE_DIRS}") endif () if (GNUTLS_INCLUDE_DIRS) include_directories (SYSTEM "${GNUTLS_INCLUDE_DIRS}") endif () if (Nettle_INCLUDE_DIRS) include_directories (SYSTEM "${Nettle_INCLUDE_DIRS}") endif () if (Restbed_INCLUDE_DIR) include_directories (SYSTEM "${Restbed_INCLUDE_DIR}") endif () if (Jsoncpp_INCLUDE_DIRS) include_directories (SYSTEM "${Jsoncpp_INCLUDE_DIRS}") endif () link_directories (${Nettle_LIBRARY_DIRS}) link_directories (${Jsoncpp_LIBRARY_DIRS}) include_directories ( ./ include/ include/opendht/ ${CMAKE_CURRENT_BINARY_DIR}/include/ ) # Install dirs include (GNUInstallDirs) set (prefix ${CMAKE_INSTALL_PREFIX}) set (exec_prefix "\${prefix}") set (libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}") set (includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}") set (bindir "${CMAKE_INSTALL_FULL_BINDIR}") set (sysconfdir "${CMAKE_INSTALL_FULL_SYSCONFDIR}") set (top_srcdir "${CMAKE_CURRENT_SOURCE_DIR}") # Sources list (APPEND opendht_SOURCES src/utils.cpp src/infohash.cpp src/crypto.cpp src/default_types.cpp src/node.cpp src/value.cpp src/dht.cpp src/op_cache.cpp src/storage.h src/listener.h src/search.h src/value_cache.h src/op_cache.h src/net.h src/parsed_message.h src/request.h src/callbacks.cpp src/routing_table.cpp src/node_cache.cpp src/network_engine.cpp src/securedht.cpp src/dhtrunner.cpp src/log.cpp ) list (APPEND opendht_HEADERS include/opendht/def.h include/opendht/utils.h include/opendht/sockaddr.h include/opendht/rng.h include/opendht/crypto.h include/opendht/infohash.h include/opendht/default_types.h include/opendht/node.h include/opendht/value.h include/opendht/dht.h include/opendht/dht_interface.h include/opendht/callbacks.h include/opendht/routing_table.h include/opendht/node_cache.h include/opendht/network_engine.h include/opendht/scheduler.h include/opendht/rate_limiter.h include/opendht/securedht.h include/opendht/log.h include/opendht/log_enable.h include/opendht.h ) if (OPENDHT_INDEX) list (APPEND opendht_SOURCES src/indexation/pht.cpp) list (APPEND opendht_HEADERS include/opendht/indexation/pht.h) add_definitions(-DOPENDHT_INDEXATION) endif() if (OPENDHT_PROXY_SERVER) add_definitions(-DOPENDHT_PROXY_SERVER=true) if (OPENDHT_PROXY_SERVER_IDENTITY) add_definitions(-DOPENDHT_PROXY_SERVER_IDENTITY=true) else () add_definitions(-DOPENDHT_PROXY_SERVER_IDENTITY=false) endif() list (APPEND opendht_HEADERS include/opendht/dht_proxy_server.h ) list (APPEND opendht_SOURCES src/dht_proxy_server.cpp ) else () add_definitions(-DENABLE_PROXY_SERVER=false) endif () if (OPENDHT_PROXY_CLIENT) add_definitions(-DOPENDHT_PROXY_CLIENT=true) list (APPEND opendht_HEADERS include/opendht/dht_proxy_client.h ) list (APPEND opendht_SOURCES src/dht_proxy_client.cpp ) else () add_definitions(-DOPENDHT_PROXY_CLIENT=false) endif () if (OPENDHT_PROXY_SERVER OR OPENDHT_PROXY_CLIENT) if (OPENDHT_PUSH_NOTIFICATIONS) message("Using push notification") add_definitions(-DOPENDHT_PUSH_NOTIFICATIONS=true) else () add_definitions(-DOPENDHT_PUSH_NOTIFICATIONS=false) endif () list (APPEND opendht_HEADERS include/opendht/proxy.h ) endif () if(OPENDHT_ARGON2) # make sure argon2 submodule is up to date and initialized message("Initializing Argon2 submodule") execute_process(COMMAND git submodule update --init) # add local argon2 files to build list (APPEND opendht_SOURCES argon2/src/argon2.c argon2/src/core.c argon2/src/blake2/blake2b.c argon2/src/thread.c argon2/src/ref.c argon2/src/encoding.c ) include_directories(argon2/include/) endif() # Targets if (OPENDHT_STATIC) add_library (opendht-static STATIC ${opendht_SOURCES} ${opendht_HEADERS} ) set_target_properties (opendht-static PROPERTIES OUTPUT_NAME "opendht") if (OPENDHT_ARGON2) target_include_directories(opendht-static SYSTEM PRIVATE argon2) else () target_include_directories(opendht-static SYSTEM PRIVATE ${argon2_INCLUDE_DIRS}) endif () target_link_libraries(opendht-static PRIVATE ${Restbed_LIBRARY} ${argon2_LIBRARIES} PUBLIC ${CMAKE_THREAD_LIBS_INIT} ${GNUTLS_LIBRARIES} ${Nettle_LIBRARIES} ${Jsoncpp_LIBRARIES}) install (TARGETS opendht-static DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht) endif () if (OPENDHT_SHARED) add_library (opendht SHARED ${opendht_SOURCES} ${opendht_HEADERS} ) set_target_properties (opendht PROPERTIES IMPORT_SUFFIX "_import.lib") set_target_properties (opendht PROPERTIES SOVERSION ${opendht_VERSION_MAJOR} VERSION ${opendht_VERSION}) target_compile_definitions(opendht PRIVATE OPENDHT_BUILD) if (OPENDHT_ARGON2) target_include_directories(opendht SYSTEM PRIVATE argon2) else () target_link_libraries(opendht PRIVATE ${argon2_LIBRARIES}) target_include_directories(opendht SYSTEM PRIVATE ${argon2_INCLUDE_DIRS}) endif () target_link_libraries(opendht PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${GNUTLS_LIBRARIES} ${Nettle_LIBRARIES} ${Restbed_LIBRARY} ${Jsoncpp_LIBRARIES}) install (TARGETS opendht DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht) endif () if (OPENDHT_TOOLS) add_subdirectory(tools) endif () add_subdirectory(doc) if (OPENDHT_PYTHON) add_subdirectory(python) endif () # CMake module include(CMakePackageConfigHelpers) write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/opendhtConfigVersion.cmake" VERSION ${opendht_VERSION} COMPATIBILITY AnyNewerVersion ) # PkgConfig module configure_file ( opendht.pc.in opendht.pc @ONLY ) # Install targets install (DIRECTORY include DESTINATION ${CMAKE_INSTALL_PREFIX}) install (FILES ${CMAKE_CURRENT_BINARY_DIR}/opendht.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) install (EXPORT opendht DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/opendht FILE opendhtConfig.cmake) install (FILES ${CMAKE_CURRENT_BINARY_DIR}/opendhtConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/opendht) # Unit tests IF(OPENDHT_TESTS) FIND_PACKAGE(Cppunit REQUIRED) # unit testing list (APPEND test_FILES tests/infohashtester.h tests/infohashtester.cpp tests/cryptotester.h tests/cryptotester.cpp tests/dhtrunnertester.h tests/dhtrunnertester.cpp ) if (OPENDHT_PROXY_SERVER AND OPENDHT_PROXY_CLIENT) list (APPEND test_FILES tests/dhtproxytester.h tests/dhtproxytester.cpp ) endif() add_executable(opendht_unit_tests tests/tests_runner.cpp ${test_FILES} ) if (OPENDHT_SHARED) TARGET_LINK_LIBRARIES(opendht_unit_tests opendht) else () TARGET_LINK_LIBRARIES(opendht_unit_tests opendht-static) endif () TARGET_LINK_LIBRARIES(opendht_unit_tests ${CMAKE_THREAD_LIBS_INIT} ${CPPUNIT_LIBRARIES} ${GNUTLS_LIBRARIES} ) enable_testing() add_test(TEST opendht_unit_tests) ENDIF() opendht-1.8.1/COPYING000066400000000000000000001045131341145056700142270ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . opendht-1.8.1/MSVC/000077500000000000000000000000001341145056700137405ustar00rootroot00000000000000opendht-1.8.1/MSVC/.gitignore000066400000000000000000000100151341145056700157250ustar00rootroot00000000000000## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. #output directories DebugLib/ Debug/ ReleaseLib/ Release/ .config/ # User-specific files *.suo *.user *.userosscache *.sln.docstates *.VC.VC.opendb *.VC.db *.db # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs # Build results [Dd]ebug/ [Dd]ebugPublic/ [Rr]elease/ [Rr]eleases/ x64/ x86/ bld/ [Bb]in/ [Oo]bj/ # Visual Studio 2015 cache/options directory .vs/ # Uncomment if you have tasks that create the project's static files in wwwroot #wwwroot/ # MSTest test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* # NUNIT *.VisualState.xml TestResult.xml # Build Results of an ATL Project [Dd]ebugPS/ [Rr]eleasePS/ dlldata.c # DNX project.lock.json artifacts/ *_i.c *_p.c *_i.h *.ilk *.meta *.obj *.pch *.pdb *.pgc *.pgd *.rsp *.sbr *.tlb *.tli *.tlh *.tmp *.tmp_proj *.log *.vspscc *.vssscc .builds *.pidb *.svclog *.scc # Chutzpah Test files _Chutzpah* # Visual C++ cache files ipch/ *.aps *.ncb *.opendb *.opensdf *.sdf *.cachefile # Visual Studio profiler *.psess *.vsp *.vspx *.sap # TFS 2012 Local Workspace $tf/ # Guidance Automation Toolkit *.gpState # ReSharper is a .NET coding add-in _ReSharper*/ *.[Rr]e[Ss]harper *.DotSettings.user # JustCode is a .NET coding add-in .JustCode # TeamCity is a build add-in _TeamCity* # DotCover is a Code Coverage Tool *.dotCover # NCrunch _NCrunch_* .*crunch*.local.xml nCrunchTemp_* # MightyMoose *.mm.* AutoTest.Net/ # Web workbench (sass) .sass-cache/ # Installshield output folder [Ee]xpress/ # DocProject is a documentation generator add-in DocProject/buildhelp/ DocProject/Help/*.HxT DocProject/Help/*.HxC DocProject/Help/*.hhc DocProject/Help/*.hhk DocProject/Help/*.hhp DocProject/Help/Html2 DocProject/Help/html # Click-Once directory publish/ # Publish Web Output *.[Pp]ublish.xml *.azurePubxml # TODO: Comment the next line if you want to checkin your web deploy settings # but database connection strings (with potential passwords) will be unencrypted *.pubxml *.publishproj # NuGet Packages *.nupkg # The packages folder can be ignored because of Package Restore **/packages/* # except build/, which is used as an MSBuild target. !**/packages/build/ # Uncomment if necessary however generally it will be regenerated when needed #!**/packages/repositories.config # NuGet v3's project.json files produces more ignoreable files *.nuget.props *.nuget.targets # Microsoft Azure Build Output csx/ *.build.csdef # Microsoft Azure Emulator ecf/ rcf/ # Microsoft Azure ApplicationInsights config file ApplicationInsights.config # Windows Store app package directory AppPackages/ BundleArtifacts/ # Visual Studio cache files # files ending in .cache can be ignored *.[Cc]ache # but keep track of directories ending in .cache !*.[Cc]ache/ # Others ClientBin/ ~$* *~ *.dbmdl *.dbproj.schemaview *.pfx *.publishsettings node_modules/ orleans.codegen.cs # RIA/Silverlight projects Generated_Code/ # Backup & report files from converting an old project file # to a newer Visual Studio version. Backup files are not needed, # because we have git ;-) _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML UpgradeLog*.htm # SQL Server files *.mdf *.ldf # Business Intelligence projects *.rdl.data *.bim.layout *.bim_*.settings # Microsoft Fakes FakesAssemblies/ # GhostDoc plugin setting file *.GhostDoc.xml # Node.js Tools for Visual Studio .ntvs_analysis.dat # Visual Studio 6 build log *.plg # Visual Studio 6 workspace options file *.opt # Visual Studio LightSwitch build output **/*.HTMLClient/GeneratedArtifacts **/*.DesktopClient/GeneratedArtifacts **/*.DesktopClient/ModelManifest.xml **/*.Server/GeneratedArtifacts **/*.Server/ModelManifest.xml _Pvt_Extensions # Paket dependency manager .paket/paket.exe # FAKE - F# Make .fake/ !config.h contrib/build/opendht-1.8.1/MSVC/build_vs2015_release_x64.bat000066400000000000000000000016441341145056700207550ustar00rootroot00000000000000@echo on SETLOCAL EnableDelayedExpansion set SRC=%~dp0 set PATH=%PATH%;%ProgramFiles(x86)%\MSBuild\14.0\Bin\ set MSBUILD_ARGS=/nologo /p:Configuration=Release /p:Platform=x64 /verbosity:normal /maxcpucount:%NUMBER_OF_PROCESSORS% set TOBUILD=( ^ contrib\build\argon2\vs2015\Argon2Ref\Argon2Ref.vcxproj, ^ contrib\build\gmp\SMP\libgmp.vcxproj, ^ contrib\build\nettle\SMP\libnettle.vcxproj, ^ contrib\build\nettle\SMP\libhogweed.vcxproj, ^ contrib\build\libiconv\SMP\libiconv.vcxproj, ^ contrib\build\nettle\SMP\libiconv.vcxproj, ^ contrib\build\zlib\SMP\libzlib.vcxproj, ^ contrib\build\gnutls\SMP\libgnutls.vcxproj, ^ contrib\build\msgpack-c\msgpack_vc8.vcxproj, ^ opendht.vcxproj, ^ dhtchat.vcxproj, ^ dhtscanner.vcxproj, ^ dhtnode.vcxproj ^ ) for %%I in %TOBUILD% do ( call :build "%SRC%%%I" ) exit /B %ERRORLEVEL% :build echo "Building project: " %* msbuild %* %MSBUILD_ARGS% exit /B 0opendht-1.8.1/MSVC/contrib/000077500000000000000000000000001341145056700154005ustar00rootroot00000000000000opendht-1.8.1/MSVC/contrib/src/000077500000000000000000000000001341145056700161675ustar00rootroot00000000000000opendht-1.8.1/MSVC/contrib/src/argon2/000077500000000000000000000000001341145056700173575ustar00rootroot00000000000000opendht-1.8.1/MSVC/contrib/src/argon2/argon2-uwp.patch000066400000000000000000000033561341145056700224100ustar00rootroot00000000000000--- a/vs2015/Argon2Ref/Argon2Ref.vcxproj +++ b/vs2015/Argon2Ref/Argon2Ref.vcxproj @@ -59,7 +59,7 @@ MultiByte - Application + StaticLibrary false v140 true @@ -117,8 +117,8 @@ $(SolutionDir)include;$(IncludePath) - $(SolutionDir)vs2015\build\ - $(SolutionDir)vs2015\build\$(ProjectName)\ + $(ProjectDir)..\..\..\lib\x64 + $(ProjectDir)vs2015\build\$(ProjectName)\ $(SolutionDir)include;$(IncludePath) @@ -179,6 +179,7 @@ true true _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + $(ProjectDir)..\..\include true @@ -223,4 +224,4 @@ - + \ No newline at end of file -- 2.10.2.windows.1 opendht-1.8.1/MSVC/contrib/src/argon2/fetch_and_patch.bat000066400000000000000000000011671341145056700231460ustar00rootroot00000000000000set BUILD=%SRC%..\build set ARGON2_VERSION=1eea0104e7cb2a38c617cf90ffa46ce5db6aceda set ARGON2_URL=https://github.com/P-H-C/phc-winner-argon2/archive/%ARGON2_VERSION%.tar.gz mkdir %BUILD% if %USE_CACHE%==1 ( copy %CACHE_DIR%\%ARGON2_VERSION%.tar.gz %cd% ) else ( wget %ARGON2_URL% ) 7z -y x %ARGON2_VERSION%.tar.gz && 7z -y x %ARGON2_VERSION%.tar -o%BUILD% del %ARGON2_VERSION%.tar && del %ARGON2_VERSION%.tar.gz && del %BUILD%\pax_global_header rename %BUILD%\phc-winner-argon2-%ARGON2_VERSION% argon2 cd %BUILD%\argon2 git apply --reject --whitespace=fix %SRC%\argon2\argon2-uwp.patch cd %SRC%opendht-1.8.1/MSVC/contrib/src/fetch_and_patch.bat000066400000000000000000000004501341145056700217500ustar00rootroot00000000000000@echo OFF SETLOCAL EnableDelayedExpansion set SRC=%~dp0 if "%USE_CACHE%"=="" ( set USE_CACHE=0 ) set DEPENDENCIES=( ^ argon2, ^ gmp, ^ gnutls, ^ iconv, ^ msgpack, ^ nettle, ^ opendht, ^ zlib ^ ) for %%I in %DEPENDENCIES% do ( call %SRC%\%%I\fetch_and_patch.bat )opendht-1.8.1/MSVC/contrib/src/gmp/000077500000000000000000000000001341145056700167525ustar00rootroot00000000000000opendht-1.8.1/MSVC/contrib/src/gmp/fetch_and_patch.bat000066400000000000000000000010751341145056700225370ustar00rootroot00000000000000set BUILD=%SRC%..\build set GMP_VERSION=3c8f5a0ae0c2ac9ff0ea31b27f71b152979b556d set GMP_URL=https://github.com/ShiftMediaProject/gmp/archive/%GMP_VERSION%.tar.gz mkdir %BUILD% if %USE_CACHE%==1 ( copy %CACHE_DIR%\%GMP_VERSION%.tar.gz %cd% ) else ( wget %GMP_URL% ) 7z -y x %GMP_VERSION%.tar.gz && 7z -y x %GMP_VERSION%.tar -o%BUILD% del %GMP_VERSION%.tar && del %GMP_VERSION%.tar.gz && del %BUILD%\pax_global_header rename %BUILD%\gmp-%GMP_VERSION% gmp cd %BUILD%\gmp git apply --reject --whitespace=fix %SRC%\gmp\gmp-uwp.patch cd %SRC%opendht-1.8.1/MSVC/contrib/src/gmp/gmp-uwp.patch000066400000000000000000000131231341145056700213670ustar00rootroot00000000000000--- a/SMP/libgmp.vcxproj +++ b/SMP/libgmp.vcxproj @@ -1248,6 +1248,7 @@ {02B94302-23D6-43EF-8865-95CDE99D5DC2} libgmp libgmp + 8.1 @@ -1368,65 +1369,65 @@ - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgmpd Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgmpd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gmpd false Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gmpd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ false Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgmp Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgmp Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgmp - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgmp - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gmp Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gmp - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean --- a/SMP/config.h +++ b/SMP/config.h @@ -202,7 +202,7 @@ /* #undef HAVE_NATIVE_mpn_add_n_sub_n */ #define HAVE_NATIVE_mpn_add_nc 1 #if defined(__x86_64) || defined(_M_X64) -#define HAVE_NATIVE_mpn_addaddmul_1msb0 1 +#define HAVE_NATIVE_mpn_addaddmul_1msb0 0 #define HAVE_NATIVE_mpn_addlsh1_n 1 #define HAVE_NATIVE_mpn_addlsh2_n 1 #define HAVE_NATIVE_mpn_addlsh_n 1 -- 2.8.1.windows.1 opendht-1.8.1/MSVC/contrib/src/gnutls/000077500000000000000000000000001341145056700175035ustar00rootroot00000000000000opendht-1.8.1/MSVC/contrib/src/gnutls/fetch_and_patch.bat000066400000000000000000000013761341145056700232740ustar00rootroot00000000000000set BUILD=%SRC%..\build set GNUTLS_VERSION=f2d0ade53ff644da55244aed79d05eca78d11a2f set GNUTLS_URL=https://github.com/ShiftMediaProject/gnutls/archive/%GNUTLS_VERSION%.tar.gz mkdir %BUILD% if %USE_CACHE%==1 ( copy %CACHE_DIR%\%GNUTLS_VERSION%.tar.gz %cd% ) else ( wget %GNUTLS_URL% ) 7z -y x %GNUTLS_VERSION%.tar.gz && 7z -y x %GNUTLS_VERSION%.tar -o%BUILD% del %GNUTLS_VERSION%.tar && del %GNUTLS_VERSION%.tar.gz && del %BUILD%\pax_global_header rename %BUILD%\gnutls-%GNUTLS_VERSION% gnutls cd %BUILD%\gnutls git apply --reject --whitespace=fix %SRC%\gnutls\gnutls-no-egd.patch git apply --reject --whitespace=fix %SRC%\gnutls\read-file-limits.h.patch git apply --reject --whitespace=fix %SRC%\gnutls\gnutls-uwp.patch cd %SRC%opendht-1.8.1/MSVC/contrib/src/gnutls/gnutls-no-egd.patch000066400000000000000000000072101341145056700232070ustar00rootroot00000000000000 {a => b}/lib/nettle/Makefile.am | 2 +- {a => b}/lib/nettle/Makefile.in | 11 +++++------ {a => b}/lib/nettle/rnd-common.c | 7 +++++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/nettle/Makefile.am b/lib/nettle/Makefile.am index e84ed1f..4767663 100644 --- a/lib/nettle/Makefile.am +++ b/lib/nettle/Makefile.am @@ -38,7 +38,7 @@ endif noinst_LTLIBRARIES = libcrypto.la -libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c init.c egd.c egd.h \ +libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c init.c \ gnettle.h rnd-common.h rnd-common.c \ rnd.c diff --git a/lib/nettle/Makefile.in b/lib/nettle/Makefile.in index 88ae7cf..6ddd536 100644 --- a/lib/nettle/Makefile.in +++ b/lib/nettle/Makefile.in @@ -221,8 +221,8 @@ CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcrypto_la_LIBADD = -am__libcrypto_la_SOURCES_DIST = pk.c mpi.c mac.c cipher.c init.c egd.c \ - egd.h gnettle.h rnd-common.h rnd-common.c rnd.c rnd-fips.c \ +am__libcrypto_la_SOURCES_DIST = pk.c mpi.c mac.c cipher.c init.c \ + gnettle.h rnd-common.h rnd-common.c rnd.c rnd-fips.c \ int/drbg-aes-self-test.c int/dsa-fips.h \ int/dsa-keygen-fips186.c int/dsa-validate.c \ int/provable-prime.c int/drbg-aes.c int/drbg-aes.h \ @@ -233,7 +233,7 @@ am__dirstamp = $(am__leading_dot)dirstamp @ENABLE_FIPS140_TRUE@ int/dsa-keygen-fips186.lo \ @ENABLE_FIPS140_TRUE@ int/dsa-validate.lo int/provable-prime.lo \ @ENABLE_FIPS140_TRUE@ int/drbg-aes.lo int/rsa-keygen-fips186.lo -am_libcrypto_la_OBJECTS = pk.lo mpi.lo mac.lo cipher.lo init.lo egd.lo \ +am_libcrypto_la_OBJECTS = pk.lo mpi.lo mac.lo cipher.lo init.lo \ rnd-common.lo rnd.lo $(am__objects_1) libcrypto_la_OBJECTS = $(am_libcrypto_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) @@ -1279,8 +1279,8 @@ AM_CPPFLAGS = -I$(srcdir)/int -I$(srcdir)/../../gl \ -I$(builddir)/../includes -I$(builddir)/../../gl \ -I$(srcdir)/.. $(am__append_1) noinst_LTLIBRARIES = libcrypto.la -libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c init.c egd.c egd.h \ - gnettle.h rnd-common.h rnd-common.c rnd.c $(am__append_2) +libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c init.c gnettle.h \ + rnd-common.h rnd-common.c rnd.c $(am__append_2) all: all-am .SUFFIXES: @@ -1355,7 +1355,6 @@ distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cipher.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/egd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mac.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpi.Plo@am__quote@ diff --git a/lib/nettle/rnd-common.c b/lib/nettle/rnd-common.c index c69ff3b..80b5f32 100644 --- a/lib/nettle/rnd-common.c +++ b/lib/nettle/rnd-common.c @@ -139,7 +139,7 @@ void _rnd_system_entropy_deinit(void) #include #include #include -#include "egd.h" +//#include "egd.h" static int _gnutls_urandom_fd = -1; static mode_t _gnutls_urandom_fd_mode = 0; @@ -208,6 +208,7 @@ static int _rnd_get_system_entropy_urandom(void* _rnd, size_t size) return 0; } +#if 0 static int _rnd_get_system_entropy_egd(void* _rnd, size_t size) { @@ -232,6 +233,7 @@ int _rnd_get_system_entropy_egd(void* _rnd, size_t size) return 0; } +#endif int _rnd_system_entropy_check(void) { @@ -268,6 +270,7 @@ int _rnd_system_entropy_init(void) return 0; fallback: +#if 0 _gnutls_urandom_fd = _rndegd_connect_socket(); if (_gnutls_urandom_fd < 0) { _gnutls_debug_log("Cannot open egd socket!\n"); @@ -281,7 +284,7 @@ fallback: } _rnd_get_system_entropy = _rnd_get_system_entropy_egd; - +#endif return 0; } opendht-1.8.1/MSVC/contrib/src/gnutls/gnutls-uwp.patch000066400000000000000000000422261341145056700226570ustar00rootroot00000000000000--- a/SMP/libgnutls.vcxproj +++ b/SMP/libgnutls.vcxproj @@ -743,91 +744,91 @@ - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgnutlsd Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgnutlsd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gnutlsd false Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gnutlsd false Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gnutlsd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ false Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gnutlsd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ false Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgnutls Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgnutls Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgnutls - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libgnutls - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gnutls Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gnutls Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gnutls - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ gnutls - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean @@ -1834,7 +1834,7 @@ del /f /q $(OutDir)\licenses\gnutls.txt false Fast false - HAVE_CONFIG_H;inline=__inline;ASN1_BUILDING;ASN1_STATIC;LOCALEDIR=".";__func__=__FUNCTION__;ASM_X86;ASM_X86_64;_WIN32_WINNT=0x0600;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + RING_UWP;HAVE_WIN32_LOCKS;HAVE_CONFIG_H;inline=__inline;ASN1_BUILDING;ASN1_STATIC;LOCALEDIR=".";__func__=__FUNCTION__;ASM_X86_64;_WIN32_WINNT=0x0600;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) .\;.\lib;..\lib;..\lib\accelerated;..\lib\auth;..\lib\ext;..\lib\extras;..\lib\minitasn1;..\lib\nettle;..\lib\nettle\int;..\lib\openpgp;..\lib\opencdk;..\lib\x509;..\lib\includes;..\gl;$(OutDir)\include;..\lib\accelerated\x86;$(ProjectDir)\..\..\prebuilt\include;%(AdditionalIncludeDirectories) false 4996;4244;4018;4146;4267;4028;4101;4020;4047;4024;4005;4311;4312;4334;4116;4090;%(DisableSpecificWarnings) @@ -1850,7 +1850,7 @@ del /f /q $(OutDir)\licenses\gnutls.txt $(OutDir)\lib\x64\$(TargetName)$(TargetExt) MachineX64 Windows - Crypt32.lib;Ws2_32.lib;libzlib.lib;libiconv.lib;libhogweed.lib;libgmp.lib;libnettle.lib;%(AdditionalDependencies) + bcrypt.lib;Ws2_32.lib;libzlib.lib;libiconv.lib;libhogweed.lib;libgmp.lib;libnettle.lib;%(AdditionalDependencies) $(OutDir)\lib\x64\;$(ProjectDir)\..\..\prebuilt\lib\x64\;%(AdditionalLibraryDirectories) /IGNORE:4006,4221,4042 %(AdditionalOptions) --- a/lib/nettle/rnd-common.c +++ b/lib/nettle/rnd-common.c @@ -45,6 +45,7 @@ #include #include #include +#include /* gnulib wants to claim strerror even if it cannot provide it. WTF */ #undef strerror @@ -88,16 +89,25 @@ void _rnd_get_event(struct event_st *e) #include static HCRYPTPROV device_fd = 0; +static BCRYPT_ALG_HANDLE bdevice_fd = 0; static int _rnd_get_system_entropy_win32(void* rnd, size_t size) { +#ifndef RING_UWP if (!CryptGenRandom(device_fd, (DWORD) size, rnd)) { _gnutls_debug_log("Error in CryptGenRandom: %d\n", (int)GetLastError()); return GNUTLS_E_RANDOM_DEVICE_ERROR; } - +#else + NTSTATUS ret = BCryptGenRandom(bdevice_fd, rnd, (ULONG) size, 0); + if (!(BCRYPT_SUCCESS(ret))) { + _gnutls_debug_log("Error in BCryptGenRandom: %d\n", + (int)GetLastError()); + return GNUTLS_E_RANDOM_DEVICE_ERROR; + } +#endif return 0; } @@ -111,7 +121,7 @@ int _rnd_system_entropy_check(void) int _rnd_system_entropy_init(void) { int old; - +#ifndef RING_UWP if (!CryptAcquireContext (&device_fd, NULL, NULL, PROV_RSA_FULL, CRYPT_SILENT | CRYPT_VERIFYCONTEXT)) { @@ -119,13 +129,26 @@ int _rnd_system_entropy_init(void) ("error in CryptAcquireContext!\n"); return GNUTLS_E_RANDOM_DEVICE_ERROR; } - +#else + NTSTATUS ret = BCryptOpenAlgorithmProvider(&bdevice_fd, + BCRYPT_RNG_ALGORITHM, MS_PRIMITIVE_PROVIDER, + 0); + if (!(BCRYPT_SUCCESS(ret))) { + _gnutls_debug_log + ("error in BCryptOpenAlgorithmProvider!\n"); + return GNUTLS_E_RANDOM_DEVICE_ERROR; + } +#endif return 0; } void _rnd_system_entropy_deinit(void) { +#ifndef RING_UWP CryptReleaseContext(device_fd, 0); +#else + BCryptCloseAlgorithmProvider(bdevice_fd, 0); +#endif } #else /* POSIX */ --- a/lib/opencdk/misc.c +++ b/lib/opencdk/misc.c @@ -34,7 +34,6 @@ #include #include - u32 _cdk_buftou32(const byte * buf) { u32 u; @@ -149,6 +148,13 @@ int _cdk_check_args(int overwrite, const char *in, const char *out) } #ifdef _WIN32 +#if (_WIN32_WINNT >= 0x0600) +FILE *_cdk_tmpfile(void) +{ + return NULL; +} +#else + #include #include @@ -183,6 +189,7 @@ FILE *_cdk_tmpfile(void) _close(fd); return NULL; } +#endif /*_WIN32*/ #else FILE *_cdk_tmpfile(void) { --- a/lib/system-keys-win.c +++ b/lib/system-keys-win.c @@ -20,9 +20,10 @@ // Before including any Windows header we need to set _WIN32_WINNT to Vista // (or higher) so that the NCRYPT stuff can be used. -#if _WIN32_WINNT < 0x600 +#define _WIN32_WINNT 0x0A00 +#if _WIN32_WINNT < 0x0600 #undef _WIN32_WINNT -#define _WIN32_WINNT 0x600 +#define _WIN32_WINNT 0x0600 #endif @@ -1075,7 +1076,11 @@ int _gnutls_system_key_init(void) int ret; #ifdef DYN_NCRYPT - ncrypt_lib = LoadLibraryA("ncrypt.dll"); +#if (_WIN32_WINNT < 0x0A00) + ncrypt_lib = LoadLibrary("ncrypt.dll"); +#else + ncrypt_lib = LoadPackagedLibrary("ncrypt.dll", 0); +#endif if (ncrypt_lib == NULL) { return gnutls_assert_val(GNUTLS_E_CRYPTO_INIT_FAILED); } --- a/lib/system-keys-win.c +++ b/lib/system-keys-win.c @@ -396,7 +396,11 @@ _gnutls_privkey_import_system_url(gnutls_privkey_t pkey, blob.cbData = id_size; blob.pbData = id; - store = CertOpenSystemStore(0, "MY"); + store = CertOpenStore( CERT_STORE_PROV_SYSTEM_A, + X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, + 0, + CERT_SYSTEM_STORE_CURRENT_USER, + (const void*)"MY"); if (store == NULL) { gnutls_assert(); ret = GNUTLS_E_FILE_ERROR; @@ -535,7 +539,11 @@ _gnutls_x509_crt_import_system_url(gnutls_x509_crt_t crt, const char *url) blob.cbData = id_size; blob.pbData = id; - store = CertOpenSystemStore(0, "MY"); + store = CertOpenStore( CERT_STORE_PROV_SYSTEM_A, + X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, + 0, + CERT_SYSTEM_STORE_CURRENT_USER, + (const void*)"MY"); if (store == NULL) { gnutls_assert(); ret = GNUTLS_E_FILE_ERROR; @@ -776,7 +784,11 @@ gnutls_system_key_iter_get_info(gnutls_system_key_iter_t *iter, if (*iter == NULL) return gnutls_assert_val(GNUTLS_E_MEMORY_ERROR); - (*iter)->store = CertOpenSystemStore(0, "MY"); + (*iter)->store = CertOpenStore( CERT_STORE_PROV_SYSTEM_A, + X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, + 0, + CERT_SYSTEM_STORE_CURRENT_USER, + (const void*)"MY"); if ((*iter)->store == NULL) { gnutls_free(*iter); *iter = NULL; @@ -841,7 +853,11 @@ int gnutls_system_key_delete(const char *cert_url, const char *key_url) blob.cbData = id_size; blob.pbData = id; - store = CertOpenSystemStore(0, "MY"); + store = CertOpenStore( CERT_STORE_PROV_SYSTEM_A, + X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, + 0, + CERT_SYSTEM_STORE_CURRENT_USER, + (const void*)"MY"); if (store != NULL) { do { cert = CertFindCertificateInStore(store, --- a/lib/system.c +++ b/lib/system.c @@ -446,9 +446,17 @@ int add_system_trust(gnutls_x509_trust_list_t list, unsigned int tl_flags, gnutls_datum_t data; if (i == 0) - store = CertOpenSystemStore(0, "ROOT"); + store = CertOpenStore( CERT_STORE_PROV_SYSTEM_A, + X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, + 0, + CERT_SYSTEM_STORE_CURRENT_USER, + (const void*)"ROOT"); else - store = CertOpenSystemStore(0, "CA"); + store = CertOpenStore( CERT_STORE_PROV_SYSTEM_A, + X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, + 0, + CERT_SYSTEM_STORE_CURRENT_USER, + (const void*)"CA"); if (store == NULL) return GNUTLS_E_FILE_ERROR; --- a/lib/accelerated/x86/x86-common.c +++ b/lib/accelerated/x86/x86-common.c @@ -652,6 +652,7 @@ void register_x86_intel_crypto(unsigned capabilities) void register_x86_crypto(void) { +#ifndef RING_UWP unsigned capabilities = 0; char *p; p = secure_getenv("GNUTLS_CPUID_OVERRIDE"); @@ -663,5 +664,7 @@ void register_x86_crypto(void) #ifdef ENABLE_PADLOCK register_x86_padlock_crypto(capabilities); #endif +#endif + register_x86_intel_crypto(0); } --- a/lib/gnutls_global.c +++ b/lib/gnutls_global.c @@ -240,7 +240,9 @@ int gnutls_global_init(void) _gnutls_switch_lib_state(LIB_STATE_INIT); +#ifndef RING_UWP e = secure_getenv("GNUTLS_DEBUG_LEVEL"); +#endif if (e != NULL) { level = atoi(e); gnutls_global_set_log_level(level); @@ -473,8 +475,10 @@ const char *e; if (_gnutls_global_init_skip() != 0) return; +#ifndef RING_UWP e = secure_getenv("GNUTLS_NO_EXPLICIT_INIT"); - if (e != NULL) { +#endif + if (e != NULL) { ret = atoi(e); if (ret == 1) return; @@ -494,7 +498,9 @@ static void _DESTRUCTOR lib_deinit(void) if (_gnutls_global_init_skip() != 0) return; +#ifndef RING_UWP e = secure_getenv("GNUTLS_NO_EXPLICIT_INIT"); +#endif if (e != NULL) { int ret = atoi(e); if (ret == 1) --- a/lib/gnutls_kx.c +++ b/lib/gnutls_kx.c @@ -105,7 +105,9 @@ static void write_nss_key_log(gnutls_session_t session, const gnutls_datum_t *pr if (!checked_env) { checked_env = 1; +#ifndef RING_UWP keylogfile = secure_getenv("SSLKEYLOGFILE"); +#endif } if (keylogfile == NULL) --- a/lib/system.c +++ b/lib/system.c @@ -340,7 +340,11 @@ void gnutls_system_global_deinit(void) */ int _gnutls_find_config_path(char *path, size_t max_size) { - const char *home_dir = secure_getenv("HOME"); +#ifndef RING_UWP + const char *home_dir = secure_getenv("HOME"); +#else + const char *home_dir = NULL; +#endif if (home_dir != NULL && home_dir[0] != 0) { snprintf(path, max_size, "%s/" CONFIG_PATH, home_dir); @@ -349,8 +353,13 @@ int _gnutls_find_config_path(char *path, size_t max_size) #ifdef _WIN32 if (home_dir == NULL || home_dir[0] == '\0') { +#ifndef RING_UWP const char *home_drive = getenv("HOMEDRIVE"); const char *home_path = getenv("HOMEPATH"); +#else + const char *home_drive = NULL; + const char *home_path = NULL; +#endif if (home_drive != NULL && home_path != NULL) { snprintf(path, max_size, "%s%s\\" CONFIG_PATH, home_drive, home_path); 2.8.1.windows.1 opendht-1.8.1/MSVC/contrib/src/gnutls/read-file-limits.h.patch000066400000000000000000000006631341145056700241060ustar00rootroot00000000000000--- gnutls/gl/read-file.c.orig 2012-03-06 20:59:29.600593329 -0500 +++ gnutls/gl/read-file.c 2012-03-06 20:59:44.568593328 -0500 @@ -35,6 +35,9 @@ /* Get errno. */ #include +/* Get SIZE_MAX */ +#include + /* Read a STREAM and return a newly allocated string with the content, and set *LENGTH to the length of the string. The string is zero-terminated, but the terminating zero byte is not counted in opendht-1.8.1/MSVC/contrib/src/iconv/000077500000000000000000000000001341145056700173055ustar00rootroot00000000000000opendht-1.8.1/MSVC/contrib/src/iconv/fetch_and_patch.bat000066400000000000000000000011541341145056700230700ustar00rootroot00000000000000set BUILD=%SRC%..\build set ICONV_VERSION=65ab92f7a1699ecc39e37fb81f66e5a42aaa35c4 set ICONV_URL=https://github.com/ShiftMediaProject/libiconv/archive/%ICONV_VERSION%.tar.gz mkdir %BUILD% if %USE_CACHE%==1 ( copy %CACHE_DIR%\%ICONV_VERSION%.tar.gz %cd% ) else ( wget %ICONV_URL% ) 7z -y x %ICONV_VERSION%.tar.gz && 7z -y x %ICONV_VERSION%.tar -o%BUILD% del %ICONV_VERSION%.tar && del %ICONV_VERSION%.tar.gz && del %BUILD%\pax_global_header rename %BUILD%\libiconv-%ICONV_VERSION% libiconv cd %BUILD%\libiconv git apply --reject --whitespace=fix %SRC%\iconv\libiconv-uwp.patch cd %SRC%opendht-1.8.1/MSVC/contrib/src/iconv/libiconv-uwp.patch000066400000000000000000000123571341145056700227540ustar00rootroot00000000000000--- a/SMP/libiconv.vcxproj +++ b/SMP/libiconv.vcxproj @@ -45,6 +45,7 @@ {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B} libiconv + 8.1 @@ -164,65 +165,65 @@ - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libiconvd Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libiconvd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ iconvd false Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ iconvd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ false Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libiconv Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libiconv Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libiconv - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libiconv - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ iconv Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ iconv - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean -- 2.8.1.windows.1 opendht-1.8.1/MSVC/contrib/src/msgpack/000077500000000000000000000000001341145056700176145ustar00rootroot00000000000000opendht-1.8.1/MSVC/contrib/src/msgpack/fetch_and_patch.bat000066400000000000000000000011731341145056700234000ustar00rootroot00000000000000set BUILD=%SRC%..\build set MSGPACK_VERSION=1df97bc37b363a340c5ad06c5cbcc53310aaff80 set MSGPACK_URL=https://github.com/msgpack/msgpack-c/archive/%MSGPACK_VERSION%.tar.gz mkdir %BUILD% if %USE_CACHE%==1 ( copy %CACHE_DIR%\%MSGPACK_VERSION%.tar.gz %cd% ) else ( wget %MSGPACK_URL% ) 7z -y x %MSGPACK_VERSION%.tar.gz && 7z -y x %MSGPACK_VERSION%.tar -o%BUILD% del %MSGPACK_VERSION%.tar && del %MSGPACK_VERSION%.tar.gz && del %BUILD%\pax_global_header rename %BUILD%\msgpack-c-%MSGPACK_VERSION% msgpack-c cd %BUILD%\msgpack-c git apply --reject --whitespace=fix %SRC%\msgpack\msgpack-uwp.patch cd %SRC%opendht-1.8.1/MSVC/contrib/src/msgpack/msgpack-uwp.patch000066400000000000000000000232751341145056700231040ustar00rootroot00000000000000--- /dev/null +++ b/msgpack_vc8.vcxproj @@ -0,0 +1,214 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + MessagePack + {122A2EA4-B283-4241-9655-786DE78283B2} + MessagePack + Win32Proj + 8.1 + + + + StaticLibrary + v140 + Unicode + false + + + StaticLibrary + v140 + Unicode + false + + + StaticLibrary + v140 + Unicode + + + StaticLibrary + v140 + Unicode + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>14.0.25123.0 + + + $(ProjectDir)..\ + $(Configuration)\ + msgpackd + + + msgpackd + $(ProjectDir)..\ + $(Configuration)\ + + + $(ProjectDir)..\ + $(Configuration)\ + msgpack + + + msgpack + $(ProjectDir)..\ + $(Configuration)\ + + + + Disabled + .;include;%(AdditionalIncludeDirectories) + WIN32_NATIVE;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) + true + StackFrameRuntimeCheck + MultiThreadedDebugDLL + + Level3 + EditAndContinue + + + $(OutDir)\lib\x86\$(TargetName)$(TargetExt) + + + mkdir $(OutDir)\include + +mkdir $(OutDir)\include\msgpack + +copy include\*.h $(OutDir)\include\ + +copy include\*.hpp $(OutDir)\include\ +xcopy /S /Y include\msgpack\*.h $(OutDir)\include\msgpack +xcopy /S /Y include\msgpack\*.hpp $(OutDir)\include\msgpack + + + + + + Disabled + .;include;%(AdditionalIncludeDirectories) + WIN32_NATIVE;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) + StackFrameRuntimeCheck + MultiThreadedDebugDLL + + + Level3 + ProgramDatabase + + + $(OutDir)\lib\x64\$(TargetName)$(TargetExt) + + + mkdir $(OutDir)\include + +mkdir $(OutDir)\include\msgpack + +copy include\*.h $(OutDir)\include\ + +copy include\*.hpp $(OutDir)\include\ +xcopy /S /Y include\msgpack\*.h $(OutDir)\include\msgpack +xcopy /S /Y include\msgpack\*.hpp $(OutDir)\include\msgpack + + + + + + .;include;%(AdditionalIncludeDirectories) + WIN32_NATIVE;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) + MultiThreadedDLL + + Level3 + ProgramDatabase + $(OutDir)\lib\x86\$(TargetName).pdb + + + $(OutDir)\lib\x86\$(TargetName)$(TargetExt) + + + + mkdir $(OutDir)\include + +mkdir $(OutDir)\include\msgpack + +copy include\*.h $(OutDir)\include\ + +copy include\*.hpp $(OutDir)\include\ +xcopy /S /Y include\msgpack\*.h $(OutDir)\include\msgpack +xcopy /S /Y include\msgpack\*.hpp $(OutDir)\include\msgpack + + + + + + .;include;%(AdditionalIncludeDirectories) + MSGPACK_USE_CPP03;WIN32_NATIVE;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) + MultiThreadedDLL + + + Level3 + ProgramDatabase + $(OutDir)\lib\x64\$(TargetName).pdb + + + $(OutDir)\lib\x64\$(TargetName)$(TargetExt) + + + + mkdir $(OutDir)\include + +mkdir $(OutDir)\include\msgpack + +copy include\*.h $(OutDir)\include\ + +copy include\*.hpp $(OutDir)\include\ +xcopy /S /Y include\msgpack\*.h $(OutDir)\include\msgpack +xcopy /S /Y include\msgpack\*.hpp $(OutDir)\include\msgpack + + + + + + + + + + + + + + + + + \ No newline at end of file -- 2.8.1.windows.1 opendht-1.8.1/MSVC/contrib/src/nettle/000077500000000000000000000000001341145056700174625ustar00rootroot00000000000000opendht-1.8.1/MSVC/contrib/src/nettle/fetch_and_patch.bat000066400000000000000000000011551341145056700232460ustar00rootroot00000000000000set BUILD=%SRC%..\build set NETTLE_VERSION=4e0b2723b76d4163fa37b2b456d41534154ec97c set NETTLE_URL=https://github.com/ShiftMediaProject/nettle/archive/%NETTLE_VERSION%.tar.gz mkdir %BUILD% if %USE_CACHE%==1 ( copy %CACHE_DIR%\%NETTLE_VERSION%.tar.gz %cd% ) else ( wget %NETTLE_URL% ) 7z -y x %NETTLE_VERSION%.tar.gz && 7z -y x %NETTLE_VERSION%.tar -o%BUILD% del %NETTLE_VERSION%.tar && del %NETTLE_VERSION%.tar.gz && del %BUILD%\pax_global_header rename %BUILD%\nettle-%NETTLE_VERSION% nettle cd %BUILD%\nettle git apply --reject --whitespace=fix %SRC%\nettle\nettle-uwp.patch cd %SRC%opendht-1.8.1/MSVC/contrib/src/nettle/nettle-uwp.patch000066400000000000000000000312211341145056700226060ustar00rootroot00000000000000--- a/SMP/libhogweed.vcxproj +++ b/SMP/libhogweed.vcxproj @@ -242,6 +242,7 @@ {200F3D3C-8B84-46D8-953A-6C0EBD283B5C} libhogweed + 8.1 @@ -405,91 +406,91 @@ - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libhogweedd Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libhogweedd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ hogweedd false Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ hogweedd false Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ hogweedd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ false Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ hogweedd - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ false Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libhogweed Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libhogweed Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libhogweed - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libhogweed - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ hogweed Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ hogweed Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ hogweed - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ hogweed - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean --- a/SMP/libnettle.vcxproj +++ b/SMP/libnettle.vcxproj @@ -278,6 +278,7 @@ {070FEF2B-0C3F-4F33-9D3C-53C7330BF518} libnettle + 8.1 @@ -397,65 +398,65 @@ - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libnettled Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libnettled - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ nettled false Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ nettled - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ false Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libnettle Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libnettle Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libnettle - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libnettle - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ nettle Clean - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ nettle - $(ProjectDir)..\..\..\msvc\ + $(ProjectDir)..\..\ Clean -- 2.8.1.windows.1 opendht-1.8.1/MSVC/contrib/src/zlib/000077500000000000000000000000001341145056700171275ustar00rootroot00000000000000opendht-1.8.1/MSVC/contrib/src/zlib/fetch_and_patch.bat000066400000000000000000000011151341145056700227070ustar00rootroot00000000000000set BUILD=%SRC%..\build set ZLIB_VERSION=3a062eb61d0c3d4aa30851cd1a6597b977b56597 set ZLIB_URL=https://github.com/ShiftMediaProject/zlib/archive/%ZLIB_VERSION%.tar.gz mkdir %BUILD% if %USE_CACHE%==1 ( copy %CACHE_DIR%\%ZLIB_VERSION%.tar.gz %cd% ) else ( wget %ZLIB_URL% ) 7z -y x %ZLIB_VERSION%.tar.gz && 7z -y x %ZLIB_VERSION%.tar -o%BUILD% del %ZLIB_VERSION%.tar && del %ZLIB_VERSION%.tar.gz && del %BUILD%\pax_global_header rename %BUILD%\zlib-%ZLIB_VERSION% zlib cd %BUILD%\zlib git apply --reject --whitespace=fix %SRC%\zlib\zlib-uwp.patch cd %SRC%opendht-1.8.1/MSVC/contrib/src/zlib/zlib-uwp.patch000066400000000000000000000121731341145056700217250ustar00rootroot00000000000000--- a/SMP/libzlib.vcxproj +++ b/SMP/libzlib.vcxproj @@ -45,6 +45,7 @@ {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32} libzlib + 8.1 @@ -165,63 +166,63 @@ - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libzlibd Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libzlib Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libzlib Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ zlib Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ zlibd false Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libzlibd Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libzlib Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ libzlib Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ zlib Clean - $(ProjectDir)..\..\..\msvc\ - $(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ + $(ProjectDir)..\..\ + $(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\ zlibd false Clean -- 2.8.1.windows.1 opendht-1.8.1/MSVC/dhtchat.vcxproj000066400000000000000000000242661341145056700170060ustar00rootroot00000000000000 Debug Win32 Release Win32 Debug x64 Release x64 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA} dhtchat 8.1 Application true v140 MultiByte Application false v140 true MultiByte Application true v140 MultiByte Application false v140 true MultiByte $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectDir)..\..\bin\x64 Level3 Disabled true ..\..\include;..\..\msgpack-c\include;$(ProjectDir) _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273; $(IntDir)vc$(PlatformToolsetVersion).pdb crypt32.lib;blake.lib;argon.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)..\..\lib\x64 /ignore:4049 %(AdditionalOptions) Level3 Disabled true ..\..\include;..\..\msgpack-c\include;$(ProjectDir) _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273; $(IntDir)vc$(PlatformToolsetVersion).pdb crypt32.lib;blake.lib;argon.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)..\..\lib\x64 /ignore:4049 %(AdditionalOptions) Level3 MaxSpeed true true true ..\..\include;..\..\msgpack-c\include;$(ProjectDir) _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273; $(IntDir)vc$(PlatformToolsetVersion).pdb true true crypt32.lib;blake.lib;argon.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)..\..\lib\x64 /ignore:4049 %(AdditionalOptions) Level3 MaxSpeed true true true ..\..\include;$(ProjectDir)contrib\build\include;$(ProjectDir)contrib\build\msgpack-c\include;$(ProjectDir) _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273; $(IntDir)vc$(PlatformToolsetVersion).pdb true true crypt32.lib;Argon2Ref.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)contrib\build\lib\x64;$(ProjectDir)..\..\lib\x64;$(ProjectDir)vs2015\build /ignore:4049 %(AdditionalOptions) $(OutDir)$(TargetName)$(TargetExt) opendht-1.8.1/MSVC/dhtnode.vcxproj000066400000000000000000000241521341145056700170060ustar00rootroot00000000000000 Debug Win32 Release Win32 Debug x64 Release x64 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5} dhtnode 8.1 Application true v140 MultiByte Application false v140 true MultiByte Application true v140 MultiByte Application false v140 true MultiByte $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectDir)..\..\bin\x64 Level3 Disabled true ..\..\include;..\..\msgpack-c\include;$(ProjectDir) WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273;4101; $(IntDir)vc$(PlatformToolsetVersion).pdb crypt32.lib;blake.lib;argon.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)..\..\lib\x64 /ignore:4049 %(AdditionalOptions) Level3 Disabled true ..\..\include;..\..\msgpack-c\include;$(ProjectDir) WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273;4101; $(IntDir)vc$(PlatformToolsetVersion).pdb crypt32.lib;blake.lib;argon.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)..\..\lib\x64 /ignore:4049 %(AdditionalOptions) Level3 MaxSpeed true true true ..\..\include;..\..\msgpack-c\include;$(ProjectDir) WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273;4101; $(IntDir)vc$(PlatformToolsetVersion).pdb true true crypt32.lib;blake.lib;argon.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)..\..\lib\x64 /ignore:4049 %(AdditionalOptions) Level3 MaxSpeed true true true ..\..\include;$(ProjectDir)contrib\build\include;$(ProjectDir)contrib\build\msgpack-c\include;$(ProjectDir) WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273;4101; $(IntDir)vc$(PlatformToolsetVersion).pdb true true crypt32.lib;Argon2Ref.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)contrib\build\lib\x64;$(ProjectDir)..\..\lib\x64;$(ProjectDir)vs2015\build /ignore:4049 %(AdditionalOptions) $(OutDir)$(TargetName)$(TargetExt) opendht-1.8.1/MSVC/dhtscanner.vcxproj000066400000000000000000000243201341145056700175070ustar00rootroot00000000000000 Debug Win32 Release Win32 Debug x64 Release x64 {78443BCD-4689-4007-A246-F8F34B27F561} dhtscanner 8.1 Application true v140 MultiByte Application false v140 true MultiByte Application true v140 MultiByte Application false v140 true MultiByte $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectName)\$(Platform)\$(Configuration)\ $(ProjectDir)..\..\bin\x64 Level3 Disabled true ..\..\include;..\..\msgpack-c\include;$(ProjectDir) _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273;4101; $(IntDir)vc$(PlatformToolsetVersion).pdb crypt32.lib;blake.lib;argon.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)..\..\lib\x64 /ignore:4049 %(AdditionalOptions) Level3 Disabled true ..\..\include;..\..\msgpack-c\include;$(ProjectDir) _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273;4101; $(IntDir)vc$(PlatformToolsetVersion).pdb crypt32.lib;blake.lib;argon.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)..\..\lib\x64 /ignore:4049 %(AdditionalOptions) Level3 MaxSpeed true true true ..\..\include;..\..\msgpack-c\include;$(ProjectDir) _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273;4101; $(IntDir)vc$(PlatformToolsetVersion).pdb true true crypt32.lib;blake.lib;argon.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)..\..\lib\x64 /ignore:4049 %(AdditionalOptions) Level3 MaxSpeed true true true ..\..\include;$(ProjectDir)contrib\build\include;$(ProjectDir)contrib\build\msgpack-c\include;$(ProjectDir) _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4267;4244;4800;4273;4101; $(IntDir)vc$(PlatformToolsetVersion).pdb true true crypt32.lib;Argon2Ref.lib;libgnutls.lib;opendht.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) $(ProjectDir)contrib\build\lib\x64;$(ProjectDir)..\..\lib\x64;$(ProjectDir)vs2015\build /ignore:4049 %(AdditionalOptions) $(OutDir)$(TargetName)$(TargetExt) opendht-1.8.1/MSVC/fetch_deps.bat000066400000000000000000000000561341145056700165350ustar00rootroot00000000000000@echo on call contrib\src\fetch_and_patch.batopendht-1.8.1/MSVC/opendht.sln000066400000000000000000000467321341145056700161330ustar00rootroot00000000000000 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25123.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "opendht", "opendht.vcxproj", "{711397CE-E5D5-467D-9457-8716C047E50C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 DebugDLL|x64 = DebugDLL|x64 DebugDLL|x86 = DebugDLL|x86 DebugDLLStaticDeps|x64 = DebugDLLStaticDeps|x64 DebugDLLStaticDeps|x86 = DebugDLLStaticDeps|x86 Release|x64 = Release|x64 Release|x86 = Release|x86 ReleaseDLL|x64 = ReleaseDLL|x64 ReleaseDLL|x86 = ReleaseDLL|x86 ReleaseDLLStaticDeps|x64 = ReleaseDLLStaticDeps|x64 ReleaseDLLStaticDeps|x86 = ReleaseDLLStaticDeps|x86 ReleaseLTO|x64 = ReleaseLTO|x64 ReleaseLTO|x86 = ReleaseLTO|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {711397CE-E5D5-467D-9457-8716C047E50C}.Debug|x64.ActiveCfg = Debug|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.Debug|x64.Build.0 = Debug|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.Debug|x86.ActiveCfg = Debug|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.Debug|x86.Build.0 = Debug|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.DebugDLL|x64.ActiveCfg = Debug|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.DebugDLL|x64.Build.0 = Debug|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.DebugDLL|x86.ActiveCfg = Debug|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.DebugDLL|x86.Build.0 = Debug|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.DebugDLLStaticDeps|x64.ActiveCfg = Debug|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.DebugDLLStaticDeps|x64.Build.0 = Debug|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.DebugDLLStaticDeps|x86.ActiveCfg = Debug|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.DebugDLLStaticDeps|x86.Build.0 = Debug|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.Release|x64.ActiveCfg = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.Release|x64.Build.0 = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.Release|x86.ActiveCfg = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.Release|x86.Build.0 = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseDLL|x64.ActiveCfg = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseDLL|x64.Build.0 = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseDLL|x86.ActiveCfg = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseDLL|x86.Build.0 = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseDLLStaticDeps|x64.ActiveCfg = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseDLLStaticDeps|x64.Build.0 = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseDLLStaticDeps|x86.ActiveCfg = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseDLLStaticDeps|x86.Build.0 = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseLTO|x64.ActiveCfg = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseLTO|x64.Build.0 = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseLTO|x86.ActiveCfg = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseLTO|x86.Build.0 = Release|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Debug|x64.ActiveCfg = Debug|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Debug|x64.Build.0 = Debug|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Debug|x86.ActiveCfg = Debug|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Debug|x86.Build.0 = Debug|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.DebugDLL|x64.Build.0 = DebugDLL|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.DebugDLL|x86.ActiveCfg = DebugDLL|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.DebugDLL|x86.Build.0 = DebugDLL|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.DebugDLLStaticDeps|x64.ActiveCfg = DebugDLL|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.DebugDLLStaticDeps|x64.Build.0 = DebugDLL|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.DebugDLLStaticDeps|x86.ActiveCfg = DebugDLL|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.DebugDLLStaticDeps|x86.Build.0 = DebugDLL|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Release|x64.ActiveCfg = Release|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Release|x64.Build.0 = Release|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Release|x86.ActiveCfg = Release|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Release|x86.Build.0 = Release|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseDLL|x86.ActiveCfg = ReleaseDLL|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseDLL|x86.Build.0 = ReleaseDLL|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseDLLStaticDeps|x64.ActiveCfg = ReleaseDLL|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseDLLStaticDeps|x64.Build.0 = ReleaseDLL|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseDLLStaticDeps|x86.ActiveCfg = ReleaseDLL|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseDLLStaticDeps|x86.Build.0 = ReleaseDLL|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseLTO|x64.ActiveCfg = ReleaseLTO|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseLTO|x64.Build.0 = ReleaseLTO|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseLTO|x86.ActiveCfg = ReleaseLTO|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseLTO|x86.Build.0 = ReleaseLTO|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.Debug|x64.ActiveCfg = Debug|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.Debug|x64.Build.0 = Debug|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.Debug|x86.ActiveCfg = Debug|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.Debug|x86.Build.0 = Debug|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.DebugDLL|x64.Build.0 = DebugDLL|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.DebugDLL|x86.ActiveCfg = DebugDLL|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.DebugDLL|x86.Build.0 = DebugDLL|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.DebugDLLStaticDeps|x64.ActiveCfg = DebugDLLStaticDeps|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.DebugDLLStaticDeps|x64.Build.0 = DebugDLLStaticDeps|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.DebugDLLStaticDeps|x86.ActiveCfg = DebugDLLStaticDeps|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.DebugDLLStaticDeps|x86.Build.0 = DebugDLLStaticDeps|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.Release|x64.ActiveCfg = Release|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.Release|x64.Build.0 = Release|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.Release|x86.ActiveCfg = Release|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.Release|x86.Build.0 = Release|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseDLL|x86.ActiveCfg = ReleaseDLL|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseDLL|x86.Build.0 = ReleaseDLL|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseDLLStaticDeps|x64.ActiveCfg = ReleaseDLLStaticDeps|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseDLLStaticDeps|x64.Build.0 = ReleaseDLLStaticDeps|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseDLLStaticDeps|x86.ActiveCfg = ReleaseDLLStaticDeps|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseDLLStaticDeps|x86.Build.0 = ReleaseDLLStaticDeps|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseLTO|x64.ActiveCfg = ReleaseLTO|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseLTO|x64.Build.0 = ReleaseLTO|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseLTO|x86.ActiveCfg = ReleaseLTO|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseLTO|x86.Build.0 = ReleaseLTO|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Debug|x64.ActiveCfg = Debug|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Debug|x64.Build.0 = Debug|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Debug|x86.ActiveCfg = Debug|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Debug|x86.Build.0 = Debug|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.DebugDLL|x64.Build.0 = DebugDLL|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.DebugDLL|x86.ActiveCfg = DebugDLL|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.DebugDLL|x86.Build.0 = DebugDLL|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.DebugDLLStaticDeps|x64.ActiveCfg = DebugDLL|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.DebugDLLStaticDeps|x64.Build.0 = DebugDLL|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.DebugDLLStaticDeps|x86.ActiveCfg = DebugDLL|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.DebugDLLStaticDeps|x86.Build.0 = DebugDLL|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Release|x64.ActiveCfg = Release|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Release|x64.Build.0 = Release|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Release|x86.ActiveCfg = Release|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Release|x86.Build.0 = Release|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseDLL|x86.ActiveCfg = ReleaseDLL|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseDLL|x86.Build.0 = ReleaseDLL|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseDLLStaticDeps|x64.ActiveCfg = ReleaseDLL|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseDLLStaticDeps|x64.Build.0 = ReleaseDLL|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseDLLStaticDeps|x86.ActiveCfg = ReleaseDLL|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseDLLStaticDeps|x86.Build.0 = ReleaseDLL|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseLTO|x64.ActiveCfg = ReleaseLTO|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseLTO|x64.Build.0 = ReleaseLTO|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseLTO|x86.ActiveCfg = ReleaseLTO|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseLTO|x86.Build.0 = ReleaseLTO|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Debug|x64.ActiveCfg = Debug|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Debug|x64.Build.0 = Debug|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Debug|x86.ActiveCfg = Debug|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Debug|x86.Build.0 = Debug|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.DebugDLL|x64.Build.0 = DebugDLL|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.DebugDLL|x86.ActiveCfg = DebugDLL|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.DebugDLL|x86.Build.0 = DebugDLL|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.DebugDLLStaticDeps|x64.ActiveCfg = DebugDLLStaticDeps|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.DebugDLLStaticDeps|x64.Build.0 = DebugDLLStaticDeps|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.DebugDLLStaticDeps|x86.ActiveCfg = DebugDLLStaticDeps|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.DebugDLLStaticDeps|x86.Build.0 = DebugDLLStaticDeps|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Release|x64.ActiveCfg = Release|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Release|x64.Build.0 = Release|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Release|x86.ActiveCfg = Release|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Release|x86.Build.0 = Release|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseDLL|x86.ActiveCfg = ReleaseDLL|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseDLL|x86.Build.0 = ReleaseDLL|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseDLLStaticDeps|x64.ActiveCfg = ReleaseDLLStaticDeps|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseDLLStaticDeps|x64.Build.0 = ReleaseDLLStaticDeps|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseDLLStaticDeps|x86.ActiveCfg = ReleaseDLLStaticDeps|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseDLLStaticDeps|x86.Build.0 = ReleaseDLLStaticDeps|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseLTO|x64.ActiveCfg = ReleaseLTO|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseLTO|x64.Build.0 = ReleaseLTO|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseLTO|x86.ActiveCfg = ReleaseLTO|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseLTO|x86.Build.0 = ReleaseLTO|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Debug|x64.ActiveCfg = Debug|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Debug|x64.Build.0 = Debug|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Debug|x86.ActiveCfg = Debug|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Debug|x86.Build.0 = Debug|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.DebugDLL|x64.Build.0 = DebugDLL|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.DebugDLL|x86.ActiveCfg = DebugDLL|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.DebugDLL|x86.Build.0 = DebugDLL|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.DebugDLLStaticDeps|x64.ActiveCfg = DebugDLL|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.DebugDLLStaticDeps|x64.Build.0 = DebugDLL|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.DebugDLLStaticDeps|x86.ActiveCfg = DebugDLL|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.DebugDLLStaticDeps|x86.Build.0 = DebugDLL|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Release|x64.ActiveCfg = Release|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Release|x64.Build.0 = Release|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Release|x86.ActiveCfg = Release|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Release|x86.Build.0 = Release|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseDLL|x86.ActiveCfg = ReleaseDLL|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseDLL|x86.Build.0 = ReleaseDLL|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseDLLStaticDeps|x64.ActiveCfg = ReleaseDLL|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseDLLStaticDeps|x64.Build.0 = ReleaseDLL|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseDLLStaticDeps|x86.ActiveCfg = ReleaseDLL|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseDLLStaticDeps|x86.Build.0 = ReleaseDLL|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseLTO|x64.ActiveCfg = ReleaseLTO|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseLTO|x64.Build.0 = ReleaseLTO|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseLTO|x86.ActiveCfg = ReleaseLTO|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseLTO|x86.Build.0 = ReleaseLTO|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Debug|x64.ActiveCfg = Debug|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Debug|x64.Build.0 = Debug|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Debug|x86.ActiveCfg = Debug|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Debug|x86.Build.0 = Debug|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.DebugDLL|x64.Build.0 = DebugDLL|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.DebugDLL|x86.ActiveCfg = DebugDLL|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.DebugDLL|x86.Build.0 = DebugDLL|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.DebugDLLStaticDeps|x64.ActiveCfg = DebugDLL|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.DebugDLLStaticDeps|x64.Build.0 = DebugDLL|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.DebugDLLStaticDeps|x86.ActiveCfg = DebugDLL|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.DebugDLLStaticDeps|x86.Build.0 = DebugDLL|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Release|x64.ActiveCfg = Release|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Release|x64.Build.0 = Release|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Release|x86.ActiveCfg = Release|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Release|x86.Build.0 = Release|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseDLL|x86.ActiveCfg = ReleaseDLL|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseDLL|x86.Build.0 = ReleaseDLL|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseDLLStaticDeps|x64.ActiveCfg = ReleaseDLL|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseDLLStaticDeps|x64.Build.0 = ReleaseDLL|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseDLLStaticDeps|x86.ActiveCfg = ReleaseDLL|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseDLLStaticDeps|x86.Build.0 = ReleaseDLL|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseLTO|x64.ActiveCfg = ReleaseLTO|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseLTO|x64.Build.0 = ReleaseLTO|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseLTO|x86.ActiveCfg = ReleaseLTO|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseLTO|x86.Build.0 = ReleaseLTO|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.Debug|x64.ActiveCfg = Debug|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.Debug|x64.Build.0 = Debug|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.Debug|x86.ActiveCfg = Debug|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.Debug|x86.Build.0 = Debug|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.DebugDLL|x64.ActiveCfg = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.DebugDLL|x64.Build.0 = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.DebugDLL|x86.ActiveCfg = Debug|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.DebugDLL|x86.Build.0 = Debug|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.DebugDLLStaticDeps|x64.ActiveCfg = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.DebugDLLStaticDeps|x64.Build.0 = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.DebugDLLStaticDeps|x86.ActiveCfg = Debug|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.DebugDLLStaticDeps|x86.Build.0 = Debug|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.Release|x64.ActiveCfg = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.Release|x64.Build.0 = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.Release|x86.ActiveCfg = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.Release|x86.Build.0 = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseDLL|x64.ActiveCfg = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseDLL|x64.Build.0 = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseDLL|x86.ActiveCfg = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseDLL|x86.Build.0 = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseDLLStaticDeps|x64.ActiveCfg = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseDLLStaticDeps|x64.Build.0 = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseDLLStaticDeps|x86.ActiveCfg = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseDLLStaticDeps|x86.Build.0 = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseLTO|x64.ActiveCfg = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseLTO|x64.Build.0 = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseLTO|x86.ActiveCfg = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseLTO|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal opendht-1.8.1/MSVC/opendht.vcxproj000066400000000000000000000321021341145056700170140ustar00rootroot00000000000000 Debug Win32 Release Win32 Debug x64 Release x64 {711397CE-E5D5-467D-9457-8716C047E50C} opendht 8.1 StaticLibrary true v140 MultiByte StaticLibrary false v140 false MultiByte StaticLibrary true v140 MultiByte StaticLibrary false v140 false MultiByte $(ProjectDir)..\..\ $(Platform)\$(Configuration)\ opendhtd $(ProjectDir)..\..\ $(Platform)\$(Configuration)\ opendht $(ProjectDir)..\..\ opendhtd $(ProjectDir)..\..\ opendht Level3 Disabled true ..\..\include;..\include;..\include\opendht;..\..\msgpack-c\include; _CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4800;4101;4267;4244;4503; -D_SCL_SECURE_NO_WARNINGS %(AdditionalOptions) false mkdir $(OutDir)\include mkdir $(OutDir)\include\opendht mkdir $(OutDir)\include\opendht\indexation copy ..\include\opendht\indexation\*.h $(OutDir)\include\opendht\indexation copy ..\include\opendht\*.h $(OutDir)\include\opendht copy ..\include\opendht.h $(OutDir)\include\ $(OutDir)\lib\x86\$(TargetName)$(TargetExt) Level3 Disabled true ..\..\include;..\include;..\include\opendht;..\..\msgpack-c\include; _CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4800;4101;4267;4244;4503; -D_SCL_SECURE_NO_WARNINGS %(AdditionalOptions) mkdir $(OutDir)\include mkdir $(OutDir)\include\opendht mkdir $(OutDir)\include\opendht\indexation copy ..\include\opendht\indexation\*.h $(OutDir)\include\opendht\indexation copy ..\include\opendht\*.h $(OutDir)\include\opendht copy ..\include\opendht.h $(OutDir)\include\ $(OutDir)\lib\x64\$(TargetName)$(TargetExt) Level3 MaxSpeed true true true ..\..\include;..\include;..\include\opendht;..\..\msgpack-c\include; _CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4800;4101;4267;4244;4503; -D_SCL_SECURE_NO_WARNINGS %(AdditionalOptions) $(OutDir)\lib\x86\$(TargetName).pdb true true mkdir $(OutDir)\include mkdir $(OutDir)\include\opendht mkdir $(OutDir)\include\opendht\indexation copy ..\include\opendht\indexation\*.h $(OutDir)\include\opendht\indexation copy ..\include\opendht\*.h $(OutDir)\include\opendht copy ..\include\opendht.h $(OutDir)\include\ $(OutDir)\lib\x86\$(TargetName)$(TargetExt) false Level3 Full true true true $(ProjectDir)contrib\build\include;$(ProjectDir)..\include;$(ProjectDir)..\include\opendht;$(ProjectDir)contrib\build\msgpack-c\include;$(ProjectDir)contrib\build\argon2\include;$(ProjectDir)..\..\include;$(ProjectDir)..\..\argon2\include _CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4800;4101;4267;4244;4503;4273; -D_SCL_SECURE_NO_WARNINGS %(AdditionalOptions) $(OutDir)\lib\x64\$(TargetName).pdb true true mkdir $(OutDir)\include mkdir $(OutDir)\include\opendht mkdir $(OutDir)\include\opendht\indexation copy ..\include\opendht\indexation\*.h $(OutDir)\include\opendht\indexation copy ..\include\opendht\*.h $(OutDir)\include\opendht copy ..\include\opendht.h $(OutDir)\include\ $(OutDir)\lib\x64\$(TargetName)$(TargetExt) false opendht-1.8.1/MSVC/opendht.vcxproj.filters000066400000000000000000000136511341145056700204730ustar00rootroot00000000000000 Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files\indexation Source Files Source Files Source Files Source Files Source Files Header Files Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht Header Files\opendht\indexation {be73d179-6cf2-4c05-8d91-53c8499a7134} {d1ab5bfe-3ab1-45ee-9324-b4b071887668} {939134d3-d5a2-4458-bca8-a10ea9042ea2} {0b46e2d0-4874-404c-bae3-fae8d49b85b8} {03bd5139-2ae5-41b0-a77b-944814e1b2b6} opendht-1.8.1/MSVC/opendht_deps.sln000066400000000000000000000403371341145056700171410ustar00rootroot00000000000000 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "opendht", "opendht.vcxproj", "{711397CE-E5D5-467D-9457-8716C047E50C}" ProjectSection(ProjectDependencies) = postProject {070FEF2B-0C3F-4F33-9D3C-53C7330BF518} = {070FEF2B-0C3F-4F33-9D3C-53C7330BF518} {122A2EA4-B283-4241-9655-786DE78283B2} = {122A2EA4-B283-4241-9655-786DE78283B2} {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2} = {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2} {6F610EE8-7F59-4191-AB88-F63843267C02} = {6F610EE8-7F59-4191-AB88-F63843267C02} EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dependencies", "dependencies", "{71A1A9EC-1104-4335-A87E-AF8749FD5B34}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libgmp", "contrib\build\gmp\SMP\libgmp.vcxproj", "{02B94302-23D6-43EF-8865-95CDE99D5DC2}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libgnutls", "contrib\build\gnutls\SMP\libgnutls.vcxproj", "{6F610EE8-7F59-4191-AB88-F63843267C02}" ProjectSection(ProjectDependencies) = postProject {02B94302-23D6-43EF-8865-95CDE99D5DC2} = {02B94302-23D6-43EF-8865-95CDE99D5DC2} {070FEF2B-0C3F-4F33-9D3C-53C7330BF518} = {070FEF2B-0C3F-4F33-9D3C-53C7330BF518} {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32} = {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32} {200F3D3C-8B84-46D8-953A-6C0EBD283B5C} = {200F3D3C-8B84-46D8-953A-6C0EBD283B5C} {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B} = {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libiconv", "contrib\build\libiconv\SMP\libiconv.vcxproj", "{CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libhogweed", "contrib\build\nettle\SMP\libhogweed.vcxproj", "{200F3D3C-8B84-46D8-953A-6C0EBD283B5C}" ProjectSection(ProjectDependencies) = postProject {02B94302-23D6-43EF-8865-95CDE99D5DC2} = {02B94302-23D6-43EF-8865-95CDE99D5DC2} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libnettle", "contrib\build\nettle\SMP\libnettle.vcxproj", "{070FEF2B-0C3F-4F33-9D3C-53C7330BF518}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libzlib", "contrib\build\zlib\SMP\libzlib.vcxproj", "{CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MessagePack", "contrib\build\msgpack-c\msgpack_vc8.vcxproj", "{122A2EA4-B283-4241-9655-786DE78283B2}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{296E2989-CF09-43AC-BBD2-BCF1A4B56D07}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dhtnode", "dhtnode.vcxproj", "{BF92AECF-AA1D-4B05-9D00-0247E92A24B5}" ProjectSection(ProjectDependencies) = postProject {711397CE-E5D5-467D-9457-8716C047E50C} = {711397CE-E5D5-467D-9457-8716C047E50C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dhtscanner", "dhtscanner.vcxproj", "{78443BCD-4689-4007-A246-F8F34B27F561}" ProjectSection(ProjectDependencies) = postProject {711397CE-E5D5-467D-9457-8716C047E50C} = {711397CE-E5D5-467D-9457-8716C047E50C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dhtchat", "dhtchat.vcxproj", "{8BE7F14D-B227-4D54-9105-7E5473F2D0BA}" ProjectSection(ProjectDependencies) = postProject {711397CE-E5D5-467D-9457-8716C047E50C} = {711397CE-E5D5-467D-9457-8716C047E50C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Argon2Ref", "contrib\build\argon2\vs2015\Argon2Ref\Argon2Ref.vcxproj", "{B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 Release|x64 = Release|x64 Release|x86 = Release|x86 ReleaseStatic|x64 = ReleaseStatic|x64 ReleaseStatic|x86 = ReleaseStatic|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {711397CE-E5D5-467D-9457-8716C047E50C}.Debug|x64.ActiveCfg = Debug|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.Debug|x64.Build.0 = Debug|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.Debug|x86.ActiveCfg = Debug|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.Debug|x86.Build.0 = Debug|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.Release|x64.ActiveCfg = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.Release|x64.Build.0 = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.Release|x86.ActiveCfg = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.Release|x86.Build.0 = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseStatic|x64.ActiveCfg = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseStatic|x64.Build.0 = Release|x64 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseStatic|x86.ActiveCfg = Release|Win32 {711397CE-E5D5-467D-9457-8716C047E50C}.ReleaseStatic|x86.Build.0 = Release|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Debug|x64.ActiveCfg = Debug|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Debug|x64.Build.0 = Debug|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Debug|x86.ActiveCfg = Debug|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Debug|x86.Build.0 = Debug|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Release|x64.ActiveCfg = Release|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Release|x64.Build.0 = Release|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Release|x86.ActiveCfg = Release|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.Release|x86.Build.0 = Release|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseStatic|x64.ActiveCfg = ReleaseLTO|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseStatic|x64.Build.0 = ReleaseLTO|x64 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseStatic|x86.ActiveCfg = ReleaseLTO|Win32 {02B94302-23D6-43EF-8865-95CDE99D5DC2}.ReleaseStatic|x86.Build.0 = ReleaseLTO|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.Debug|x64.ActiveCfg = Debug|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.Debug|x64.Build.0 = Debug|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.Debug|x86.ActiveCfg = Debug|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.Debug|x86.Build.0 = Debug|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.Release|x64.ActiveCfg = Release|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.Release|x64.Build.0 = Release|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.Release|x86.ActiveCfg = Release|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.Release|x86.Build.0 = Release|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseStatic|x64.ActiveCfg = ReleaseLTO|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseStatic|x64.Build.0 = ReleaseLTO|x64 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseStatic|x86.ActiveCfg = ReleaseLTO|Win32 {6F610EE8-7F59-4191-AB88-F63843267C02}.ReleaseStatic|x86.Build.0 = ReleaseLTO|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Debug|x64.ActiveCfg = Debug|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Debug|x64.Build.0 = Debug|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Debug|x86.ActiveCfg = Debug|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Debug|x86.Build.0 = Debug|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Release|x64.ActiveCfg = Release|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Release|x64.Build.0 = Release|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Release|x86.ActiveCfg = Release|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.Release|x86.Build.0 = Release|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseStatic|x64.ActiveCfg = ReleaseLTO|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseStatic|x64.Build.0 = ReleaseLTO|x64 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseStatic|x86.ActiveCfg = ReleaseLTO|Win32 {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B}.ReleaseStatic|x86.Build.0 = ReleaseLTO|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Debug|x64.ActiveCfg = Debug|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Debug|x64.Build.0 = Debug|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Debug|x86.ActiveCfg = Debug|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Debug|x86.Build.0 = Debug|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Release|x64.ActiveCfg = Release|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Release|x64.Build.0 = Release|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Release|x86.ActiveCfg = Release|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.Release|x86.Build.0 = Release|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseStatic|x64.ActiveCfg = ReleaseLTO|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseStatic|x64.Build.0 = ReleaseLTO|x64 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseStatic|x86.ActiveCfg = ReleaseLTO|Win32 {200F3D3C-8B84-46D8-953A-6C0EBD283B5C}.ReleaseStatic|x86.Build.0 = ReleaseLTO|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Debug|x64.ActiveCfg = Debug|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Debug|x64.Build.0 = Debug|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Debug|x86.ActiveCfg = Debug|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Debug|x86.Build.0 = Debug|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Release|x64.ActiveCfg = Release|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Release|x64.Build.0 = Release|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Release|x86.ActiveCfg = Release|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.Release|x86.Build.0 = Release|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseStatic|x64.ActiveCfg = ReleaseLTO|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseStatic|x64.Build.0 = ReleaseLTO|x64 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseStatic|x86.ActiveCfg = ReleaseLTO|Win32 {070FEF2B-0C3F-4F33-9D3C-53C7330BF518}.ReleaseStatic|x86.Build.0 = ReleaseLTO|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Debug|x64.ActiveCfg = Debug|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Debug|x64.Build.0 = Debug|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Debug|x86.ActiveCfg = Debug|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Debug|x86.Build.0 = Debug|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Release|x64.ActiveCfg = Release|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Release|x64.Build.0 = Release|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Release|x86.ActiveCfg = Release|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.Release|x86.Build.0 = Release|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseStatic|x64.ActiveCfg = ReleaseLTO|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseStatic|x64.Build.0 = ReleaseLTO|x64 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseStatic|x86.ActiveCfg = ReleaseLTO|Win32 {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32}.ReleaseStatic|x86.Build.0 = ReleaseLTO|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.Debug|x64.ActiveCfg = Debug|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.Debug|x64.Build.0 = Debug|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.Debug|x86.ActiveCfg = Debug|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.Debug|x86.Build.0 = Debug|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.Release|x64.ActiveCfg = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.Release|x86.ActiveCfg = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.Release|x86.Build.0 = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseStatic|x64.ActiveCfg = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseStatic|x64.Build.0 = Release|x64 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseStatic|x86.ActiveCfg = Release|Win32 {122A2EA4-B283-4241-9655-786DE78283B2}.ReleaseStatic|x86.Build.0 = Release|Win32 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.Debug|x64.ActiveCfg = Debug|x64 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.Debug|x64.Build.0 = Debug|x64 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.Debug|x86.ActiveCfg = Debug|Win32 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.Debug|x86.Build.0 = Debug|Win32 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.Release|x64.ActiveCfg = Release|x64 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.Release|x64.Build.0 = Release|x64 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.Release|x86.ActiveCfg = Release|Win32 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.Release|x86.Build.0 = Release|Win32 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.ReleaseStatic|x64.ActiveCfg = Release|x64 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.ReleaseStatic|x64.Build.0 = Release|x64 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.ReleaseStatic|x86.ActiveCfg = Release|Win32 {BF92AECF-AA1D-4B05-9D00-0247E92A24B5}.ReleaseStatic|x86.Build.0 = Release|Win32 {78443BCD-4689-4007-A246-F8F34B27F561}.Debug|x64.ActiveCfg = Debug|x64 {78443BCD-4689-4007-A246-F8F34B27F561}.Debug|x64.Build.0 = Debug|x64 {78443BCD-4689-4007-A246-F8F34B27F561}.Debug|x86.ActiveCfg = Debug|Win32 {78443BCD-4689-4007-A246-F8F34B27F561}.Debug|x86.Build.0 = Debug|Win32 {78443BCD-4689-4007-A246-F8F34B27F561}.Release|x64.ActiveCfg = Release|x64 {78443BCD-4689-4007-A246-F8F34B27F561}.Release|x64.Build.0 = Release|x64 {78443BCD-4689-4007-A246-F8F34B27F561}.Release|x86.ActiveCfg = Release|Win32 {78443BCD-4689-4007-A246-F8F34B27F561}.Release|x86.Build.0 = Release|Win32 {78443BCD-4689-4007-A246-F8F34B27F561}.ReleaseStatic|x64.ActiveCfg = Release|x64 {78443BCD-4689-4007-A246-F8F34B27F561}.ReleaseStatic|x64.Build.0 = Release|x64 {78443BCD-4689-4007-A246-F8F34B27F561}.ReleaseStatic|x86.ActiveCfg = Release|Win32 {78443BCD-4689-4007-A246-F8F34B27F561}.ReleaseStatic|x86.Build.0 = Release|Win32 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.Debug|x64.ActiveCfg = Debug|x64 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.Debug|x64.Build.0 = Debug|x64 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.Debug|x86.ActiveCfg = Debug|Win32 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.Debug|x86.Build.0 = Debug|Win32 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.Release|x64.ActiveCfg = Release|x64 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.Release|x64.Build.0 = Release|x64 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.Release|x86.ActiveCfg = Release|Win32 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.Release|x86.Build.0 = Release|Win32 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.ReleaseStatic|x64.ActiveCfg = Release|x64 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.ReleaseStatic|x64.Build.0 = Release|x64 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.ReleaseStatic|x86.ActiveCfg = Release|Win32 {8BE7F14D-B227-4D54-9105-7E5473F2D0BA}.ReleaseStatic|x86.Build.0 = Release|Win32 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Debug|x64.ActiveCfg = Debug|x64 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Debug|x64.Build.0 = Debug|x64 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Debug|x86.ActiveCfg = Debug|Win32 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Debug|x86.Build.0 = Debug|Win32 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Release|x64.ActiveCfg = Release|x64 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Release|x64.Build.0 = Release|x64 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Release|x86.ActiveCfg = Release|Win32 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.Release|x86.Build.0 = Release|Win32 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.ReleaseStatic|x64.ActiveCfg = ReleaseStatic|x64 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.ReleaseStatic|x64.Build.0 = ReleaseStatic|x64 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.ReleaseStatic|x86.ActiveCfg = ReleaseStatic|Win32 {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2}.ReleaseStatic|x86.Build.0 = ReleaseStatic|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {02B94302-23D6-43EF-8865-95CDE99D5DC2} = {71A1A9EC-1104-4335-A87E-AF8749FD5B34} {6F610EE8-7F59-4191-AB88-F63843267C02} = {71A1A9EC-1104-4335-A87E-AF8749FD5B34} {CB8BB76F-D3FF-434E-A85E-7FFC0893EC9B} = {71A1A9EC-1104-4335-A87E-AF8749FD5B34} {200F3D3C-8B84-46D8-953A-6C0EBD283B5C} = {71A1A9EC-1104-4335-A87E-AF8749FD5B34} {070FEF2B-0C3F-4F33-9D3C-53C7330BF518} = {71A1A9EC-1104-4335-A87E-AF8749FD5B34} {CA9A4A38-CC63-4BDB-8CFB-E058965DDA32} = {71A1A9EC-1104-4335-A87E-AF8749FD5B34} {122A2EA4-B283-4241-9655-786DE78283B2} = {71A1A9EC-1104-4335-A87E-AF8749FD5B34} {BF92AECF-AA1D-4B05-9D00-0247E92A24B5} = {296E2989-CF09-43AC-BBD2-BCF1A4B56D07} {78443BCD-4689-4007-A246-F8F34B27F561} = {296E2989-CF09-43AC-BBD2-BCF1A4B56D07} {8BE7F14D-B227-4D54-9105-7E5473F2D0BA} = {296E2989-CF09-43AC-BBD2-BCF1A4B56D07} {B9CAC9CE-9F0D-4F52-8D67-FDBBAFCD0DE2} = {71A1A9EC-1104-4335-A87E-AF8749FD5B34} EndGlobalSection EndGlobal opendht-1.8.1/MSVC/unistd.h000066400000000000000000000024341341145056700154220ustar00rootroot00000000000000/* * Copyright (C) 2016 Savoir-faire Linux Inc. * * Author: Andreas Traczyk * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #pragma once #ifndef __STRICT_ANSI__ #include #include #include #include #define R_OK 4 #define W_OK 2 #define F_OK 0 #ifndef STDIN_FILENO #define STDIN_FILENO 0 #endif #ifndef STDOUT_FILENO #define STDOUT_FILENO 1 #endif #ifndef STDERR_FILENO #define STDERR_FILENO 2 #endif #define srandom srand #define random rand #define inline __inline typedef int mode_t; #include #endif opendht-1.8.1/MSVC/wingetopt.c000066400000000000000000001077151341145056700161370ustar00rootroot00000000000000/* Getopt for Microsoft C This code is a modification of the Free Software Foundation, Inc. Getopt library for parsing command line argument the purpose was to provide a Microsoft Visual C friendly derivative. This code provides functionality for both Unicode and Multibyte builds. Date: 02/03/2011 - Ludvik Jerabek - Initial Release Version: 1.0 Comment: Supports getopt, getopt_long, and getopt_long_only and POSIXLY_CORRECT environment flag License: LGPL Revisions: 02/03/2011 - Ludvik Jerabek - Initial Release 02/20/2011 - Ludvik Jerabek - Fixed compiler warnings at Level 4 07/05/2011 - Ludvik Jerabek - Added no_argument, required_argument, optional_argument defs 08/03/2011 - Ludvik Jerabek - Fixed non-argument runtime bug which caused runtime exception 08/09/2011 - Ludvik Jerabek - Added code to export functions for DLL and LIB 02/15/2012 - Ludvik Jerabek - Fixed _GETOPT_THROW definition missing in implementation file 08/01/2012 - Ludvik Jerabek - Created separate functions for char and wchar_t characters so single dll can do both unicode and ansi 10/15/2012 - Ludvik Jerabek - Modified to match latest GNU features 06/19/2015 - Ludvik Jerabek - Fixed maximum option limitation caused by option_a (255) and option_w (65535) structure val variable **DISCLAIMER** THIS MATERIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT Not LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION MAY NOT APPLY TO YOU. IN NO EVENT WILL I BE LIABLE TO ANY PARTY FOR ANY DIRECT, INDIRECT, SPECIAL OR OTHER CONSEQUENTIAL DAMAGES FOR ANY USE OF THIS MATERIAL INCLUDING, WITHOUT LIMITATION, ANY LOST PROFITS, BUSINESS INTERRUPTION, LOSS OF PROGRAMS OR OTHER DATA ON YOUR INFORMATION HANDLING SYSTEM OR OTHERWISE, EVEN If WE ARE EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ #ifndef _CRT_SECURE_NO_WARNINGS # define _CRT_SECURE_NO_WARNINGS #endif #include #include #include #include "wingetopt.h" #ifdef __cplusplus #define _GETOPT_THROW throw() #else #define _GETOPT_THROW #endif int optind = 1; int opterr = 1; int optopt = '?'; enum ENUM_ORDERING { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }; // // // Ansi structures and functions follow // // static struct _getopt_data_a { int optind; int opterr; int optopt; char *optarg; int __initialized; char *__nextchar; enum ENUM_ORDERING __ordering; int __posixly_correct; int __first_nonopt; int __last_nonopt; } getopt_data_a; char *optarg_a; static void exchange_a(char **argv, struct _getopt_data_a *d) { int bottom = d->__first_nonopt; int middle = d->__last_nonopt; int top = d->optind; char *tem; while (top > middle && middle > bottom) { if (top - middle > middle - bottom) { int len = middle - bottom; register int i; for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[top - (middle - bottom) + i]; argv[top - (middle - bottom) + i] = tem; } top -= len; } else { int len = top - middle; register int i; for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[middle + i]; argv[middle + i] = tem; } bottom += len; } } d->__first_nonopt += (d->optind - d->__last_nonopt); d->__last_nonopt = d->optind; } static const char *_getopt_initialize_a (const char *optstring, struct _getopt_data_a *d, int posixly_correct) { d->__first_nonopt = d->__last_nonopt = d->optind; d->__nextchar = NULL; d->__posixly_correct = posixly_correct | !!getenv("POSIXLY_CORRECT"); if (optstring[0] == '-') { d->__ordering = RETURN_IN_ORDER; ++optstring; } else if (optstring[0] == '+') { d->__ordering = REQUIRE_ORDER; ++optstring; } else if (d->__posixly_correct) d->__ordering = REQUIRE_ORDER; else d->__ordering = PERMUTE; return optstring; } int _getopt_internal_r_a (int argc, char *const *argv, const char *optstring, const struct option_a *longopts, int *longind, int long_only, struct _getopt_data_a *d, int posixly_correct) { int print_errors = d->opterr; if (argc < 1) return -1; d->optarg = NULL; if (d->optind == 0 || !d->__initialized) { if (d->optind == 0) d->optind = 1; optstring = _getopt_initialize_a (optstring, d, posixly_correct); d->__initialized = 1; } else if (optstring[0] == '-' || optstring[0] == '+') optstring++; if (optstring[0] == ':') print_errors = 0; if (d->__nextchar == NULL || *d->__nextchar == '\0') { if (d->__last_nonopt > d->optind) d->__last_nonopt = d->optind; if (d->__first_nonopt > d->optind) d->__first_nonopt = d->optind; if (d->__ordering == PERMUTE) { if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange_a ((char **) argv, d); else if (d->__last_nonopt != d->optind) d->__first_nonopt = d->optind; while (d->optind < argc && (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')) d->optind++; d->__last_nonopt = d->optind; } if (d->optind != argc && !strcmp(argv[d->optind], "--")) { d->optind++; if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange_a((char **) argv, d); else if (d->__first_nonopt == d->__last_nonopt) d->__first_nonopt = d->optind; d->__last_nonopt = argc; d->optind = argc; } if (d->optind == argc) { if (d->__first_nonopt != d->__last_nonopt) d->optind = d->__first_nonopt; return -1; } if ((argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')) { if (d->__ordering == REQUIRE_ORDER) return -1; d->optarg = argv[d->optind++]; return 1; } d->__nextchar = (argv[d->optind] + 1 + (longopts != NULL && argv[d->optind][1] == '-')); } if (longopts != NULL && (argv[d->optind][1] == '-' || (long_only && (argv[d->optind][2] || !strchr(optstring, argv[d->optind][1]))))) { char *nameend; unsigned int namelen; const struct option_a *p; const struct option_a *pfound = NULL; struct option_list { const struct option_a *p; struct option_list *next; } *ambig_list = NULL; int exact = 0; int indfound = -1; int option_index; for (nameend = d->__nextchar; *nameend && *nameend != '='; nameend++); namelen = (unsigned int)(nameend - d->__nextchar); for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp(p->name, d->__nextchar, namelen)) { if (namelen == (unsigned int)strlen(p->name)) { pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { pfound = p; indfound = option_index; } else if (long_only || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) { struct option_list *newp = (struct option_list*)alloca(sizeof(*newp)); newp->p = p; newp->next = ambig_list; ambig_list = newp; } } if (ambig_list != NULL && !exact) { if (print_errors) { struct option_list first; first.p = pfound; first.next = ambig_list; ambig_list = &first; fprintf (stderr, "%s: option '%s' is ambiguous; possibilities:", argv[0], argv[d->optind]); do { fprintf (stderr, " '--%s'", ambig_list->p->name); ambig_list = ambig_list->next; } while (ambig_list != NULL); fputc ('\n', stderr); } d->__nextchar += strlen(d->__nextchar); d->optind++; d->optopt = 0; return '?'; } if (pfound != NULL) { option_index = indfound; d->optind++; if (*nameend) { if (pfound->has_arg) d->optarg = nameend + 1; else { if (print_errors) { if (argv[d->optind - 1][1] == '-') { fprintf(stderr, "%s: option '--%s' doesn't allow an argument\n",argv[0], pfound->name); } else { fprintf(stderr, "%s: option '%c%s' doesn't allow an argument\n",argv[0], argv[d->optind - 1][0],pfound->name); } } d->__nextchar += strlen(d->__nextchar); d->optopt = pfound->val; return '?'; } } else if (pfound->has_arg == 1) { if (d->optind < argc) d->optarg = argv[d->optind++]; else { if (print_errors) { fprintf(stderr,"%s: option '--%s' requires an argument\n",argv[0], pfound->name); } d->__nextchar += strlen(d->__nextchar); d->optopt = pfound->val; return optstring[0] == ':' ? ':' : '?'; } } d->__nextchar += strlen(d->__nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } if (!long_only || argv[d->optind][1] == '-' || strchr(optstring, *d->__nextchar) == NULL) { if (print_errors) { if (argv[d->optind][1] == '-') { fprintf(stderr, "%s: unrecognized option '--%s'\n",argv[0], d->__nextchar); } else { fprintf(stderr, "%s: unrecognized option '%c%s'\n",argv[0], argv[d->optind][0], d->__nextchar); } } d->__nextchar = (char *)""; d->optind++; d->optopt = 0; return '?'; } } { char c = *d->__nextchar++; char *temp = (char*)strchr(optstring, c); if (*d->__nextchar == '\0') ++d->optind; if (temp == NULL || c == ':' || c == ';') { if (print_errors) { fprintf(stderr, "%s: invalid option -- '%c'\n", argv[0], c); } d->optopt = c; return '?'; } if (temp[0] == 'W' && temp[1] == ';') { char *nameend; const struct option_a *p; const struct option_a *pfound = NULL; int exact = 0; int ambig = 0; int indfound = 0; int option_index; if (longopts == NULL) goto no_longs; if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; d->optind++; } else if (d->optind == argc) { if (print_errors) { fprintf(stderr,"%s: option requires an argument -- '%c'\n",argv[0], c); } d->optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; return c; } else d->optarg = argv[d->optind++]; for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != '='; nameend++); for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp(p->name, d->__nextchar, nameend - d->__nextchar)) { if ((unsigned int) (nameend - d->__nextchar) == strlen(p->name)) { pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { pfound = p; indfound = option_index; } else if (long_only || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) ambig = 1; } if (ambig && !exact) { if (print_errors) { fprintf(stderr, "%s: option '-W %s' is ambiguous\n",argv[0], d->optarg); } d->__nextchar += strlen(d->__nextchar); d->optind++; return '?'; } if (pfound != NULL) { option_index = indfound; if (*nameend) { if (pfound->has_arg) d->optarg = nameend + 1; else { if (print_errors) { fprintf(stderr, "%s: option '-W %s' doesn't allow an argument\n",argv[0], pfound->name); } d->__nextchar += strlen(d->__nextchar); return '?'; } } else if (pfound->has_arg == 1) { if (d->optind < argc) d->optarg = argv[d->optind++]; else { if (print_errors) { fprintf(stderr, "%s: option '-W %s' requires an argument\n",argv[0], pfound->name); } d->__nextchar += strlen(d->__nextchar); return optstring[0] == ':' ? ':' : '?'; } } else d->optarg = NULL; d->__nextchar += strlen(d->__nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } no_longs: d->__nextchar = NULL; return 'W'; } if (temp[1] == ':') { if (temp[2] == ':') { if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; d->optind++; } else d->optarg = NULL; d->__nextchar = NULL; } else { if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; d->optind++; } else if (d->optind == argc) { if (print_errors) { fprintf(stderr,"%s: option requires an argument -- '%c'\n",argv[0], c); } d->optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; } else d->optarg = argv[d->optind++]; d->__nextchar = NULL; } } return c; } } int _getopt_internal_a (int argc, char *const *argv, const char *optstring, const struct option_a *longopts, int *longind, int long_only, int posixly_correct) { int result; getopt_data_a.optind = optind; getopt_data_a.opterr = opterr; result = _getopt_internal_r_a (argc, argv, optstring, longopts,longind, long_only, &getopt_data_a,posixly_correct); optind = getopt_data_a.optind; optarg_a = getopt_data_a.optarg; optopt = getopt_data_a.optopt; return result; } int getopt_a (int argc, char *const *argv, const char *optstring) _GETOPT_THROW { return _getopt_internal_a (argc, argv, optstring, (const struct option_a *) 0, (int *) 0, 0, 0); } int getopt_long_a (int argc, char *const *argv, const char *options, const struct option_a *long_options, int *opt_index) _GETOPT_THROW { return _getopt_internal_a (argc, argv, options, long_options, opt_index, 0, 0); } int getopt_long_only_a (int argc, char *const *argv, const char *options, const struct option_a *long_options, int *opt_index) _GETOPT_THROW { return _getopt_internal_a (argc, argv, options, long_options, opt_index, 1, 0); } int _getopt_long_r_a (int argc, char *const *argv, const char *options, const struct option_a *long_options, int *opt_index, struct _getopt_data_a *d) { return _getopt_internal_r_a (argc, argv, options, long_options, opt_index,0, d, 0); } int _getopt_long_only_r_a (int argc, char *const *argv, const char *options, const struct option_a *long_options, int *opt_index, struct _getopt_data_a *d) { return _getopt_internal_r_a (argc, argv, options, long_options, opt_index, 1, d, 0); } // // // Unicode Structures and Functions // // static struct _getopt_data_w { int optind; int opterr; int optopt; wchar_t *optarg; int __initialized; wchar_t *__nextchar; enum ENUM_ORDERING __ordering; int __posixly_correct; int __first_nonopt; int __last_nonopt; } getopt_data_w; wchar_t *optarg_w; static void exchange_w(wchar_t **argv, struct _getopt_data_w *d) { int bottom = d->__first_nonopt; int middle = d->__last_nonopt; int top = d->optind; wchar_t *tem; while (top > middle && middle > bottom) { if (top - middle > middle - bottom) { int len = middle - bottom; register int i; for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[top - (middle - bottom) + i]; argv[top - (middle - bottom) + i] = tem; } top -= len; } else { int len = top - middle; register int i; for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[middle + i]; argv[middle + i] = tem; } bottom += len; } } d->__first_nonopt += (d->optind - d->__last_nonopt); d->__last_nonopt = d->optind; } static const wchar_t *_getopt_initialize_w (const wchar_t *optstring, struct _getopt_data_w *d, int posixly_correct) { d->__first_nonopt = d->__last_nonopt = d->optind; d->__nextchar = NULL; d->__posixly_correct = posixly_correct | !!_wgetenv(L"POSIXLY_CORRECT"); if (optstring[0] == L'-') { d->__ordering = RETURN_IN_ORDER; ++optstring; } else if (optstring[0] == L'+') { d->__ordering = REQUIRE_ORDER; ++optstring; } else if (d->__posixly_correct) d->__ordering = REQUIRE_ORDER; else d->__ordering = PERMUTE; return optstring; } int _getopt_internal_r_w (int argc, wchar_t *const *argv, const wchar_t *optstring, const struct option_w *longopts, int *longind, int long_only, struct _getopt_data_w *d, int posixly_correct) { int print_errors = d->opterr; if (argc < 1) return -1; d->optarg = NULL; if (d->optind == 0 || !d->__initialized) { if (d->optind == 0) d->optind = 1; optstring = _getopt_initialize_w (optstring, d, posixly_correct); d->__initialized = 1; } else if (optstring[0] == L'-' || optstring[0] == L'+') optstring++; if (optstring[0] == L':') print_errors = 0; if (d->__nextchar == NULL || *d->__nextchar == L'\0') { if (d->__last_nonopt > d->optind) d->__last_nonopt = d->optind; if (d->__first_nonopt > d->optind) d->__first_nonopt = d->optind; if (d->__ordering == PERMUTE) { if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange_w((wchar_t **) argv, d); else if (d->__last_nonopt != d->optind) d->__first_nonopt = d->optind; while (d->optind < argc && (argv[d->optind][0] != L'-' || argv[d->optind][1] == L'\0')) d->optind++; d->__last_nonopt = d->optind; } if (d->optind != argc && !wcscmp(argv[d->optind], L"--")) { d->optind++; if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange_w((wchar_t **) argv, d); else if (d->__first_nonopt == d->__last_nonopt) d->__first_nonopt = d->optind; d->__last_nonopt = argc; d->optind = argc; } if (d->optind == argc) { if (d->__first_nonopt != d->__last_nonopt) d->optind = d->__first_nonopt; return -1; } if ((argv[d->optind][0] != L'-' || argv[d->optind][1] == L'\0')) { if (d->__ordering == REQUIRE_ORDER) return -1; d->optarg = argv[d->optind++]; return 1; } d->__nextchar = (argv[d->optind] + 1 + (longopts != NULL && argv[d->optind][1] == L'-')); } if (longopts != NULL && (argv[d->optind][1] == L'-' || (long_only && (argv[d->optind][2] || !wcschr(optstring, argv[d->optind][1]))))) { wchar_t *nameend; unsigned int namelen; const struct option_w *p; const struct option_w *pfound = NULL; struct option_list { const struct option_w *p; struct option_list *next; } *ambig_list = NULL; int exact = 0; int indfound = -1; int option_index; for (nameend = d->__nextchar; *nameend && *nameend != L'='; nameend++); namelen = (unsigned int)(nameend - d->__nextchar); for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!wcsncmp(p->name, d->__nextchar, namelen)) { if (namelen == (unsigned int)wcslen(p->name)) { pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { pfound = p; indfound = option_index; } else if (long_only || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) { struct option_list *newp = (struct option_list*)alloca(sizeof(*newp)); newp->p = p; newp->next = ambig_list; ambig_list = newp; } } if (ambig_list != NULL && !exact) { if (print_errors) { struct option_list first; first.p = pfound; first.next = ambig_list; ambig_list = &first; fwprintf(stderr, L"%s: option '%s' is ambiguous; possibilities:", argv[0], argv[d->optind]); do { fwprintf (stderr, L" '--%s'", ambig_list->p->name); ambig_list = ambig_list->next; } while (ambig_list != NULL); fputwc (L'\n', stderr); } d->__nextchar += wcslen(d->__nextchar); d->optind++; d->optopt = 0; return L'?'; } if (pfound != NULL) { option_index = indfound; d->optind++; if (*nameend) { if (pfound->has_arg) d->optarg = nameend + 1; else { if (print_errors) { if (argv[d->optind - 1][1] == L'-') { fwprintf(stderr, L"%s: option '--%s' doesn't allow an argument\n",argv[0], pfound->name); } else { fwprintf(stderr, L"%s: option '%c%s' doesn't allow an argument\n",argv[0], argv[d->optind - 1][0],pfound->name); } } d->__nextchar += wcslen(d->__nextchar); d->optopt = pfound->val; return L'?'; } } else if (pfound->has_arg == 1) { if (d->optind < argc) d->optarg = argv[d->optind++]; else { if (print_errors) { fwprintf(stderr,L"%s: option '--%s' requires an argument\n",argv[0], pfound->name); } d->__nextchar += wcslen(d->__nextchar); d->optopt = pfound->val; return optstring[0] == L':' ? L':' : L'?'; } } d->__nextchar += wcslen(d->__nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } if (!long_only || argv[d->optind][1] == L'-' || wcschr(optstring, *d->__nextchar) == NULL) { if (print_errors) { if (argv[d->optind][1] == L'-') { fwprintf(stderr, L"%s: unrecognized option '--%s'\n",argv[0], d->__nextchar); } else { fwprintf(stderr, L"%s: unrecognized option '%c%s'\n",argv[0], argv[d->optind][0], d->__nextchar); } } d->__nextchar = (wchar_t *)L""; d->optind++; d->optopt = 0; return L'?'; } } { wchar_t c = *d->__nextchar++; wchar_t *temp = (wchar_t*)wcschr(optstring, c); if (*d->__nextchar == L'\0') ++d->optind; if (temp == NULL || c == L':' || c == L';') { if (print_errors) { fwprintf(stderr, L"%s: invalid option -- '%c'\n", argv[0], c); } d->optopt = c; return L'?'; } if (temp[0] == L'W' && temp[1] == L';') { wchar_t *nameend; const struct option_w *p; const struct option_w *pfound = NULL; int exact = 0; int ambig = 0; int indfound = 0; int option_index; if (longopts == NULL) goto no_longs; if (*d->__nextchar != L'\0') { d->optarg = d->__nextchar; d->optind++; } else if (d->optind == argc) { if (print_errors) { fwprintf(stderr,L"%s: option requires an argument -- '%c'\n",argv[0], c); } d->optopt = c; if (optstring[0] == L':') c = L':'; else c = L'?'; return c; } else d->optarg = argv[d->optind++]; for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != L'='; nameend++); for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!wcsncmp(p->name, d->__nextchar, nameend - d->__nextchar)) { if ((unsigned int) (nameend - d->__nextchar) == wcslen(p->name)) { pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { pfound = p; indfound = option_index; } else if (long_only || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) ambig = 1; } if (ambig && !exact) { if (print_errors) { fwprintf(stderr, L"%s: option '-W %s' is ambiguous\n",argv[0], d->optarg); } d->__nextchar += wcslen(d->__nextchar); d->optind++; return L'?'; } if (pfound != NULL) { option_index = indfound; if (*nameend) { if (pfound->has_arg) d->optarg = nameend + 1; else { if (print_errors) { fwprintf(stderr, L"%s: option '-W %s' doesn't allow an argument\n",argv[0], pfound->name); } d->__nextchar += wcslen(d->__nextchar); return L'?'; } } else if (pfound->has_arg == 1) { if (d->optind < argc) d->optarg = argv[d->optind++]; else { if (print_errors) { fwprintf(stderr, L"%s: option '-W %s' requires an argument\n",argv[0], pfound->name); } d->__nextchar += wcslen(d->__nextchar); return optstring[0] == L':' ? L':' : L'?'; } } else d->optarg = NULL; d->__nextchar += wcslen(d->__nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } no_longs: d->__nextchar = NULL; return L'W'; } if (temp[1] == L':') { if (temp[2] == L':') { if (*d->__nextchar != L'\0') { d->optarg = d->__nextchar; d->optind++; } else d->optarg = NULL; d->__nextchar = NULL; } else { if (*d->__nextchar != L'\0') { d->optarg = d->__nextchar; d->optind++; } else if (d->optind == argc) { if (print_errors) { fwprintf(stderr,L"%s: option requires an argument -- '%c'\n",argv[0], c); } d->optopt = c; if (optstring[0] == L':') c = L':'; else c = L'?'; } else d->optarg = argv[d->optind++]; d->__nextchar = NULL; } } return c; } } int _getopt_internal_w (int argc, wchar_t *const *argv, const wchar_t *optstring, const struct option_w *longopts, int *longind, int long_only, int posixly_correct) { int result; getopt_data_w.optind = optind; getopt_data_w.opterr = opterr; result = _getopt_internal_r_w (argc, argv, optstring, longopts,longind, long_only, &getopt_data_w,posixly_correct); optind = getopt_data_w.optind; optarg_w = getopt_data_w.optarg; optopt = getopt_data_w.optopt; return result; } int getopt_w (int argc, wchar_t *const *argv, const wchar_t *optstring) _GETOPT_THROW { return _getopt_internal_w (argc, argv, optstring, (const struct option_w *) 0, (int *) 0, 0, 0); } int getopt_long_w (int argc, wchar_t *const *argv, const wchar_t *options, const struct option_w *long_options, int *opt_index) _GETOPT_THROW { return _getopt_internal_w (argc, argv, options, long_options, opt_index, 0, 0); } int getopt_long_only_w (int argc, wchar_t *const *argv, const wchar_t *options, const struct option_w *long_options, int *opt_index) _GETOPT_THROW { return _getopt_internal_w (argc, argv, options, long_options, opt_index, 1, 0); } int _getopt_long_r_w (int argc, wchar_t *const *argv, const wchar_t *options, const struct option_w *long_options, int *opt_index, struct _getopt_data_w *d) { return _getopt_internal_r_w (argc, argv, options, long_options, opt_index,0, d, 0); } int _getopt_long_only_r_w (int argc, wchar_t *const *argv, const wchar_t *options, const struct option_w *long_options, int *opt_index, struct _getopt_data_w *d) { return _getopt_internal_r_w (argc, argv, options, long_options, opt_index, 1, d, 0); }opendht-1.8.1/MSVC/wingetopt.h000066400000000000000000000063061341145056700161360ustar00rootroot00000000000000#ifndef __WINGETOPT_H_ #define __WINGETOPT_H_ #ifdef _GETOPT_API #undef _GETOPT_API #endif #if defined(EXPORTS_GETOPT) && defined(STATIC_GETOPT) #error "The preprocessor definitions of EXPORTS_GETOPT and STATIC_GETOPT can only be used individually" #elif defined(STATIC_GETOPT) #define _GETOPT_API #elif defined(EXPORTS_GETOPT) #define _GETOPT_API __declspec(dllexport) #else #define _GETOPT_API __declspec(dllimport) #endif // Change behavior for C\C++ #ifdef __cplusplus #define _BEGIN_EXTERN_C extern "C" { #define _END_EXTERN_C } #define _GETOPT_THROW throw() #else #define _BEGIN_EXTERN_C #define _END_EXTERN_C #define _GETOPT_THROW #endif // Standard GNU options #define null_argument 0 /*Argument Null*/ #define no_argument 0 /*Argument Switch Only*/ #define required_argument 1 /*Argument Required*/ #define optional_argument 2 /*Argument Optional*/ // Shorter Options #define ARG_NULL 0 /*Argument Null*/ #define ARG_NONE 0 /*Argument Switch Only*/ #define ARG_REQ 1 /*Argument Required*/ #define ARG_OPT 2 /*Argument Optional*/ #include #include _BEGIN_EXTERN_C extern _GETOPT_API int optind; extern _GETOPT_API int opterr; extern _GETOPT_API int optopt; // Ansi struct option_a { const char* name; int has_arg; int *flag; int val; }; extern _GETOPT_API char *optarg_a; extern _GETOPT_API int getopt_a(int argc, char *const *argv, const char *optstring) _GETOPT_THROW; extern _GETOPT_API int getopt_long_a(int argc, char *const *argv, const char *options, const struct option_a *long_options, int *opt_index) _GETOPT_THROW; extern _GETOPT_API int getopt_long_only_a(int argc, char *const *argv, const char *options, const struct option_a *long_options, int *opt_index) _GETOPT_THROW; // Unicode struct option_w { const wchar_t* name; int has_arg; int *flag; int val; }; extern _GETOPT_API wchar_t *optarg_w; extern _GETOPT_API int getopt_w(int argc, wchar_t *const *argv, const wchar_t *optstring) _GETOPT_THROW; extern _GETOPT_API int getopt_long_w(int argc, wchar_t *const *argv, const wchar_t *options, const struct option_w *long_options, int *opt_index) _GETOPT_THROW; extern _GETOPT_API int getopt_long_only_w(int argc, wchar_t *const *argv, const wchar_t *options, const struct option_w *long_options, int *opt_index) _GETOPT_THROW; _END_EXTERN_C #undef _BEGIN_EXTERN_C #undef _END_EXTERN_C #undef _GETOPT_THROW #undef _GETOPT_API #ifdef _UNICODE #define getopt getopt_w #define getopt_long getopt_long_w #define getopt_long_only getopt_long_only_w #define option option_w #define optarg optarg_w #else #define getopt getopt_a #define getopt_long getopt_long_a #define getopt_long_only getopt_long_only_a #define option option_a #define optarg optarg_a #endif #endif // __WINGETOPT_H_opendht-1.8.1/Makefile.am000066400000000000000000000005611341145056700152260ustar00rootroot00000000000000AM_CXXFLAGS = -pthread SUBDIRS = SUBDIRS += src if ENABLE_TOOLS SUBDIRS += tools endif if USE_CYTHON SUBDIRS += python endif if ENABLE_TESTS SUBDIRS += tests endif if HAVE_DOXYGEN SUBDIRS += doc endif ACLOCAL_AMFLAGS = -I m4 DOC_FILES = \ README.md \ COPYING EXTRA_DIST = \ $(DOC_FILES) pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = opendht.pc opendht-1.8.1/README.md000066400000000000000000000110671341145056700144540ustar00rootroot00000000000000

OpenDHT

A lightweight C++11 Distributed Hash Table implementation. OpenDHT provides an easy to use distributed in-memory data store. Every node in the network can read and write values to the store. Values are distributed over the network, with redundancy. * Lightweight and scalable, designed for large networks and small devices * High resilience to network disruption * Public key cryptography layer providing optional data signature and encryption (using GnuTLS) * IPv4 and IPv6 support * Clean and powerful C++11 map API * Python 3 bindings * REST API ## Documentation See the wiki: #### How-to build and install Build instructions: #### How-to build a simple client app ```bash g++ main.cpp -std=c++11 -lopendht -lgnutls ``` ## Examples ### C++ example The `tools` directory includes simple example programs : * `dhtnode`, a command line tool, mostly used for debuging, allowing to perform operations supported by the library (get, put etc.) with text values. * `dhtchat`, a very simple IM client working over the dht. Example program launching a DHT node, connecting to the network and performing some basic operations: ```c++ #include #include int main() { dht::DhtRunner node; // Launch a dht node on a new thread, using a // generated RSA key pair, and listen on port 4222. node.run(4222, dht::crypto::generateIdentity(), true); // Join the network through any running node, // here using a known bootstrap node. node.bootstrap("bootstrap.ring.cx", "4222"); // put some data on the dht std::vector some_data(5, 10); node.put("unique_key", some_data); // put some data on the dht, signed with our generated private key node.putSigned("unique_key_42", some_data); // get data from the dht node.get("other_unique_key", [](const std::vector>& values) { // Callback called when values are found for (const auto& value : values) std::cout << "Found value: " << *value << std::endl; return true; // return false to stop the search }); // wait for dht threads to end node.join(); return 0; } ``` ### Python 3 example ```python import opendht as dht node = dht.DhtRunner() node.run() # Join the network through any running node, # here using a known bootstrap node. node.bootstrap("bootstrap.ring.cx", "4222") # blocking call (provide callback arguments to make the call non-blocking) node.put(dht.InfoHash.get("unique_key"), dht.Value(b'some binary data')) results = node.get(dht.InfoHash.get("unique_key")) for r in results: print(r) ``` ## Dependencies - msgpack-c 1.2+, used for data serialization. - GnuTLS 3.3+, used for cryptographic operations. - Nettle 2.4+, a GnuTLS dependency for crypto. - (optional) restbed used for the REST API. commit fb84213e170bc171fecd825a8e47ed9f881a12cd (https://github.com/AmarOk1412/restbed/tree/async_read_until) - (optional) jsoncpp 1.7.4-3+, used for the REST API. - Build tested with GCC 5.2+ (GNU/Linux, Windows with MinGW), Clang/LLVM (GNU/Linux, Android, macOS, iOS). - Build tested with Microsoft Visual Studio 2015 ## Contact IRC: join us on Freenode at [`#opendht`](https://webchat.freenode.net/?channels=%23opendht). ## License Copyright (C) 2014-2018 Savoir-faire Linux Inc. OpenDHT is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. See COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html for the full GPLv3 license. ## Acknowledgements This project was originally based on https://github.com/jech/dht by Juliusz Chroboczek. It is independent from another project called OpenDHT (Sean Rhea. Ph.D. Thesis, 2005), now extinct. ## Donations We gratefully accept Bitcoin donations to support OpenDHT development at: `bitcoin:3EykSd1An888efq4Bq3KaV3hJ3JQ4FPnwm`. opendht-1.8.1/argon2/000077500000000000000000000000001341145056700143605ustar00rootroot00000000000000opendht-1.8.1/autogen.sh000077500000000000000000000001011341145056700151610ustar00rootroot00000000000000git submodule update --init autoreconf --install --verbose -Wall opendht-1.8.1/cmake/000077500000000000000000000000001341145056700142505ustar00rootroot00000000000000opendht-1.8.1/cmake/FindCppunit.cmake000066400000000000000000000013121341145056700174720ustar00rootroot00000000000000INCLUDE(FindPkgConfig) PKG_CHECK_MODULES(PC_CPPUNIT "cppunit") FIND_PATH(CPPUNIT_INCLUDE_DIRS NAMES cppunit/TestCase.h HINTS ${PC_CPPUNIT_INCLUDE_DIR} ${CMAKE_INSTALL_PREFIX}/include PATHS /usr/local/include /usr/include ) FIND_LIBRARY(CPPUNIT_LIBRARIES NAMES cppunit HINTS ${PC_CPPUNIT_LIBDIR} ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/lib64 PATHS ${CPPUNIT_INCLUDE_DIRS}/../lib /usr/local/lib /usr/lib ) LIST(APPEND CPPUNIT_LIBRARIES ${CMAKE_DL_LIBS}) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPPUNIT DEFAULT_MSG CPPUNIT_LIBRARIES CPPUNIT_INCLUDE_DIRS) MARK_AS_ADVANCED(CPPUNIT_LIBRARIES CPPUNIT_INCLUDE_DIRS) opendht-1.8.1/cmake/FindMsgpack.cmake000066400000000000000000000045271341145056700174500ustar00rootroot00000000000000# - Try to find msgpack # Once done this will define # MSGPACK_FOUND - System has msgpack # MSGPACK_INCLUDE_DIRS - The msgpack include directories # MSGPACK_LIBRARIES - The libraries needed to use msgpack if(NOT MSGPACK_USE_BUNDLED) find_package(PkgConfig) if (PKG_CONFIG_FOUND) pkg_search_module(PC_MSGPACK QUIET msgpackc>=${Msgpack_FIND_VERSION} msgpack>=${Msgpack_FIND_VERSION}) endif() else() set(PC_MSGPACK_INCLUDEDIR) set(PC_MSGPACK_INCLUDE_DIRS) set(PC_MSGPACK_LIBDIR) set(PC_MSGPACK_LIBRARY_DIRS) set(LIMIT_SEARCH NO_DEFAULT_PATH) endif() set(MSGPACK_DEFINITIONS ${PC_MSGPACK_CFLAGS_OTHER}) find_path(MSGPACK_INCLUDE_DIR msgpack/version_master.h HINTS ${PC_MSGPACK_INCLUDEDIR} ${PC_MSGPACK_INCLUDE_DIRS} ${LIMIT_SEARCH}) if(MSGPACK_INCLUDE_DIR) file(READ ${MSGPACK_INCLUDE_DIR}/msgpack/version_master.h msgpack_version_h) string(REGEX REPLACE ".*MSGPACK_VERSION_MAJOR +([0-9]+).*" "\\1" MSGPACK_VERSION_MAJOR "${msgpack_version_h}") string(REGEX REPLACE ".*MSGPACK_VERSION_MINOR +([0-9]+).*" "\\1" MSGPACK_VERSION_MINOR "${msgpack_version_h}") string(REGEX REPLACE ".*MSGPACK_VERSION_REVISION +([0-9]+).*" "\\1" MSGPACK_VERSION_REVISION "${msgpack_version_h}") set(MSGPACK_VERSION_STRING "${MSGPACK_VERSION_MAJOR}.${MSGPACK_VERSION_MINOR}.${MSGPACK_VERSION_REVISION}") else() set(MSGPACK_VERSION_STRING) endif() # If we're asked to use static linkage, add libmsgpack{,c}.a as a preferred library name. if(MSGPACK_USE_STATIC) list(APPEND MSGPACK_NAMES "${CMAKE_STATIC_LIBRARY_PREFIX}msgpackc${CMAKE_STATIC_LIBRARY_SUFFIX}" "${CMAKE_STATIC_LIBRARY_PREFIX}msgpack${CMAKE_STATIC_LIBRARY_SUFFIX}") endif() list(APPEND MSGPACK_NAMES msgpackc msgpack) find_library(MSGPACK_LIBRARY NAMES ${MSGPACK_NAMES} # Check each directory for all names to avoid using headers/libraries from # different places. NAMES_PER_DIR HINTS ${PC_MSGPACK_LIBDIR} ${PC_MSGPACK_LIBRARY_DIRS} ${LIMIT_SEARCH}) mark_as_advanced(MSGPACK_INCLUDE_DIR MSGPACK_LIBRARY) set(MSGPACK_LIBRARIES ${MSGPACK_LIBRARY}) set(MSGPACK_INCLUDE_DIRS ${MSGPACK_INCLUDE_DIR}) include(FindPackageHandleStandardArgs) # handle the QUIETLY and REQUIRED arguments and set MSGPACK_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(Msgpack REQUIRED_VARS MSGPACK_LIBRARY MSGPACK_INCLUDE_DIR VERSION_VAR MSGPACK_VERSION_STRING) opendht-1.8.1/cmake/FindReadline.cmake000066400000000000000000000040621341145056700176000ustar00rootroot00000000000000# - Try to find readline, a library for easy editing of command lines. # Variables used by this module: # READLINE_ROOT_DIR - Readline root directory # Variables defined by this module: # READLINE_FOUND - system has Readline # READLINE_INCLUDE_DIR - the Readline include directory (cached) # READLINE_INCLUDE_DIRS - the Readline include directories # (identical to READLINE_INCLUDE_DIR) # READLINE_LIBRARY - the Readline library (cached) # READLINE_LIBRARIES - the Readline library plus the libraries it # depends on # Copyright (C) 2009 # ASTRON (Netherlands Institute for Radio Astronomy) # P.O.Box 2, 7990 AA Dwingeloo, The Netherlands # # This program is free software; you can redistribute it and/or modify # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program. If not, see . # # $Id: FindReadline.cmake 15228 2010-03-16 09:27:26Z loose $ if(NOT READLINE_FOUND) find_path(READLINE_INCLUDE_DIR readline/readline.h HINTS ${READLINE_ROOT_DIR} PATH_SUFFIXES include) find_library(READLINE_LIBRARY readline HINTS ${READLINE_ROOT_DIR} PATH_SUFFIXES lib) find_library(NCURSES_LIBRARY ncurses) # readline depends on libncurses mark_as_advanced(READLINE_INCLUDE_DIR READLINE_LIBRARY NCURSES_LIBRARY) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Readline DEFAULT_MSG READLINE_LIBRARY NCURSES_LIBRARY READLINE_INCLUDE_DIR) set(READLINE_INCLUDE_DIRS ${READLINE_INCLUDE_DIR}) set(READLINE_LIBRARIES ${READLINE_LIBRARY} ${NCURSES_LIBRARY}) endif(NOT READLINE_FOUND) opendht-1.8.1/cmake/FindRestbed.cmake000066400000000000000000000011521341145056700174420ustar00rootroot00000000000000if(NOT Restbed_FOUND) find_path (Restbed_INCLUDE_DIR restbed HINTS "/usr/include" "/usr/local/include" "/opt/local/include") find_library(Restbed_LIBRARY restbed HINTS ${Restbed_ROOT_DIR} PATH_SUFFIXES lib) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Restbed DEFAULT_MSG Restbed_LIBRARY Restbed_INCLUDE_DIR) if (Restbed_INCLUDE_DIR) set(Restbed_FOUND TRUE) set(Restbed_LIBRARIES ${Restbed_LIBRARY}) set(Restbed_INCLUDE_DIRS ${Restbed_INCLUDE_DIR}) endif() endif() opendht-1.8.1/configure.ac000066400000000000000000000175371341145056700154730ustar00rootroot00000000000000dnl define macros m4_define([opendht_major_version], 1) m4_define([opendht_minor_version], 8) m4_define([opendht_patch_version], 1) m4_define([opendht_version], [opendht_major_version.opendht_minor_version.opendht_patch_version]) AC_INIT(opendht, [opendht_version]) AC_CONFIG_AUX_DIR(ac) AM_INIT_AUTOMAKE([foreign subdir-objects]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_HOST AC_SUBST(OPENDHT_MAJOR_VERSION, opendht_major_version) AC_SUBST(OPENDHT_MINOR_VERSION, opendht_minor_version) AC_SUBST(OPENDHT_PATCH_VERSION, opendht_patch_version) AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [Build in debug mode, adds stricter warnings, disables optimization])) AS_IF([test "x$enable_debug" = "xyes"], [CXXFLAGS="${CXXFLAGS} -g -Wno-return-type -Wall -Wextra -Wnon-virtual-dtor -O0 -pedantic-errors"], [CXXFLAGS="${CXXFLAGS} -O3 -pedantic-errors"]) AC_PROG_CXX AM_PROG_AR dnl Check for logs AC_ARG_ENABLE([logs], [AS_HELP_STRING([--disable-logs], [Disable DHT logs])]) AS_IF([test "x$enable_logs" != "xno"], [ AC_DEFINE([OPENDHT_LOG], [true], [Define if DHT logs are enabled]) ], [ AC_DEFINE([OPENDHT_LOG], [false], [Define if DHT logs are enabled]) ]) dnl Check for indexation AC_ARG_ENABLE([indexation], [AS_HELP_STRING([--disable-indexation], [Disable DHT indexation])]) AM_CONDITIONAL(ENABLE_INDEXATION, test x$enable_indexation != "xno") AS_IF([test "x$enable_indexation" != "xno"], [ AC_DEFINE([OPENDHT_INDEXATION], [1], [Define if DHT indexation is enabled]) ]) dnl Check for Doxygen AC_ARG_ENABLE([doc], AS_HELP_STRING([--enable-doc], [Enable documentation generation (doxygen)])) AS_IF([test "x$enable_doc" = "xyes"], [ AC_CHECK_PROGS([DOXYGEN], [doxygen]) AS_IF([test -z "$DOXYGEN"], [AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])]) ]) AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"]) dnl Check for Python AC_ARG_ENABLE([python], [AS_HELP_STRING([--disable-python], [Disble python binding])]) AS_IF([test "x$enable_python" != "xno"], [ AM_PATH_PYTHON([3.3],, [:]) AS_IF([test -n "$PYTHON"],[ echo 'import Cython' | $PYTHON AS_IF([test $? == 0],[CYTHON=yes],[AC_MSG_WARN([Cython not found - continuing without python support])]) AC_CHECK_PROGS([PIP], [pip3]) AS_IF([test -z "$PIP"],[AC_MSG_WARN([pip not found - continuing without python uninstall support])]) ]) ]) AM_CONDITIONAL([USE_CYTHON], [test -n "$CYTHON"]) AM_CONDITIONAL([HAVE_PIP], [test -n "$PIP"]) case "${host_os}" in "") SYS=unknown ;; *android*) SYS=android ;; linux*) SYS=linux ;; darwin*) SYS=darwin ;; mingw32*) SYS=mingw32 WIN32=1 AC_DEFINE([_POSIX_SOURCE], [1], [IEEE Std 1003.1.]) AC_DEFINE([_POSIX_C_SOURCE], [200809L], [IEEE Std 1003.1.]) AC_DEFINE([_XOPEN_SOURCE], [700], [POSIX and XPG 7th edition]) AC_DEFINE([_XOPEN_SOURCE_EXTENDED], [1], [XPG things and X/Open Unix extensions.]) AC_DEFINE([_BSD_SOURCE], [1], [ISO C, POSIX, and 4.3BSD things.]) LDFLAGS="${LDFLAGS} -lws2_32" AC_SUBST(WINDOWS_ARCH) AC_SUBST(PROGRAMFILES) ;; *) SYS="${host_os}" ;; esac AM_CONDITIONAL(WIN32, [test "x$SYS" = "xmingw32"]) AS_IF([test "x$SYS" = "xandroid"], [], [LDFLAGS="${LDFLAGS} -lpthread"]) LT_INIT() LT_LANG(C++) AX_CXX_COMPILE_STDCXX(11,[noext],[mandatory]) PKG_PROG_PKG_CONFIG() AC_ARG_ENABLE([proxy_server], AS_HELP_STRING([--enable-proxy-server], [Enable proxy server ability]), proxy_server=yes, proxy_server=no) AM_CONDITIONAL(ENABLE_PROXY_SERVER, test x$proxy_server == xyes) AC_ARG_ENABLE([push_notifications], AS_HELP_STRING([--enable-push-notifications], [Enable push notifications support]), push_notifications=yes, push_notifications=no) AM_CONDITIONAL(ENABLE_PUSH_NOTIFICATIONS, test x$push_notifications == xyes) AC_ARG_ENABLE([proxy_server_identity], AS_HELP_STRING([--enable-proxy-server-identity], [Enable proxy server ability]), proxy_server_identity=yes, proxy_server_identity=no) AM_CONDITIONAL(ENABLE_PROXY_SERVER_IDENTITY, test x$proxy_server_identity == xyes -a x$proxy_server == xyes) AC_ARG_ENABLE([proxy_server_identity], AS_HELP_STRING([--enable-proxy-server-identity], [Enable proxy server ability]), proxy_server_identity=yes, proxy_server_identity=no) AC_ARG_ENABLE([proxy_client], AS_HELP_STRING([--enable-proxy-client], [Enable proxy client ability]), proxy_client=yes, proxy_client=no) AM_CONDITIONAL(ENABLE_PROXY_CLIENT, test x$proxy_client == xyes) AC_ARG_ENABLE([tests], AS_HELP_STRING([--enable-tests], [Enable tests]), build_tests=yes, build_tests=no) AM_CONDITIONAL(ENABLE_TESTS, test x$build_tests == xyes) AM_COND_IF([ENABLE_TESTS], [ PKG_CHECK_MODULES([CppUnit], [cppunit >= 1.12]) ]) AM_CONDITIONAL(PROXY_CLIENT_OR_SERVER, test x$proxy_client == xyes | test x$proxy_server == xyes) PKG_CHECK_MODULES([Nettle], [nettle >= 2.4]) PKG_CHECK_MODULES([GnuTLS], [gnutls >= 3.3]) PKG_CHECK_MODULES([MsgPack], [msgpack >= 1.2]) AC_ARG_WITH([jsoncpp], AS_HELP_STRING([--without-jsoncpp], [Build without JsonCpp support])) AS_IF([test "x$with_jsoncpp" != "xno"], [PKG_CHECK_MODULES([JsonCpp], [jsoncpp >= 1.7.2], [have_jsoncpp=yes], [have_jsoncpp=no])], [have_jsoncpp=no]) AS_IF([test "x$have_jsoncpp" = "xyes"], [ AC_MSG_NOTICE([Using JsonCpp]) CPPFLAGS+=" -DOPENDHT_JSONCPP=1" ], [ AC_MSG_NOTICE([Not using JsonCpp]) AM_COND_IF(PROXY_CLIENT_OR_SERVER, AC_MSG_ERROR(["JsonCpp is required for proxy/push notification support"])) ]) AM_COND_IF([PROXY_CLIENT_OR_SERVER], [ AC_CHECK_LIB(restbed, exit,, AC_MSG_ERROR([Missing restbed files])) LDFLAGS="${LDFLAGS} -lrestbed" ]) CXXFLAGS="${CXXFLAGS} -DMSGPACK_DISABLE_LEGACY_NIL -DMSGPACK_DISABLE_LEGACY_CONVERT" dnl Check for Argon2 AC_ARG_WITH([argon2], AS_HELP_STRING([--without-argon2], [Use included Argon2])) AS_IF([test "x$with_argon2" != "xno"], [PKG_CHECK_MODULES([Argon2], [libargon2], [have_argon2=yes], [have_argon2=no])], [have_argon2=no]) AS_IF([test "x$have_argon2" = "xyes"], [ AC_MSG_NOTICE([Using system Argon2]) AC_SUBST(argon2_lib, [", libargon2"]) ], [ AS_IF([test "x$with_argon2" = "xyes"], [ AC_MSG_ERROR([Argon2 requested but not found]) ],[ AC_MSG_NOTICE([Using included Argon2]) AC_SUBST(Argon2_CFLAGS, "-I\${top_srcdir}/argon2/src -I\${top_srcdir}/argon2/include") AC_SUBST(Argon2_LIBS, "libargon2.la") AC_SUBST(Argon2_LDFLAGS, "-L\${abs_top_srcdir}/argon2/src/.libs") ]) ]) AM_CONDITIONAL([WITH_INCLUDED_ARGON2], [test "x$have_argon2" = "xno"]) AC_ARG_ENABLE([tools], AS_HELP_STRING([--disable-tools],[Disable tools (CLI DHT node)]),,build_tools=yes) AM_CONDITIONAL(ENABLE_TOOLS, test x$build_tools == xyes) AM_COND_IF([ENABLE_TOOLS], [ AC_CHECK_HEADERS([readline/readline.h readline/history.h], [], [ AC_MSG_ERROR([unable to find readline.h]) ]) ]) AM_COND_IF(ENABLE_PROXY_SERVER, [CPPFLAGS+=" -DOPENDHT_PROXY_SERVER=true"], [CPPFLAGS+=" -DOPENDHT_PROXY_SERVER=false"]) AM_COND_IF(ENABLE_PROXY_CLIENT, [CPPFLAGS+=" -DOPENDHT_PROXY_CLIENT=true"], [CPPFLAGS+=" -DOPENDHT_PROXY_CLIENT=false"]) AM_COND_IF(ENABLE_PUSH_NOTIFICATIONS, [CPPFLAGS+=" -DOPENDHT_PUSH_NOTIFICATIONS=true"], [CPPFLAGS+=" -DOPENDHT_PUSH_NOTIFICATIONS=false"]) AM_COND_IF(ENABLE_PROXY_SERVER_IDENTITY, [CPPFLAGS+=" -DOPENDHT_PROXY_SERVER_IDENTITY=true"], [CPPFLAGS+=" -DOPENDHT_PROXY_SERVER_IDENTITY=false"]) AM_COND_IF([HAVE_DOXYGEN], [ AC_CONFIG_FILES([doc/Doxyfile doc/Makefile]) ]) dnl Configure setup.py if we build the python module AM_COND_IF([USE_CYTHON], [ AC_SUBST(CURRENT_SOURCE_DIR, ".") AC_SUBST(CURRENT_BINARY_DIR, ".") AC_SUBST(PROJECT_SOURCE_DIR, "..") AC_SUBST(PROJECT_BINARY_DIR, "../src/.libs") AC_CONFIG_FILES([python/Makefile python/setup.py]) ]) AC_CONFIG_FILES([Makefile src/Makefile tools/Makefile tests/Makefile opendht.pc]) AC_OUTPUT opendht-1.8.1/doc/000077500000000000000000000000001341145056700137355ustar00rootroot00000000000000opendht-1.8.1/doc/CMakeLists.txt000066400000000000000000000013111341145056700164710ustar00rootroot00000000000000if (OPENDHT_TOOLS) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dhtnode.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1) endif () if (OPENDHT_DOCUMENTATION) if (NOT DOXYGEN_FOUND) message(FATAL_ERROR "Doxygen is needed to build the documentation.") endif() configure_file (Doxyfile.in Doxyfile @ONLY) add_custom_target(doc ALL COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generating API documentation with Doxygen" VERBATIM) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/opendht) endif() opendht-1.8.1/doc/Doxyfile.in000066400000000000000000001210621341145056700160520ustar00rootroot00000000000000# Doxyfile 1.8.9.1 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for this project. #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- DOXYFILE_ENCODING = UTF-8 PROJECT_NAME = @PACKAGE_NAME@ PROJECT_NUMBER = @PACKAGE_VERSION@ PROJECT_BRIEF = "C++ Distributed Hash Table" PROJECT_LOGO = OUTPUT_DIRECTORY = CREATE_SUBDIRS = NO ALLOW_UNICODE_NAMES = NO OUTPUT_LANGUAGE = English BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ABBREVIATE_BRIEF = ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = YES STRIP_FROM_PATH = STRIP_FROM_INC_PATH = SHORT_NAMES = NO JAVADOC_AUTOBRIEF = NO QT_AUTOBRIEF = NO MULTILINE_CPP_IS_BRIEF = NO INHERIT_DOCS = YES SEPARATE_MEMBER_PAGES = NO TAB_SIZE = 4 ALIASES = TCL_SUBST = OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO OPTIMIZE_FOR_FORTRAN = NO OPTIMIZE_OUTPUT_VHDL = NO EXTENSION_MAPPING = MARKDOWN_SUPPORT = YES AUTOLINK_SUPPORT = YES BUILTIN_STL_SUPPORT = YES CPP_CLI_SUPPORT = NO SIP_SUPPORT = NO IDL_PROPERTY_SUPPORT = YES DISTRIBUTE_GROUP_DOC = NO SUBGROUPING = YES INLINE_GROUPED_CLASSES = NO INLINE_SIMPLE_STRUCTS = NO TYPEDEF_HIDES_STRUCT = NO LOOKUP_CACHE_SIZE = 0 #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- EXTRACT_ALL = NO EXTRACT_PRIVATE = NO EXTRACT_PACKAGE = NO EXTRACT_STATIC = YES EXTRACT_LOCAL_CLASSES = YES EXTRACT_LOCAL_METHODS = NO EXTRACT_ANON_NSPACES = NO HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO HIDE_FRIEND_COMPOUNDS = NO HIDE_IN_BODY_DOCS = NO INTERNAL_DOCS = NO CASE_SENSE_NAMES = YES HIDE_SCOPE_NAMES = NO HIDE_COMPOUND_REFERENCE= NO SHOW_INCLUDE_FILES = YES SHOW_GROUPED_MEMB_INC = NO FORCE_LOCAL_INCLUDES = NO INLINE_INFO = YES SORT_MEMBER_DOCS = YES SORT_BRIEF_DOCS = NO SORT_MEMBERS_CTORS_1ST = NO SORT_GROUP_NAMES = NO SORT_BY_SCOPE_NAME = NO STRICT_PROTO_MATCHING = NO GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES GENERATE_DEPRECATEDLIST= YES ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 SHOW_USED_FILES = YES SHOW_FILES = YES SHOW_NAMESPACES = YES FILE_VERSION_FILTER = LAYOUT_FILE = CITE_BIB_FILES = #--------------------------------------------------------------------------- # Configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = YES WARNINGS = YES WARN_IF_UNDOCUMENTED = NO WARN_IF_DOC_ERROR = YES WARN_NO_PARAMDOC = NO WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- # Configuration options related to the input files #--------------------------------------------------------------------------- INPUT = @top_srcdir@/include INPUT_ENCODING = UTF-8 FILE_PATTERNS = *.cpp *.h RECURSIVE = YES EXCLUDE = @top_srcdir@/include/opendht/serialize.h EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXCLUDE_SYMBOLS = EXAMPLE_PATH = EXAMPLE_PATTERNS = EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = FILTER_PATTERNS = FILTER_SOURCE_FILES = NO FILTER_SOURCE_PATTERNS = USE_MDFILE_AS_MAINPAGE = #--------------------------------------------------------------------------- # Configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will be # generated. Documented entities will be cross-referenced with these sources. # # Note: To get rid of all source code in the generated output, make sure that # also VERBATIM_HEADERS is set to NO. # The default value is: NO. SOURCE_BROWSER = YES INLINE_SOURCES = NO STRIP_CODE_COMMENTS = YES REFERENCED_BY_RELATION = NO REFERENCES_RELATION = NO REFERENCES_LINK_SOURCE = YES SOURCE_TOOLTIPS = YES USE_HTAGS = NO VERBATIM_HEADERS = YES CLANG_ASSISTED_PARSING = NO CLANG_OPTIONS = #--------------------------------------------------------------------------- # Configuration options related to the alphabetical class index #--------------------------------------------------------------------------- ALPHABETICAL_INDEX = NO COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output # The default value is: YES. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of # it. # The default directory is: html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for each # generated HTML page (for example: .htm, .php, .asp). # The default value is: .html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a user-defined HTML header file for # each generated HTML page. If the tag is left blank doxygen will generate a # standard header. # # To get valid HTML the header file that includes any scripts and style sheets # that doxygen needs, which is dependent on the configuration options used (e.g. # the setting GENERATE_TREEVIEW). It is highly recommended to start with a # default header using # doxygen -w html new_header.html new_footer.html new_stylesheet.css # YourConfigFile # and then modify the file new_header.html. See also section "Doxygen usage" # for information on how to generate the default header that doxygen normally # uses. # Note: The header is subject to change so you typically have to regenerate the # default header when upgrading to a newer version of doxygen. For a description # of the possible markers and block names see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each # generated HTML page. If the tag is left blank doxygen will generate a standard # footer. See HTML_HEADER for more information on how to generate a default # footer and what special commands can be used inside the footer. See also # section "Doxygen usage" for information on how to generate the default footer # that doxygen normally uses. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style # sheet that is used by each HTML page. It can be used to fine-tune the look of # the HTML output. If left blank doxygen will generate a default style sheet. # See also section "Doxygen usage" for information on how to generate the style # sheet that doxygen normally uses. # Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as # it is more robust and this tag (HTML_STYLESHEET) will in the future become # obsolete. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_STYLESHEET = # The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined # cascading style sheets that are included after the standard style sheets # created by doxygen. Using this option one can overrule certain style aspects. # This is preferred over using HTML_STYLESHEET since it does not replace the # standard style sheet and is therefore more robust against future updates. # Doxygen will copy the style sheet files to the output directory. # Note: The order of the extra style sheet files is of importance (e.g. the last # style sheet in the list overrules the setting of the previous ones in the # list). For an example see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_STYLESHEET = # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or # other source files which should be copied to the HTML output directory. Note # that these files will be copied to the base HTML output directory. Use the # $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these # files. In the HTML_STYLESHEET file, use the file name only. Also note that the # files will be copied as-is; there are no commands or markers available. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_FILES = # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen # will adjust the colors in the style sheet and background images according to # this color. Hue is specified as an angle on a colorwheel, see # http://en.wikipedia.org/wiki/Hue for more information. For instance the value # 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 # purple, and 360 is red again. # Minimum value: 0, maximum value: 359, default value: 220. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_HUE = 220 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors # in the HTML output. For a value of 0 the output will use grayscales only. A # value of 255 will produce the most vivid colors. # Minimum value: 0, maximum value: 255, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_SAT = 100 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the # luminance component of the colors in the HTML output. Values below 100 # gradually make the output lighter, whereas values above 100 make the output # darker. The value divided by 100 is the actual gamma applied, so 80 represents # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not # change the gamma. # Minimum value: 40, maximum value: 240, default value: 80. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_GAMMA = 80 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML # page will contain the date and time when the page was generated. Setting this # to NO can help when comparing the output of multiple runs. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_TIMESTAMP = YES # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the # page has loaded. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_DYNAMIC_SECTIONS = NO # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries # shown in the various tree structured indices initially; the user can expand # and collapse entries dynamically later on. Doxygen will expand the tree to # such a level that at most the specified number of entries are visible (unless # a fully collapsed tree already exceeds this amount). So setting the number of # entries 1 will produce a full collapsed tree by default. 0 is a special value # representing an infinite number of entries and will result in a full expanded # tree by default. # Minimum value: 0, maximum value: 9999, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_INDEX_NUM_ENTRIES = 100 # If the GENERATE_DOCSET tag is set to YES, additional index files will be # generated that can be used as input for Apple's Xcode 3 integrated development # environment (see: http://developer.apple.com/tools/xcode/), introduced with # OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a # Makefile in the HTML output directory. Running make will produce the docset in # that directory and running make install will install the docset in # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at # startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html # for more information. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_DOCSET = NO # This tag determines the name of the docset feed. A documentation feed provides # an umbrella under which multiple documentation sets from a single provider # (such as a company or product suite) can be grouped. # The default value is: Doxygen generated docs. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_FEEDNAME = "Doxygen generated docs" # This tag specifies a string that should uniquely identify the documentation # set bundle. This should be a reverse domain-name style string, e.g. # com.mycompany.MyDocSet. Doxygen will append .docset to the name. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_BUNDLE_ID = org.doxygen.Project # The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify # the documentation publisher. This should be a reverse domain-name style # string, e.g. com.mycompany.MyDocSet.documentation. # The default value is: org.doxygen.Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_ID = com.savoirfairelinux # The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. # The default value is: Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_NAME = Savoir-faire Linux # If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three # additional HTML index files: index.hhp, index.hhc, and index.hhk. The # index.hhp is a project file that can be read by Microsoft's HTML Help Workshop # (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on # Windows. # # The HTML Help Workshop contains a compiler that can convert all HTML output # generated by doxygen into a single compiled HTML file (.chm). Compiled HTML # files are now used as the Windows 98 help format, and will replace the old # Windows help format (.hlp) on all Windows platforms in the future. Compressed # HTML files also contain an index, a table of contents, and you can search for # words in the documentation. The HTML workshop also contains a viewer for # compressed HTML files. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_HTMLHELP = NO # The CHM_FILE tag can be used to specify the file name of the resulting .chm # file. You can add a path in front of the file if the result should not be # written to the html output directory. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_FILE = # The HHC_LOCATION tag can be used to specify the location (absolute path # including file name) of the HTML help compiler (hhc.exe). If non-empty, # doxygen will try to run the HTML help compiler on the generated index.hhp. # The file has to be specified with full path. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. HHC_LOCATION = # The GENERATE_CHI flag controls if a separate .chi index file is generated # (YES) or that it should be included in the master .chm file (NO). # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. GENERATE_CHI = NO # The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) # and project file content. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_INDEX_ENCODING = # The BINARY_TOC flag controls whether a binary table of contents is generated # (YES) or a normal table of contents (NO) in the .chm file. Furthermore it # enables the Previous and Next buttons. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members to # the table of contents of the HTML help documentation and to the tree view. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. TOC_EXPAND = NO # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that # can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help # (.qch) of the generated HTML documentation. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_QHP = NO # If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify # the file name of the resulting .qch file. The path specified is relative to # the HTML output folder. # This tag requires that the tag GENERATE_QHP is set to YES. QCH_FILE = # The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help # Project output. For more information please see Qt Help Project / Namespace # (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_NAMESPACE = org.doxygen.Project # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt # Help Project output. For more information please see Qt Help Project / Virtual # Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- # folders). # The default value is: doc. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_VIRTUAL_FOLDER = doc # If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom # filter to add. For more information please see Qt Help Project / Custom # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- # filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_NAME = # The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the # custom filter to add. For more information please see Qt Help Project / Custom # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- # filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_ATTRS = # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this # project's filter section matches. Qt Help Project / Filter Attributes (see: # http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_SECT_FILTER_ATTRS = # The QHG_LOCATION tag can be used to specify the location of Qt's # qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the # generated .qhp file. # This tag requires that the tag GENERATE_QHP is set to YES. QHG_LOCATION = # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be # generated, together with the HTML files, they form an Eclipse help plugin. To # install this plugin and make it available under the help contents menu in # Eclipse, the contents of the directory containing the HTML and XML files needs # to be copied into the plugins directory of eclipse. The name of the directory # within the plugins directory should be the same as the ECLIPSE_DOC_ID value. # After copying Eclipse needs to be restarted before the help appears. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_ECLIPSEHELP = NO # A unique identifier for the Eclipse help plugin. When installing the plugin # the directory name containing the HTML and XML files should also have this # name. Each documentation set should have its own identifier. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. ECLIPSE_DOC_ID = org.doxygen.Project # If you want full control over the layout of the generated HTML pages it might # be necessary to disable the index and replace it with your own. The # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top # of each HTML page. A value of NO enables the index and the value YES disables # it. Since the tabs in the index contain the same information as the navigation # tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. DISABLE_INDEX = NO # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index # structure should be generated to display hierarchical information. If the tag # value is set to YES, a side panel will be generated containing a tree-like # index structure (just like the one that is generated for HTML Help). For this # to work a browser that supports JavaScript, DHTML, CSS and frames is required # (i.e. any modern browser). Windows users are probably better off using the # HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can # further fine-tune the look of the index. As an example, the default style # sheet generated by doxygen has an example that shows how to put an image at # the root of the tree instead of the PROJECT_NAME. Since the tree basically has # the same information as the tab index, you could consider setting # DISABLE_INDEX to YES when enabling this option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_TREEVIEW = NO # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that # doxygen will group on one line in the generated HTML documentation. # # Note that a value of 0 will completely suppress the enum values from appearing # in the overview section. # Minimum value: 0, maximum value: 20, default value: 4. # This tag requires that the tag GENERATE_HTML is set to YES. ENUM_VALUES_PER_LINE = 4 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used # to set the initial width (in pixels) of the frame in which the tree is shown. # Minimum value: 0, maximum value: 1500, default value: 250. # This tag requires that the tag GENERATE_HTML is set to YES. TREEVIEW_WIDTH = 250 # If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to # external symbols imported via tag files in a separate window. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. EXT_LINKS_IN_WINDOW = NO # Use this tag to change the font size of LaTeX formulas included as images in # the HTML documentation. When you change the font size after a successful # doxygen run you need to manually remove any form_*.png images from the HTML # output directory to force them to be regenerated. # Minimum value: 8, maximum value: 50, default value: 10. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_FONTSIZE = 10 # Use the FORMULA_TRANPARENT tag to determine whether or not the images # generated for formulas are transparent PNGs. Transparent PNGs are not # supported properly for IE 6.0, but are supported on all modern browsers. # # Note that when changing this option you need to delete any form_*.png files in # the HTML output directory before the changes have effect. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_TRANSPARENT = YES # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see # http://www.mathjax.org) which uses client side Javascript for the rendering # instead of using pre-rendered bitmaps. Use this if you do not have LaTeX # installed or if you want to formulas look prettier in the HTML output. When # enabled you may also need to install MathJax separately and configure the path # to it using the MATHJAX_RELPATH option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. USE_MATHJAX = NO # When MathJax is enabled you can set the default output format to be used for # the MathJax output. See the MathJax site (see: # http://docs.mathjax.org/en/latest/output.html) for more details. # Possible values are: HTML-CSS (which is slower, but has the best # compatibility), NativeMML (i.e. MathML) and SVG. # The default value is: HTML-CSS. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_FORMAT = HTML-CSS # When MathJax is enabled you need to specify the location relative to the HTML # output directory using the MATHJAX_RELPATH option. The destination directory # should contain the MathJax.js script. For instance, if the mathjax directory # is located at the same level as the HTML output directory, then # MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax # Content Delivery Network so you can quickly see the result without installing # MathJax. However, it is strongly recommended to install a local copy of # MathJax from http://www.mathjax.org before deployment. # The default value is: http://cdn.mathjax.org/mathjax/latest. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax # extension names that should be enabled during MathJax rendering. For example # MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_EXTENSIONS = # The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces # of code that will be used on startup of the MathJax code. See the MathJax site # (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an # example see the documentation. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_CODEFILE = # When the SEARCHENGINE tag is enabled doxygen will generate a search box for # the HTML output. The underlying search engine uses javascript and DHTML and # should work on any modern browser. Note that when using HTML help # (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) # there is already a search function so this one should typically be disabled. # For large projects the javascript based search engine can be slow, then # enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to # search using the keyboard; to jump to the search box use + S # (what the is depends on the OS and browser, but it is typically # , /