mirror of
https://github.com/wownero/wownero.git
synced 2026-11-16 13:23:55 +01:00
fix: warning: ignored-attributes
This commit is contained in:
@@ -686,7 +686,8 @@ std::string get_hr_ssl_fingerprint_from_file(const std::string& cert_path, const
|
|||||||
const boost::system::error_code err_code(errno, boost::system::system_category());
|
const boost::system::error_code err_code(errno, boost::system::system_category());
|
||||||
throw boost::system::system_error(err_code, "Failed to open certificate file '" + cert_path + "'");
|
throw boost::system::system_error(err_code, "Failed to open certificate file '" + cert_path + "'");
|
||||||
}
|
}
|
||||||
std::unique_ptr<FILE, decltype(&fclose)> file(fp, &fclose);
|
auto _fclose = [](FILE* f){ if (f) fclose(f); };
|
||||||
|
std::unique_ptr<FILE, decltype(_fclose)> file(fp, _fclose);
|
||||||
|
|
||||||
// Extract certificate structure from file
|
// Extract certificate structure from file
|
||||||
X509* ssl_cert_handle = PEM_read_X509(file.get(), NULL, NULL, NULL);
|
X509* ssl_cert_handle = PEM_read_X509(file.get(), NULL, NULL, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user