constness fix

This commit is contained in:
Günter Obiltschnig
2019-11-04 21:03:52 +01:00
parent 54413879e8
commit acd7ec865b

View File

@@ -261,7 +261,7 @@ void X509Certificate::extractNames(std::string& cmnName, std::set<std::string>&
const GENERAL_NAME* name = sk_GENERAL_NAME_value(names, i); const GENERAL_NAME* name = sk_GENERAL_NAME_value(names, i);
if (name->type == GEN_DNS) 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); std::size_t len = ASN1_STRING_length(name->d.ia5);
domainNames.insert(std::string(data, len)); domainNames.insert(std::string(data, len));
} }