diff options
Diffstat (limited to 'cpp/src/IceSSL/UWPCertificateI.cpp')
-rw-r--r-- | cpp/src/IceSSL/UWPCertificateI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/IceSSL/UWPCertificateI.cpp b/cpp/src/IceSSL/UWPCertificateI.cpp index 663deb4cb7a..98e090976e8 100644 --- a/cpp/src/IceSSL/UWPCertificateI.cpp +++ b/cpp/src/IceSSL/UWPCertificateI.cpp @@ -224,11 +224,11 @@ UWP::Certificate::create(Windows::Security::Cryptography::Certificates::Certific } UWP::CertificatePtr -UWP::Certificate::load(const std::string& file) +UWP::Certificate::load(const std::string& filename) { try { - auto uri = ref new Uri(ref new String(stringToWstring(file).c_str())); + auto uri = ref new Uri(ref new String(stringToWstring(filename).c_str())); auto file = create_task(StorageFile::GetFileFromApplicationUriAsync(uri)).get(); auto buffer = create_task(FileIO::ReadTextAsync(file)).get(); return UWP::Certificate::decode(wstringToString(buffer->Data())); @@ -237,7 +237,7 @@ UWP::Certificate::load(const std::string& file) { if(HRESULT_CODE(ex->HResult) == ERROR_FILE_NOT_FOUND) { - throw CertificateReadException(__FILE__, __LINE__, "error opening file :" + file); + throw CertificateReadException(__FILE__, __LINE__, "error opening file :" + filename); } else { |