Use _putenv instead of putenv because on some Windows machines putenv doesn't work properly.
This commit is contained in:
parent
2690a52fe5
commit
7b2361518c
1 changed files with 7 additions and 3 deletions
|
|
@ -21,9 +21,13 @@ namespace fc
|
||||||
const boost::filesystem::path& boostPath = _configurationFilePath;
|
const boost::filesystem::path& boostPath = _configurationFilePath;
|
||||||
if(boostPath.empty() == false)
|
if(boostPath.empty() == false)
|
||||||
{
|
{
|
||||||
std::string varSetting("OPENSSL_CONF=");
|
std::string varSetting("OPENSSL_CONF=");
|
||||||
varSetting += _configurationFilePath.to_native_ansi_path();
|
varSetting += _configurationFilePath.to_native_ansi_path();
|
||||||
putenv((char*)varSetting.c_str());
|
#if defined(WIN32)
|
||||||
|
_putenv((char*)varSetting.c_str());
|
||||||
|
#else
|
||||||
|
putenv((char*)varSetting.c_str());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
OPENSSL_config(nullptr);
|
OPENSSL_config(nullptr);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue