From 94e110ca5f70f61bb7f6a99be121e5d78670a22a Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Mon, 11 Jul 2011 16:39:14 +0200 Subject: QSslCertificate: rename "tag" to "attribute", as in the RFC RFC 2459 "Internet X.509 Public Key Infrastructure" uses the word "attribute" for fields in a certificate like common name, organization etc. Change-Id: I51e595acbe3e146acf81af21cf48e554fa9490e4 Reviewed-on: http://codereview.qt.nokia.com/1453 Reviewed-by: Qt Sanity Bot Reviewed-by: Martin Petersson --- tests/auto/qsslcertificate/tst_qsslcertificate.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/qsslcertificate/tst_qsslcertificate.cpp b/tests/auto/qsslcertificate/tst_qsslcertificate.cpp index c04f315060..f12af0275c 100644 --- a/tests/auto/qsslcertificate/tst_qsslcertificate.cpp +++ b/tests/auto/qsslcertificate/tst_qsslcertificate.cpp @@ -115,7 +115,7 @@ private slots: void blacklistedCertificates(); void toText(); void multipleCommonNames(); - void subjectAndIssuerTags(); + void subjectAndIssuerAttributes(); // ### add tests for certificate bundles (multiple certificates concatenated into a single // structure); both PEM and DER formatted @@ -884,21 +884,21 @@ void tst_QSslCertificate::multipleCommonNames() QVERIFY(commonNames.contains(QString("www2.example.com"))); } -void tst_QSslCertificate::subjectAndIssuerTags() +void tst_QSslCertificate::subjectAndIssuerAttributes() { QList certList = QSslCertificate::fromPath(SRCDIR "more-certificates/test-cn-with-drink-cert.pem"); QVERIFY2(certList.count() > 0, "Please run this test from the source directory"); - QList tags = certList[0].subjectInfoTags(); - QVERIFY(tags.contains(QByteArray("favouriteDrink"))); - tags.clear(); + QList attributes = certList[0].subjectInfoAttributes(); + QVERIFY(attributes.contains(QByteArray("favouriteDrink"))); + attributes.clear(); certList = QSslCertificate::fromPath(SRCDIR "more-certificates/natwest-banking.pem"); QVERIFY2(certList.count() > 0, "Please run this test from the source directory"); - tags = certList[0].subjectInfoTags(); - QVERIFY(tags.contains(QByteArray("1.3.6.1.4.1.311.60.2.1.3"))); + attributes = certList[0].subjectInfoAttributes(); + QVERIFY(attributes.contains(QByteArray("1.3.6.1.4.1.311.60.2.1.3"))); } #endif // QT_NO_OPENSSL -- cgit v1.2.3