diff options
author | Richard Moore <rich@kde.org> | 2013-02-11 22:31:00 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-19 21:37:24 +0100 |
commit | 7898080ca78ceec15163976390979631fcbd178d (patch) | |
tree | 7cfc458b51addf0a6ddd585700335030e9d2c56e /src/network/ssl/qsslconfiguration.cpp | |
parent | 4a07519877b4b3aad45d1a727487d9e87630973b (diff) |
Add support for intermediate certificates to server sockets.
Add intermediate certificates to our server sockets, and to our client
certs.
Change-Id: Ib5aa575473f9e84f337bebe35099506dd7d7e2ba
Task-Number: QTBUG-19825
Task-Number: QTBUG-13281
Reviewed-by: Peter Hartmann <phartmann@rim.com>
Diffstat (limited to 'src/network/ssl/qsslconfiguration.cpp')
-rw-r--r-- | src/network/ssl/qsslconfiguration.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/network/ssl/qsslconfiguration.cpp b/src/network/ssl/qsslconfiguration.cpp index 3d466b85ca..afbd4fac77 100644 --- a/src/network/ssl/qsslconfiguration.cpp +++ b/src/network/ssl/qsslconfiguration.cpp @@ -325,6 +325,33 @@ QList<QSslCertificate> QSslConfiguration::localCertificateChain() const } /*! + Sets the certificate chain to be presented to the peer during the + SSL handshake to be \a localChain. + + Setting the certificate chain once the connection has been + established has no effect. + + A certificate is the means of identification used in the SSL + process. The local certificate is used by the remote end to verify + the local user's identity against its list of Certification + Authorities. In most cases, such as in HTTP web browsing, only + servers identify to the clients, so the client does not send a + certificate. + + Unlike QSslConfiguration::setLocalCertificate() this method allows + you to specify any intermediate certificates required in order to + validate your certificate. The first item in the list must be the + leaf certificate. + + \sa localCertificateChain() + \since 5.1 + */ +void QSslConfiguration::setLocalCertificateChain(const QList<QSslCertificate> &localChain) +{ + d->localCertificateChain = localChain; +} + +/*! Returns the certificate to be presented to the peer during the SSL handshake process. |