Certificates can have each issuer and subject field many times
authorRichard Moore <rich@kde.org>
Sat, 18 Jun 2011 08:22:11 +0000 (09:22 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Jun 2011 18:44:36 +0000 (20:44 +0200)
commit2cf935b43e41c6589159536652412dab443ff1f8
tree95bcd7638f509c48d2b139920e3936a9d4e7e60c
parentcadbfc07b68513920bb877e2e0212988c43f1fa4
Certificates can have each issuer and subject field many times

THIS COMMIT BREAKS SOURCE COMPATIBILITY BETWEEN Qt 4 AND Qt 5

Qt4 assumed that there was only one entry of each type in the subject
and issuer of a certificate. This is incorrect (eg. you can have many
common names). In addition, some of the fields required by RFC3280
were not suppport. This change modifiers the API to return a list of
entries of each type and adds support for the missing fields. It also
updates the commonname matching code for SSL connections to handle
multiple entries.

Change-Id: I9457266a205def0a07c13de47094ff56ead42845
Merge-request: 5
Reviewed-on: http://codereview.qt.nokia.com/796
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
src/network/ssl/qsslcertificate.cpp
src/network/ssl/qsslcertificate.h
src/network/ssl/qsslsocket_openssl.cpp