Changeset c327ce5 in nscp
- Timestamp:
- 07/17/12 15:37:04 (10 months ago)
- Branches:
- master, 0.4.1, 0.4.2
- Children:
- d6194a0
- Parents:
- 53be5c8
- Files:
-
- 2 added
- 1 deleted
- 23 edited
-
build/cmake/GoogleProtoBuf.cmake (modified) (1 diff)
-
build/cmake/functions.cmake (modified) (1 diff)
-
changelog (modified) (1 diff)
-
docs/CMakeLists.txt (modified) (1 diff)
-
files/CMakeLists.txt (modified) (1 diff)
-
helpers/installers/installer/CMakeLists.txt (modified) (2 diffs)
-
include/cryptopp/cryptopp.hpp (added)
-
include/nsca/client/nsca_client_protocol.hpp (modified) (1 diff)
-
include/nsca/nsca_enrypt.hpp (deleted)
-
include/nsca/nsca_packet.hpp (modified) (1 diff)
-
include/nsca/server/parser.hpp (modified) (2 diffs)
-
include/nsca/server/protocol.hpp (modified) (3 diffs)
-
libs/cryptopp/CMakeLists.txt (modified) (3 diffs)
-
libs/cryptopp/cryptopp.cpp (added)
-
libs/lua_pb/CMakeLists.txt (modified) (1 diff)
-
modules/GraphiteClient/GraphiteClient.h (modified) (2 diffs)
-
modules/LUAScript/script_wrapper.hpp (modified) (1 diff)
-
modules/NSCAClient/CMakeLists.txt (modified) (1 diff)
-
modules/NSCAClient/NSCAClient.cpp (modified) (3 diffs)
-
modules/NSCAClient/NSCAClient.h (modified) (3 diffs)
-
modules/NSCAServer/CMakeLists.txt (modified) (1 diff)
-
modules/NSCAServer/NSCAServer.cpp (modified) (1 diff)
-
modules/NSCAServer/NSCAServer.h (modified) (1 diff)
-
modules/NSCAServer/handler_impl.hpp (modified) (2 diffs)
-
scripts/CMakeLists.txt (modified) (2 diffs)
-
version.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
build/cmake/GoogleProtoBuf.cmake
r53be5c8 rc327ce5 43 43 44 44 ADD_CUSTOM_COMMAND( 45 OUTPUT ${${VAR}} ${INCL} ${PROJECT_BINARY_DIR}/scripts/python/lib/${FIL_WE}_pb2.py45 OUTPUT ${${VAR}} ${INCL} ${PROJECT_BINARY_DIR}/scripts/python/lib/${FIL_WE}_pb2.py 46 46 COMMAND ${PROTOBUF_PROTOC_EXECUTABLE} 47 47 ARGS ${ARGS} -
build/cmake/functions.cmake
ra48fd4c rc327ce5 30 30 #message(STATUS " - Copying ${source_file} to ${target_file}...") 31 31 ADD_CUSTOM_COMMAND( 32 TARGET ${target}33 PRE_BUILD34 32 OUTPUT ${target_file} 35 COMMAND cmake 36 ARGS -E copy "${source_file}" "${target_file}" 33 COMMAND cmake ARGS -E copy "${source_file}" "${target_file}" 37 34 OUTPUT ${target_file} 38 35 COMMENT Copying ${source_file} to ${target_file} 36 DEPENDS ${source_file} 39 37 ) 40 SET(ALL_FILES ${ALL_FILES}${target_file})38 LIST(APPEND ALL_FILES ${target_file}) 41 39 ENDMACRO(copy_single_file) 42 40 -
changelog
r53be5c8 rc327ce5 4 4 * Fix dependonservice LanManWorkStation (old win) 5 5 * Fix RtlStringFromGUID problem on NT4 6 7 2012-07-17 MickeM 8 * Performance enhancements to build time 6 9 7 10 2012-07-11 MickeM -
docs/CMakeLists.txt
ra48fd4c rc327ce5 5 5 copy_single_file(copy_docs "NSClient++ Reference Manual.pdf" docs) 6 6 7 ADD_CUSTOM_TARGET(copy_docs ALL)7 ADD_CUSTOM_TARGET(copy_docs DEPENDS ${ALL_FILES}) 8 8 SET_TARGET_PROPERTIES(copy_docs PROPERTIES FOLDER "files") 9 9 #INSTALL(CODE "FILE(INSTALL DESTINATION \${CMAKE_INSTALL_PREFIX}/${destDir} TYPE EXECUTABLE FILES \"${source_file}\")") -
files/CMakeLists.txt
ra48fd4c rc327ce5 1 1 cmake_minimum_required(VERSION 2.6) 2 2 3 SET(ALL_FILES) 3 4 copy_single_file(copy_files license.txt .) 4 5 copy_single_file(copy_files nrpe_dh_512.pem security) 5 6 copy_single_file(copy_files old-settings.map .) 6 7 copy_single_file(copy_files counters.defs .) 8 copy_single_file(copy_files nsclient.dist .) 7 9 copy_single_file(copy_files ../changelog .) 8 10 9 ADD_CUSTOM_TARGET(copy_files ALL)11 ADD_CUSTOM_TARGET(copy_files DEPENDS ${ALL_FILES}) 10 12 SET_TARGET_PROPERTIES(copy_files PROPERTIES FOLDER "files") -
helpers/installers/installer/CMakeLists.txt
r04ef932 rc327ce5 16 16 # WixUI.wixlib 17 17 SET(DEPENDENCIES 18 nscp19 18 main_dll 20 21 check_60s.bat_scripts22 check_battery.vbs_scripts23 check_files.vbs_scripts24 check_long.bat_scripts25 check_no_rdp.bat_scripts26 check_ok.bat_scripts27 check_ping.bat_scripts28 check_printer.vbs_scripts29 check_test.bat_scripts30 check_test.ps1_scripts31 check_test.vbs_scripts32 check_updates.vbs_scripts33 powershell.ps1_scripts34 35 "NagiosPlugins.vbs_script lib"36 "wrapper.vbs_script lib"37 38 "test.py.vbs_script lib"39 "test_second.py.vbs_script lib"40 41 counters.defs_files42 license.txt_files43 nrpe_dh_512.pem_files44 old-settings.map_files45 changelog_files46 47 "Nagios Usage Guide.pdf_docs"48 "NSClient++ Reference Manual.pdf_docs"49 19 ) 50 20 #GET_FILENAME_COMPONENT(_tmp_FILE WixUI_en-us.wxl ABSOLUTE) … … 64 34 ADD_WIX_INSTALLER(${ALIAS} "${SRCS}" "${DEPENDENCIES}" "${LOCALIZATIONS}") 65 35 66 ADD_DEPENDENCIES(${TARGET} ${MAIN_NSCP_TARGET} ${ALL_MODULE_NAMES} ${ALL_TOOL_NAMES} ${ALL_INSTALLERS_DLLS_NAMES} )36 ADD_DEPENDENCIES(${TARGET} ${MAIN_NSCP_TARGET} ${ALL_MODULE_NAMES} ${ALL_TOOL_NAMES} ${ALL_INSTALLERS_DLLS_NAMES} copy_files copy_docs copy_scripts) 67 37 68 38 SET_TARGET_PROPERTIES(${TARGET} PROPERTIES FOLDER "installers") -
include/nsca/client/nsca_client_protocol.hpp
rc3f233d rc327ce5 27 27 std::vector<char> packet_buffer_; 28 28 boost::shared_ptr<client_handler> handler_; 29 nsc a_encryptcrypto_;29 nscp::encryption::engine crypto_; 30 30 int time_; 31 31 nsca::packet packet_; -
include/nsca/nsca_packet.hpp
raf05fa1 rc327ce5 5 5 #include <types.hpp> 6 6 #include <swap_bytes.hpp> 7 #include < nsca/nsca_enrypt.hpp>7 #include <cryptopp/cryptopp.hpp> 8 8 9 9 #include <unicode_char.hpp> -
include/nsca/server/parser.hpp
ra48fd4c rc327ce5 5 5 6 6 #include <nsca/nsca_packet.hpp> 7 #include < nsca/nsca_enrypt.hpp>7 #include <cryptopp/cryptopp.hpp> 8 8 9 9 #include "handler.hpp" … … 31 31 } 32 32 33 void decrypt(nsc a::nsca_encrypt&encryption) {33 void decrypt(nscp::encryption::engine &encryption) { 34 34 encryption.decrypt_buffer(buffer_); 35 35 } -
include/nsca/server/protocol.hpp
ra48fd4c rc327ce5 38 38 39 39 std::string data_; 40 nsc a::nsca_encryptencryption_instance_;40 nscp::encryption::engine encryption_instance_; 41 41 42 42 read_protocol(socket_helpers::connection_info info, handler_type handler) … … 70 70 std::vector<boost::asio::const_buffer> buffers; 71 71 72 std::string iv = nsc a::nsca_encrypt::generate_transmitted_iv();72 std::string iv = nscp::encryption::engine::generate_transmitted_iv(); 73 73 encryption_instance_.encrypt_init(handler_->get_password(), handler_->get_encryption(), iv); 74 74 … … 108 108 } catch (const std::exception &e) { 109 109 log_error(__FILE__, __LINE__, std::string("Exception processing request: ") + e.what()); 110 log_debug(__FILE__, __LINE__, "Using: encryption = " + nsc a::nsca_encrypt::helpers::encryption_to_string(handler_->get_encryption()) + ", password = '" + handler_->get_password() + "'");110 log_debug(__FILE__, __LINE__, "Using: encryption = " + nscp::encryption::helpers::encryption_to_string(handler_->get_encryption()) + ", password = '" + handler_->get_password() + "'"); 111 111 } catch (...) { 112 112 log_error(__FILE__, __LINE__, "Exception processing request"); -
libs/cryptopp/CMakeLists.txt
rd66ccee rc327ce5 18 18 19 19 IF (HAVE_CRYPTOPP) 20 FILE (GLOB cryptopp_SOURCES "${CRYPTOPP_SOURCE_DIR}/*.cpp") 21 FILE (GLOB cryptopp_HEADERS "${CRYPTOPP_SOURCE_DIR}/*.h") 20 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/des.cpp) 21 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/rijndael.cpp) 22 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/cast.cpp) 23 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/tea.cpp) 24 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/3way.cpp) 25 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/blowfish.cpp) 26 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/twofish.cpp) 27 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/rc2.cpp) 28 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/arc4.cpp) 29 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/serpent.cpp) 30 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/gost.cpp) 31 32 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/filters.cpp) 33 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/osrng.cpp) 34 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/modes.cpp) 35 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/cryptlib.cpp) 36 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/misc.cpp) 37 38 LIST(APPEND cryptopp_SOURCES cryptopp.cpp) 39 IF (WIN32) 40 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/des.h) 41 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/aes.h) 42 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/cast.h) 43 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/tea.h) 44 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/3way.h) 45 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/blowfish.h) 46 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/twofish.h) 47 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/rc2.h) 48 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/arc4.h) 49 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/serpent.h) 50 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/gost.h) 51 52 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/filters.h) 53 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/osrng.h) 54 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/modes.h) 55 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/cryptlib.h) 56 LIST(APPEND cryptopp_SOURCES ${CRYPTOPP_SOURCE_DIR}/misc.h) 57 58 LIST(APPEND cryptopp_SOURCES ${NSCP_INCLUDEDIR}/cryptopp/cryptopp.hpp) 59 ENDIF (WIN32) 22 60 message(STATUS "Using Crypto++ from ${CRYPTOPP_SOURCE_DIR}") 23 61 IF (MSVC) … … 39 77 #endif(CMAKE_ASM_MASM_COMPILER_WORKS) 40 78 IF (WIN32) 41 ADD_DEFINITIONS (-DCRYPTOPP_DISABLE_ASM) 42 SET(Cryptopp_DEFINES -DCRYPTOPP_DISABLE_ASM) 79 ADD_DEFINITIONS (-DCRYPTOPP_DISABLE_ASM -DUNICODE -D_UNICODE) 43 80 ENDIF (WIN32) 81 82 INCLUDE_DIRECTORIES(${NSCP_INCLUDEDIR}) 44 83 45 ADD_LIBRARY (cryptopp SHARED ${cryptopp_SOURCES})46 SET_TARGET_PROPERTIES(cryptopp PROPERTIES FOLDER "libraries")84 #ADD_LIBRARY (cryptopp SHARED ${cryptopp_SOURCES}) 85 #SET_TARGET_PROPERTIES(cryptopp PROPERTIES FOLDER "libraries") 47 86 #IF(NOT WIN32) 48 87 ADD_LIBRARY(cryptopp_static STATIC ${cryptopp_SOURCES}) … … 53 92 54 93 IF (WIN32) 55 TARGET_LINK_LIBRARIES (cryptopp Ws2_32.lib)94 #TARGET_LINK_LIBRARIES (cryptopp Ws2_32.lib) 56 95 TARGET_LINK_LIBRARIES (cryptopp_static Ws2_32.lib) 57 96 # We cannot build static versions of this in windows for some reason 58 97 ENDIF (WIN32) 59 98 60 #IF (WIN32)61 #INSTALL (TARGETS cryptopp62 # RUNTIME DESTINATION bin63 # LIBRARY DESTINATION bin64 # ARCHIVE DESTINATION bin65 # )66 #ELSE (WIN32)67 #INSTALL (TARGETS cryptopp cryptopp_static68 # RUNTIME DESTINATION bin69 # LIBRARY DESTINATION bin70 # ARCHIVE DESTINATION bin71 #)72 #ENDIF (WIN32)73 74 99 IF(APPLE) 75 SET_TARGET_PROPERTIES(cryptopp PROPERTIES COMPILE_FLAGS "-fPIC -w -DOSX -DNDEBUG -finline-functions -O3 -DCRYPTOPP_DISABLE_ASM")100 #SET_TARGET_PROPERTIES(cryptopp PROPERTIES COMPILE_FLAGS "-fPIC -w -DOSX -DNDEBUG -finline-functions -O3 -DCRYPTOPP_DISABLE_ASM") 76 101 SET_TARGET_PROPERTIES(cryptopp_static PROPERTIES COMPILE_FLAGS "-w -DOSX -DNDEBUG -finline-functions -O3 -DCRYPTOPP_DISABLE_ASM") 77 102 ELSEIF(UNIX AND NOT APPLE) 78 SET_TARGET_PROPERTIES(cryptopp PROPERTIES COMPILE_FLAGS "-fPIC -w -pipe -DNDEBUG -DLINUX -finline-functions -O3")103 #SET_TARGET_PROPERTIES(cryptopp PROPERTIES COMPILE_FLAGS "-fPIC -w -pipe -DNDEBUG -DLINUX -finline-functions -O3") 79 104 SET_TARGET_PROPERTIES(cryptopp_static PROPERTIES COMPILE_FLAGS " -w -pipe -DNDEBUG -DLINUX -finline-functions -O3") 80 105 ELSEIF(WIN32) 81 106 IF(NOT MSVC) 82 SET_TARGET_PROPERTIES(cryptopp PROPERTIES COMPILE_FLAGS "-mthreads -w -finline-functions -O3 -DNDEBUG -D__MINGW__ -DWIN32 -D_WIN32_WINNT=0x0501 -D_WIN32")107 #SET_TARGET_PROPERTIES(cryptopp PROPERTIES COMPILE_FLAGS "-mthreads -w -finline-functions -O3 -DNDEBUG -D__MINGW__ -DWIN32 -D_WIN32_WINNT=0x0501 -D_WIN32") 83 108 SET_TARGET_PROPERTIES(cryptopp_static PROPERTIES COMPILE_FLAGS "-mthreads -w -finline-functions -O3 -DNDEBUG -D__MINGW__ -DWIN32 -D_WIN32_WINNT=0x0501 -D_WIN32") 84 109 ENDIF(NOT MSVC) -
libs/lua_pb/CMakeLists.txt
r53be5c8 rc327ce5 19 19 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Oi") 20 20 ENDIF (MSVC) 21 22 SET_SOURCE_FILES_PROPERTIES(${lua_pb_SOURCES} PROPERTIES GENERATED TRUE) 21 23 22 24 -
modules/GraphiteClient/GraphiteClient.h
ra48fd4c rc327ce5 131 131 */ 132 132 static std::wstring getModuleName() { 133 #ifdef HAVE_LIBCRYPTOPP 134 return _T("NSCAClient"); 135 #else 136 return _T("NSCAClient (without encryption support)"); 137 #endif 133 return _T("GraphiteClient"); 138 134 } 139 135 /** … … 167 163 void add_target(std::wstring key, std::wstring args); 168 164 169 static std::wstring getCryptos();170 165 void set_delay(std::wstring key) { 171 166 time_delta_ = strEx::stol_as_time_sec(key, 1); -
modules/LUAScript/script_wrapper.hpp
r53be5c8 rc327ce5 13 13 14 14 #ifdef HAVE_LUA_PB 15 #include < Plugin.pb-lua.h>15 #include <plugin.pb-lua.h> 16 16 #endif 17 17 namespace script_wrapper { -
modules/NSCAClient/CMakeLists.txt
rc3f233d rc327ce5 32 32 ${NSCP_INCLUDEDIR}/nsca/nsca_packet.hpp 33 33 ${NSCP_INCLUDEDIR}/nsca/client/nsca_client_protocol.hpp 34 ${NSCP_INCLUDEDIR}/ nsca/nsca_enrypt.hpp34 ${NSCP_INCLUDEDIR}/cryptopp/cryptopp.hpp 35 35 ${NSCP_INCLUDEDIR}/swap_bytes.hpp 36 36 ${NSCP_INCLUDEDIR}/socket/socket_helpers.hpp -
modules/NSCAClient/NSCAClient.cpp
rc6a974c rc327ce5 25 25 #include <strEx.h> 26 26 27 #include < nsca/nsca_enrypt.hpp>27 #include <cryptopp/cryptopp.hpp> 28 28 #include <nsca/nsca_packet.hpp> 29 29 … … 143 143 } 144 144 145 std::wstring NSCAAgent::getCryptos() {146 std::wstring ret = _T("{");147 for (int i=0;i<LAST_ENCRYPTION_ID;i++) {148 if (nsca::nsca_encrypt::hasEncryption(i)) {149 std::wstring name;150 try {151 boost::shared_ptr<nsca::nsca_encrypt::any_encryption> core(nsca::nsca_encrypt::get_encryption_core(i));152 if (core == NULL)153 name = _T("Broken<NULL>");154 else155 name = utf8::to_unicode(core->getName());156 } catch (nsca::nsca_encrypt::encryption_exception &e) {157 name = utf8::to_unicode(e.what());158 }159 if (ret.size() > 1)160 ret += _T(", ");161 ret += strEx::itos(i) + _T("=") + name;162 }163 }164 return ret + _T("}");165 }166 167 145 std::string get_command(std::string alias, std::string command = "") { 168 146 if (!alias.empty()) … … 423 401 client.shutdown(); 424 402 return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("")); 425 } catch (const nsc a::nsca_encrypt::encryption_exception &e) {403 } catch (const nscp::encryption::encryption_exception &e) { 426 404 NSC_LOG_ERROR_STD(_T("NSCA Error: ") + utf8::to_unicode(e.what())); 427 405 return boost::make_tuple(NSCAPI::returnUNKNOWN, _T("NSCA error: ") + utf8::to_unicode(e.what())); -
modules/NSCAClient/NSCAClient.h
r6090c98 rc327ce5 111 111 } 112 112 unsigned int get_encryption() { 113 return nsc a::nsca_encrypt::helpers::encryption_to_int(encryption);113 return nscp::encryption::helpers::encryption_to_int(encryption); 114 114 } 115 115 … … 175 175 } 176 176 static std::wstring getModuleDescription() { 177 return std::wstring(_T("Passive check support over NSCA. \nAvalible crypto are: ")) + getCryptos();177 return std::wstring(_T("Passive check support over NSCA.")); 178 178 } 179 179 … … 196 196 void add_target(std::wstring key, std::wstring args); 197 197 198 static std::wstring getCryptos();199 198 void set_delay(std::wstring key) { 200 199 time_delta_ = strEx::stol_as_time_sec(key, 1); -
modules/NSCAServer/CMakeLists.txt
r9bd40e2 rc327ce5 43 43 ${NSCP_INCLUDEDIR}/socket/server.hpp 44 44 ${NSCP_INCLUDEDIR}/socket/connection.hpp 45 ${NSCP_INCLUDEDIR}/cryptopp/cryptopp.hpp 45 46 46 47 ${NSCP_DEF_PLUGIN_HPP} -
modules/NSCAServer/NSCAServer.cpp
ra48fd4c rc327ce5 137 137 } 138 138 139 140 std::wstring NSCAServer::getCryptos() {141 std::wstring ret = _T("{");142 for (int i=0;i<LAST_ENCRYPTION_ID;i++) {143 if (nsca::nsca_encrypt::hasEncryption(i)) {144 std::wstring name;145 try {146 nsca::nsca_encrypt::any_encryption *core = nsca::nsca_encrypt::get_encryption_core(i);147 if (core == NULL)148 name = _T("Broken<NULL>");149 else150 name = str::to_wstring(core->getName());151 } catch (nsca::nsca_encrypt::encryption_exception &e) {152 name = str::to_wstring(e.what());153 }154 if (ret.size() > 1)155 ret += _T(", ");156 ret += strEx::itos(i) + _T("=") + name;157 }158 }159 return ret + _T("}");160 }161 162 163 139 NSC_WRAP_DLL() 164 140 NSC_WRAPPERS_MAIN_DEF(NSCAServer) -
modules/NSCAServer/NSCAServer.h
ra48fd4c rc327ce5 50 50 } 51 51 static std::wstring getModuleDescription() { 52 return _T("A simple server that listens for incoming NSCA connection and handles them. \nAvalible crypto are: ") + getCryptos();52 return _T("A simple server that listens for incoming NSCA connection and handles them."); 53 53 } 54 55 static std::wstring getCryptos();56 54 57 55 boost::shared_ptr<nsca::server::server> server_; -
modules/NSCAServer/handler_impl.hpp
ra48fd4c rc327ce5 4 4 5 5 #include <nsca/nsca_packet.hpp> 6 #include < nsca/nsca_enrypt.hpp>6 #include <cryptopp/cryptopp.hpp> 7 7 #include <nsca/server/handler.hpp> 8 8 … … 38 38 } 39 39 void set_encryption(std::string enc) { 40 encryption_ = nsc a::nsca_encrypt::helpers::encryption_to_int(enc);40 encryption_ = nscp::encryption::helpers::encryption_to_int(enc); 41 41 } 42 42 int get_encryption() { -
scripts/CMakeLists.txt
ra48fd4c rc327ce5 36 36 STRING(REPLACE "/" "_" alias "${relpath}") 37 37 STRING(REPLACE "." "_" alias "${alias}") 38 #MESSAGE(STATUS " + python - ${filename} - ${relpath} - ${alias}")38 MESSAGE(STATUS " + python - ${filename} - ${relpath} - ${alias}") 39 39 copy_single_file(copy_scripts ${relpath}/${filename} scripts/${relpath}) 40 40 ENDFOREACH(file ${scripts_PYT}) … … 46 46 ENDFOREACH(file ${scripts_LUA}) 47 47 48 ADD_CUSTOM_TARGET(copy_scripts ALL)48 ADD_CUSTOM_TARGET(copy_scripts DEPENDS ${ALL_FILES}) 49 49 SET_TARGET_PROPERTIES(copy_scripts PROPERTIES FOLDER "files") 50 50 #INSTALL(CODE "FILE(INSTALL DESTINATION \${CMAKE_INSTALL_PREFIX}/${destDir} TYPE EXECUTABLE FILES \"${source_file}\")") -
version.txt
r6090c98 rc327ce5 1 1 version=0.4.1 2 build= 43 date=2012-0 6-172 build=21 3 date=2012-07-15
Note: See TracChangeset
for help on using the changeset viewer.








