Skip to content

Commit

Permalink
disable ssl verification on windows, fixes firelab#231
Browse files Browse the repository at this point in the history
Conflicts:
	src/ninja/ninja_init.cpp
  • Loading branch information
nwagenbrenner committed Dec 15, 2016
1 parent 985d651 commit 37ba967
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/ninja/ninja_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ int NinjaInitialize()
const char *pszGdalData = CPLGetPath( osGdalData.c_str() );
CPLDebug( "WINDNINJA", "Setting GDAL_DATA:%s", pszGdalData );
CPLSetConfigOption( "GDAL_DATA", pszGdalData );

#if defined(FIRELAB_PACKAGE)
/*
** Setting the CURL_CA_BUNDLE variable through GDAL doesn't seem to work,
** but could be investigated in the future. CURL_CA_BUNDLE can only be set in GDAL
** >2.1.2. Test with CPL_CURL_VERBOSE. For #231.
**
** For now, just skip the SSL verification with GDAL_HTTP_UNSAFESSL.
*/
CPLSetConfigOption( "GDAL_HTTP_UNSAFESSL", "YES");

#endif /* defined(FIRELAB_PACKAGE) */

#if defined(NINJAFOAM) && defined(FIRELAB_PACKAGE)
char *pszExecPath;
const char *pszFoamLibPath = "platforms/linux64mingw-w64DPOpt/lib";
Expand Down

0 comments on commit 37ba967

Please sign in to comment.