diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-07-11 12:12:32 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-07-11 12:12:32 -0400 |
commit | c82c5fa257bdbd1d76024ec1cc188d4ade3bead6 (patch) | |
tree | 2476163048f60215a0674ad98499b030afeb048f /cpp/src/IceSSL/Util.cpp | |
parent | Add missing file from previous commit (diff) | |
download | ice-c82c5fa257bdbd1d76024ec1cc188d4ade3bead6.tar.bz2 ice-c82c5fa257bdbd1d76024ec1cc188d4ade3bead6.tar.xz ice-c82c5fa257bdbd1d76024ec1cc188d4ade3bead6.zip |
Fixed streamFilename bug
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); |