Changeset 184d575 in nscp for modules


Ignore:
Timestamp:
08/11/10 11:17:30 (3 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
497b779
Parents:
64d42de
Message:

parametrized certifaicte file (ish)

Location:
modules/NRPEServer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/NRPEServer/NRPEServer.cpp

    r294b37b r184d575  
    7878  NSC_DEBUG_MSG_STD(_T("Allowed hosts: ") + allowedHosts.to_string()); 
    7979  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    } 
    8086    info_.port = to_string(SETTINGS_GET_INT(nrpe::PORT)); 
    8187    info_.address = to_string(SETTINGS_GET_STRING(nrpe::BINDADDR)); 
  • modules/NRPEServer/stdafx.h

    r294b37b r184d575  
    3737#include <boost/tuple/tuple.hpp> 
    3838 
     39#include <boost/filesystem.hpp> 
     40 
    3941#ifdef USE_SSL 
    4042#include <boost/asio/ssl.hpp> 
Note: See TracChangeset for help on using the changeset viewer.