Changeset 279


Ignore:
Timestamp:
08/11/10 10:15:50 (18 months ago)
Author:
mickem
Message:

Some fixes for unix build

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r277 r279  
    2626# ### ### ### ### 
    2727# Boost setup 
     28IF(WIN32 AND MSVC) 
    2829SET(Boost_USE_STATIC_LIBS CACHE BOOL ON "Link boost statically (generally a good idea)") 
     30ENDIF(WIN32 AND MSVC) 
    2931SET(BOOST_INCLUDEDIR "${INC_BOOST_INCLUDEDIR}" CACHE PATH "Path to boost includes") 
    3032SET(BOOST_LIBRARYDIR "${NSCP_LIBRARYDIR}" CACHE PATH "Path to boost libraries") 
  • trunk/include/nrpe/server/server.cpp

    r278 r279  
    3636        return; 
    3737      } 
    38       SSL_CTX_set_cipher_list(context_.impl(), "ADH"); 
    39       request_handler_->log_debug(__FILEW__, __LINE__, _T("Using file: C:/source/nscp/build/security/nrpe_dh_512.pem")); 
    40       context_.use_tmp_dh_file("C:/source/nscp/build/security/nrpe_dh_512.pem"); 
    41       context_.set_verify_mode(boost::asio::ssl::context::verify_none); 
     38      if (info.use_ssl) { 
     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"); 
     42        context_.set_verify_mode(boost::asio::ssl::context::verify_none); 
     43      } 
    4244 
    4345      new_connection_.reset(nrpe::server::factories::create(io_service_, context_, request_handler_, use_ssl_)); 
  • trunk/include/service/unix_service.hpp

    r257 r279  
    2626#include <string> 
    2727#include <signal.h> 
     28#include <strEx.h> 
    2829 
    2930namespace service_helper_impl { 
  • trunk/modules/CheckExternalScripts/CheckExternalScripts.cpp

    r273 r279  
    2222#include "CheckExternalScripts.h" 
    2323#include <time.h> 
     24#include <string> 
    2425 
    2526#include <settings/macros.h> 
     
    131132      std::map<std::wstring,std::wstring>::const_iterator cit = wrappers.find(type); 
    132133      if (cit == wrappers.end()) { 
    133         NSC_LOG_ERROR_STD(_T("Failed to find wrappings for: ") + type + _T(" (" + (*it) + _T(")"))); 
     134        NSC_LOG_ERROR_STD(_T("Failed to find wrappings for: ") + type + _T(" (") + (*it) + _T(")")); 
    134135      } else { 
    135136        addWrappedCommand((*it), (*cit).second, val); 
  • trunk/modules/CheckExternalScripts/stdafx.h

    r257 r279  
    2727#include <boost/lexical_cast.hpp> 
    2828 
     29#include <config.h> 
     30#include <unicode_char.hpp> 
    2931#include <types.hpp> 
    3032#include <NSCAPI.h> 
  • trunk/modules/NSCAAgent/NSCAAgent.cpp

    r277 r279  
    116116    boost::asio::io_service io_service; 
    117117    NSC_DEBUG_MSG_STD(_T("* * *NSCA * * * message: ") + msg); 
    118     NSC_DEBUG_MSG_STD(_T("* * *NSCA * * * påerformance: ") + perf); 
     118    NSC_DEBUG_MSG_STD(_T("* * *NSCA * * * performance: ") + perf); 
    119119    nsca::socket socket(io_service); 
    120120    socket.connect(nscahost_, nscaport_); 
Note: See TracChangeset for help on using the changeset viewer.