Details
Description
QString QSslCertificate::subjectInfo(const QByteArray &tag) const
{
// ### Use a QByteArray for the keys in the map
return d->subjectInfo.value(QString::fromLatin1(tag));
}
this needs three lines similar to those that are contained in the overloaded version:
QString QSslCertificate::subjectInfo(SubjectInfo info) const
{
if (d->subjectInfo.isEmpty() && d->x509)
d->subjectInfo =
_q_mapFromOnelineName(q_X509_NAME_oneline(q_X509_get_subject_name(d->x509), 0, 0));
return d->subjectInfo.value(_q_SubjectInfoToString(info));
}
The certificate map is not populated with anything and therefore returns an empty string.
Two patches - one to fix issuerInfo(QByteArray) and one for subjectInfo(QByteArray)
The function previously worked in 4.5.3