Changeset 280
- Timestamp:
- 08/11/10 11:17:30 (18 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
build.cmake (modified) (1 diff)
-
include/nrpe/server/server.cpp (modified) (1 diff)
-
include/nrpe/server/server.hpp (modified) (1 diff)
-
modules/NRPEServer/NRPEServer.cpp (modified) (1 diff)
-
modules/NRPEServer/stdafx.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.cmake
r272 r280 24 24 ELSE(WIN32) 25 25 26 SET(INC_BOOST_INCLUDEDIR "/usr/include/") 27 26 28 ENDIF(WIN32) 27 29 -
trunk/include/nrpe/server/server.cpp
r279 r280 38 38 if (info.use_ssl) { 39 39 SSL_CTX_set_cipher_list(context_.impl(), "ADH"); 40 request_handler_->log_debug(__FILEW__, __LINE__, _T("Using file: C:/source/nscp/build/security/nrpe_dh_512.pem"));41 context_.use_tmp_dh_file( "C:/source/nscp/build/security/nrpe_dh_512.pem");40 request_handler_->log_debug(__FILEW__, __LINE__, _T("Using cert: ") + to_wstring(info.certificate)); 41 context_.use_tmp_dh_file(info.certificate); 42 42 context_.set_verify_mode(boost::asio::ssl::context::verify_none); 43 43 } -
trunk/include/nrpe/server/server.hpp
r278 r280 42 42 bool use_ssl; 43 43 boost::shared_ptr<nrpe::server::handler> request_handler; 44 44 std::string certificate; 45 45 std::wstring get_endpoint_str() { 46 46 return to_wstring(address) + _T(":") + to_wstring(port); -
trunk/modules/NRPEServer/NRPEServer.cpp
r278 r280 78 78 NSC_DEBUG_MSG_STD(_T("Allowed hosts: ") + allowedHosts.to_string()); 79 79 try { 80 81 boost::filesystem::wpath p = GET_CORE()->getBasePath() + std::wstring(_T("security/nrpe_dh_512.pem")); 82 info_.certificate = to_string(p.string()); 83 if (boost::filesystem::is_regular(p)) { 84 NSC_LOG_ERROR_STD(_T("Certificate not found: ") + p.string()); 85 } 80 86 info_.port = to_string(SETTINGS_GET_INT(nrpe::PORT)); 81 87 info_.address = to_string(SETTINGS_GET_STRING(nrpe::BINDADDR)); -
trunk/modules/NRPEServer/stdafx.h
r278 r280 37 37 #include <boost/tuple/tuple.hpp> 38 38 39 #include <boost/filesystem.hpp> 40 39 41 #ifdef USE_SSL 40 42 #include <boost/asio/ssl.hpp>
Note: See TracChangeset
for help on using the changeset viewer.







