mirror of https://github.com/tp4a/teleport
add core-json-rpc `get_config`
parent
bfedef4a4e
commit
72583eb676
|
@ -1,3 +1,7 @@
|
||||||
|
#ifdef _DEBUG
|
||||||
|
#include <vld.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Name of package */
|
/* Name of package */
|
||||||
#define PACKAGE "libssh"
|
#define PACKAGE "libssh"
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;LIBSSH_STATIC;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;_DEBUG;LIBSSH_STATIC;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<AdditionalIncludeDirectories>.\include;..\openssl\inc32;..\..\zlib\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>.\include;..\openssl\inc32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;LIBSSH_STATIC;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;LIBSSH_STATIC;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<AdditionalIncludeDirectories>.\include;..\openssl\inc32;..\..\zlib\include</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>.\include;..\openssl\inc32</AdditionalIncludeDirectories>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
|
|
|
@ -5,7 +5,9 @@ teleport项目用到的第三方库
|
||||||
- openssl
|
- openssl
|
||||||
https://www.openssl.org
|
https://www.openssl.org
|
||||||
openssl-1.0.2h
|
openssl-1.0.2h
|
||||||
请按openssl文档所述,编译出openssl的静态库。
|
请按openssl文档所述,编译出openssl的静态库。要编译openssl,需要
|
||||||
|
- perl 建议安装ActivePerl http://www.activestate.com/ActivePerl
|
||||||
|
- nasm http://www.nasm.us
|
||||||
|
|
||||||
|
|
||||||
- jsoncpp
|
- jsoncpp
|
||||||
|
|
|
@ -1,339 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|Win32">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>Win32</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Debug|x64">
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
<ProjectConfiguration Include="Release|x64">
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<Platform>x64</Platform>
|
|
||||||
</ProjectConfiguration>
|
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup Label="Globals">
|
|
||||||
<ProjectGuid>{6548CB1D-A7BA-4A68-9B3F-A5129F77868B}</ProjectGuid>
|
|
||||||
<Keyword>Win32Proj</Keyword>
|
|
||||||
<RootNamespace>tp_core</RootNamespace>
|
|
||||||
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
|
||||||
<ProjectName>tp_core</ProjectName>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v140_xp</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v140_xp</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v140</PlatformToolset>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
|
||||||
<PlatformToolset>v140</PlatformToolset>
|
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
||||||
<ImportGroup Label="ExtensionSettings">
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="Shared">
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
||||||
</ImportGroup>
|
|
||||||
<PropertyGroup Label="UserMacros" />
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
<OutDir>..\..\out\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</OutDir>
|
|
||||||
<IntDir>..\..\out\_tmp_\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<LinkIncremental>true</LinkIncremental>
|
|
||||||
<OutDir>..\..\out\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</OutDir>
|
|
||||||
<IntDir>..\..\out\_tmp_\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
<OutDir>..\..\out\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</OutDir>
|
|
||||||
<IntDir>..\..\out\_tmp_\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<LinkIncremental>false</LinkIncremental>
|
|
||||||
<OutDir>..\..\out\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</OutDir>
|
|
||||||
<IntDir>..\..\out\_tmp_\$(ProjectName)\$(PlatformTarget)\$(Configuration)\</IntDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;LIBSSH_STATIC;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;MG_ENABLE_THREADS;MG_DISABLE_HTTP_DIGEST_AUTH;MG_DISABLE_MQTT;MG_DISABLE_SSI;MG_DISABLE_FILESYSTEM;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<SDLCheck>true</SDLCheck>
|
|
||||||
<AdditionalIncludeDirectories>../../external/windows/libuv/include;../../external/windows/openssl/include;../../external/windows/zlib/include;../../external/windows/mbedtls/include;../../external/windows/libssh/include;../../external/common/jsoncpp/include;../../external/common/sqlite;../../../pyshell/pys/include;../../../pyshell/pys/external/windows/python/include;d:/apps/vld/include</AdditionalIncludeDirectories>
|
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Console</SubSystem>
|
|
||||||
<AdditionalLibraryDirectories>../../external/windows/openssl/lib;../../external/windows/zlib/lib;../../external/windows/libssh/lib;../../../pyshell/pys/lib;d:/apps/vld/lib/win32</AdditionalLibraryDirectories>
|
|
||||||
<IgnoreSpecificDefaultLibraries>libcmt.lib</IgnoreSpecificDefaultLibraries>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
||||||
<ClCompile>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<Optimization>Disabled</Optimization>
|
|
||||||
<PreprocessorDefinitions>_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<SDLCheck>true</SDLCheck>
|
|
||||||
<AdditionalIncludeDirectories>../../external/windows/libuv/include;../../external/windows/openssl/include;../../external/windows/zlib/include;../../external/windows/mbedtls/include;../../external/windows/libssh/include;../../external/common/jsoncpp/include;../../external/common/sqlite;d:/apps/vld/include</AdditionalIncludeDirectories>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<AdditionalLibraryDirectories>../../external/windows/openssl/lib;../../external/windows/zlib/lib;../../external/windows/libssh/lib</AdditionalLibraryDirectories>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
||||||
<ClCompile>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<Optimization>MaxSpeed</Optimization>
|
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;LIBSSH_STATIC;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;MG_ENABLE_THREADS;MG_DISABLE_HTTP_DIGEST_AUTH;MG_DISABLE_MQTT;MG_DISABLE_SSI;MG_DISABLE_FILESYSTEM;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<SDLCheck>true</SDLCheck>
|
|
||||||
<AdditionalIncludeDirectories>../../external/windows/libuv/include;../../external/windows/openssl/include;../../external/windows/zlib/include;../../external/windows/mbedtls/include;../../external/windows/libssh/include;../../external/common/jsoncpp/include;../../external/common/sqlite;../../../pyshell/pys/include;../../../pyshell/pys/external/windows/python/include</AdditionalIncludeDirectories>
|
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Console</SubSystem>
|
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
|
||||||
<AdditionalLibraryDirectories>../../external/windows/openssl/lib;../../external/windows/zlib/lib;../../external/windows/libssh/lib;../../../pyshell/pys/lib</AdditionalLibraryDirectories>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
||||||
<ClCompile>
|
|
||||||
<WarningLevel>Level3</WarningLevel>
|
|
||||||
<PrecompiledHeader>
|
|
||||||
</PrecompiledHeader>
|
|
||||||
<Optimization>MaxSpeed</Optimization>
|
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
||||||
<PreprocessorDefinitions>NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
||||||
<SDLCheck>true</SDLCheck>
|
|
||||||
<AdditionalIncludeDirectories>../../external/windows/libuv/include;../../external/windows/openssl/include;../../external/windows/zlib/include;../../external/windows/mbedtls/include;../../external/windows/libssh/include;../../external/common/jsoncpp/include;../../external/common/sqlite</AdditionalIncludeDirectories>
|
|
||||||
</ClCompile>
|
|
||||||
<Link>
|
|
||||||
<SubSystem>Windows</SubSystem>
|
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
|
||||||
<AdditionalLibraryDirectories>../../external/windows/openssl/lib;../../external/windows/zlib/lib;../../external/windows/libssh/lib</AdditionalLibraryDirectories>
|
|
||||||
</Link>
|
|
||||||
</ItemDefinitionGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\external\common\jsoncpp\src\json_reader.cpp" />
|
|
||||||
<ClCompile Include="..\..\external\common\jsoncpp\src\json_value.cpp" />
|
|
||||||
<ClCompile Include="..\..\external\common\jsoncpp\src\json_writer.cpp" />
|
|
||||||
<ClCompile Include="..\..\external\common\sqlite\sqlite3.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\fs-poll.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\inet.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\threadpool.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\uv-common.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\version.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\async.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\core.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\dl.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\error.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\fs-event.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\fs.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\getaddrinfo.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\getnameinfo.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\handle.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\loop-watcher.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\pipe.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\poll.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\process-stdio.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\process.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\req.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\signal.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\snprintf.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\stream.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\tcp.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\thread.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\timer.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\tty.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\udp.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\util.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\winapi.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\libuv\src\win\winsock.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\aes.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\arc4.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\asn1parse.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\base64.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\bignum.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\blowfish.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\camellia.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\ccm.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\certs.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\cipher.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\cipher_wrap.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\ctr_drbg.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\debug.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\des.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\dhm.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\entropy.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\entropy_poll.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\error.c">
|
|
||||||
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)mbedtls_error.obj</ObjectFileName>
|
|
||||||
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)mbedtlserror.obj</ObjectFileName>
|
|
||||||
<ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)mbedtlserror.obj</ObjectFileName>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\gcm.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\md.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\md5.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\md_wrap.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\oid.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\pem.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\pk.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\pkcs12.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\pkcs5.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\pkparse.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\pk_wrap.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\platform.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\ripemd160.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\rsa.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\sha1.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\sha256.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\sha512.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\ssl_ciphersuites.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\ssl_cli.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\ssl_srv.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\ssl_tls.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\timing.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\x509.c" />
|
|
||||||
<ClCompile Include="..\..\external\windows\mbedtls\library\x509_crt.c" />
|
|
||||||
<ClCompile Include="base_record.cpp" />
|
|
||||||
<ClCompile Include="base_session.cpp" />
|
|
||||||
<ClCompile Include="key_file.cpp" />
|
|
||||||
<ClCompile Include="key_helper.cpp" />
|
|
||||||
<ClCompile Include="main.cpp" />
|
|
||||||
<ClCompile Include="mongoose.c" />
|
|
||||||
<ClCompile Include="protocol\rdp\rdp_conn.cpp" />
|
|
||||||
<ClCompile Include="protocol\rdp\rdp_keys.cpp" />
|
|
||||||
<ClCompile Include="protocol\rdp\rdp_package.cpp" />
|
|
||||||
<ClCompile Include="protocol\rdp\rdp_proxy.cpp" />
|
|
||||||
<ClCompile Include="protocol\rdp\rdp_session.cpp" />
|
|
||||||
<ClCompile Include="protocol\ssh\ssh_proxy.cpp" />
|
|
||||||
<ClCompile Include="protocol\ssh\ssh_session.cpp" />
|
|
||||||
<ClCompile Include="protocol\telnet\telnet_conn.cpp" />
|
|
||||||
<ClCompile Include="protocol\telnet\telnet_proxy.cpp" />
|
|
||||||
<ClCompile Include="protocol\telnet\telnet_session.cpp" />
|
|
||||||
<ClCompile Include="ts_cfg.cpp" />
|
|
||||||
<ClCompile Include="ts_crypto.cpp" />
|
|
||||||
<ClCompile Include="ts_db.cpp" />
|
|
||||||
<ClCompile Include="ts_env.cpp" />
|
|
||||||
<ClCompile Include="ts_http_client.cpp" />
|
|
||||||
<ClCompile Include="ts_http_rpc.cpp" />
|
|
||||||
<ClCompile Include="ts_ini.cpp" />
|
|
||||||
<ClCompile Include="ts_log.cpp" />
|
|
||||||
<ClCompile Include="ts_main.cpp" />
|
|
||||||
<ClCompile Include="ts_membuf.cpp" />
|
|
||||||
<ClCompile Include="ts_session.cpp" />
|
|
||||||
<ClCompile Include="ts_stream.cpp" />
|
|
||||||
<ClCompile Include="ts_thread.cpp" />
|
|
||||||
<ClCompile Include="ts_util.cpp" />
|
|
||||||
<ClCompile Include="ts_win_service_helper.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\heap-inl.h" />
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\queue.h" />
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\uv-common.h" />
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\win\atomicops-inl.h" />
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\win\handle-inl.h" />
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\win\internal.h" />
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\win\req-inl.h" />
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\win\stream-inl.h" />
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\win\winapi.h" />
|
|
||||||
<ClInclude Include="..\..\external\windows\libuv\src\win\winsock.h" />
|
|
||||||
<ClInclude Include="base_record.h" />
|
|
||||||
<ClInclude Include="base_session.h" />
|
|
||||||
<ClInclude Include="key_file.h" />
|
|
||||||
<ClInclude Include="key_helper.h" />
|
|
||||||
<ClInclude Include="mongoose.h" />
|
|
||||||
<ClInclude Include="protocol\rdp\rdp_conn.h" />
|
|
||||||
<ClInclude Include="protocol\rdp\rdp_keys.h" />
|
|
||||||
<ClInclude Include="protocol\rdp\rdp_package.h" />
|
|
||||||
<ClInclude Include="protocol\rdp\rdp_proxy.h" />
|
|
||||||
<ClInclude Include="protocol\rdp\rdp_session.h" />
|
|
||||||
<ClInclude Include="protocol\ssh\ssh_proxy.h" />
|
|
||||||
<ClInclude Include="protocol\ssh\ssh_session.h" />
|
|
||||||
<ClInclude Include="protocol\telnet\telnet_conn.h" />
|
|
||||||
<ClInclude Include="protocol\telnet\telnet_proxy.h" />
|
|
||||||
<ClInclude Include="protocol\telnet\telnet_session.h" />
|
|
||||||
<ClInclude Include="resource.h" />
|
|
||||||
<ClInclude Include="ts_cfg.h" />
|
|
||||||
<ClInclude Include="ts_common.h" />
|
|
||||||
<ClInclude Include="ts_config.h" />
|
|
||||||
<ClInclude Include="ts_const.h" />
|
|
||||||
<ClInclude Include="ts_crypto.h" />
|
|
||||||
<ClInclude Include="ts_db.h" />
|
|
||||||
<ClInclude Include="ts_env.h" />
|
|
||||||
<ClInclude Include="ts_http_client.h" />
|
|
||||||
<ClInclude Include="ts_http_rpc.h" />
|
|
||||||
<ClInclude Include="ts_ini.h" />
|
|
||||||
<ClInclude Include="ts_log.h" />
|
|
||||||
<ClInclude Include="ts_main.h" />
|
|
||||||
<ClInclude Include="ts_membuf.h" />
|
|
||||||
<ClInclude Include="ts_session.h" />
|
|
||||||
<ClInclude Include="ts_stream.h" />
|
|
||||||
<ClInclude Include="ts_thread.h" />
|
|
||||||
<ClInclude Include="ts_types.h" />
|
|
||||||
<ClInclude Include="ts_util.h" />
|
|
||||||
<ClInclude Include="ts_win_service_helper.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="..\..\external\common\jsoncpp\src\json_valueiterator.inl" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="tp_core.rc" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Image Include="res\tp_core.ico" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
||||||
<ImportGroup Label="ExtensionTargets">
|
|
||||||
</ImportGroup>
|
|
||||||
</Project>
|
|
|
@ -256,6 +256,10 @@ void TsHttpRpc::_process_request(const ex_astr& func_cmd, const Json::Value& jso
|
||||||
{
|
{
|
||||||
_rpc_func_request_session(json_param, buf);
|
_rpc_func_request_session(json_param, buf);
|
||||||
}
|
}
|
||||||
|
else if (func_cmd == "get_config")
|
||||||
|
{
|
||||||
|
_rpc_func_get_config(json_param, buf);
|
||||||
|
}
|
||||||
else if (func_cmd == "enc")
|
else if (func_cmd == "enc")
|
||||||
{
|
{
|
||||||
_rpc_func_enc(json_param, buf);
|
_rpc_func_enc(json_param, buf);
|
||||||
|
@ -290,27 +294,28 @@ void TsHttpRpc::_rpc_func_get_config(const Json::Value& json_param, ex_astr& buf
|
||||||
{
|
{
|
||||||
if (it->first.length() > 9 && 0 == wcsncmp(it->first.c_str(), L"protocol-", 9))
|
if (it->first.length() > 9 && 0 == wcsncmp(it->first.c_str(), L"protocol-", 9))
|
||||||
{
|
{
|
||||||
ex_wstr libname;
|
ex_wstr name;
|
||||||
if (!it->second->GetStr(L"lib", libname))
|
name.assign(it->first, 9);
|
||||||
continue;
|
ex_astr _name;
|
||||||
|
ex_wstr2astr(name, _name);
|
||||||
|
|
||||||
bool enabled = false;
|
bool enabled = false;
|
||||||
it->second->GetBool(L"enabled", enabled, false);
|
it->second->GetBool(L"enabled", enabled, false);
|
||||||
if (!enabled)
|
|
||||||
{
|
ex_wstr ip;
|
||||||
EXLOGV(L"[core] `%ls` not enabled.\n", libname.c_str());
|
if (!it->second->GetStr(L"bind-ip", ip))
|
||||||
continue;
|
continue;
|
||||||
}
|
ex_astr _ip;
|
||||||
|
ex_wstr2astr(ip, _ip);
|
||||||
|
|
||||||
// if (!g_tpp_mgr.load_tpp(libname))
|
int port;
|
||||||
// {
|
it->second->GetInt(L"bind-port", port, 52189);
|
||||||
// all_ok = false;
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
jr_data["sid"] = sid;
|
jr_data[_name.c_str()]["enable"] = enabled;
|
||||||
|
jr_data[_name.c_str()]["ip"] = _ip;
|
||||||
|
jr_data[_name.c_str()]["port"] = port;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_create_json_ret(buf, TSR_OK, jr_data);
|
_create_json_ret(buf, TSR_OK, jr_data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue