mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-23 13:32:11 +01:00
constness fix
This commit is contained in:
@@ -261,7 +261,7 @@ void X509Certificate::extractNames(std::string& cmnName, std::set<std::string>&
|
||||
const GENERAL_NAME* name = sk_GENERAL_NAME_value(names, i);
|
||||
if (name->type == GEN_DNS)
|
||||
{
|
||||
const char* data = reinterpret_cast<char*>(ASN1_STRING_get0_data(name->d.ia5));
|
||||
const char* data = reinterpret_cast<const char*>(ASN1_STRING_get0_data(name->d.ia5));
|
||||
std::size_t len = ASN1_STRING_length(name->d.ia5);
|
||||
domainNames.insert(std::string(data, len));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user