diff options
Diffstat (limited to 'cpp/src/IceSSL/Util.cpp')
-rwxr-xr-x | cpp/src/IceSSL/Util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceSSL/Util.cpp b/cpp/src/IceSSL/Util.cpp index 2bd931be770..6cb87ec31ec 100755 --- a/cpp/src/IceSSL/Util.cpp +++ b/cpp/src/IceSSL/Util.cpp @@ -612,7 +612,7 @@ namespace CFDataRef readCertFile(const string& file) { - ifstream is(IceUtilInternal::streamFilename(file), ios::in | ios::binary); + ifstream is(IceUtilInternal::streamFilename(file).c_str(), ios::in | ios::binary); if(!is.good()) { throw CertificateReadException(__FILE__, __LINE__, "error opening file " + file); @@ -1655,7 +1655,7 @@ IceSSL::findCertificates(const string& location, const string& name, const strin void IceSSL::readFile(const string& file, vector<char>& buffer) { - ifstream is(IceUtilInternal::streamFilename(file), ios::in | ios::binary); + ifstream is(IceUtilInternal::streamFilename(file).c_str(), ios::in | ios::binary); if(!is.good()) { throw CertificateReadException(__FILE__, __LINE__, "error opening file " + file); |