Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6466

QSslCertificate: QString QSslCertificate::subjectInfo(const QByteArray &tag) const returns an empty string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.6.2
    • 4.6.0
    • Network
    • None
    • X11/Ubuntu Qt 4.6.0
    • 102f415e39772086e9066f2e9954c0c22725a23e

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mgoetz Markus Goetz (Inactive)
            cattell Matthew Cattell (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes