qt5base-lts/tests/auto/network/ssl/qsslsocket/certs
Timur Pocheptsov 1158ff67b4 QSslSocket::verify: do not alter the default configuration
QSslCertificate::verify() has an undocumented and not very desirable property -
on some platorms it updates the default configuration, which can be surprising.
For example, we deprecated QSslSocket::setDefaultCaCertificates() and recommend
using QSslConfiguration::defaultConfiguration(), QSslConfiguration::setDefaultConfiguration(),
and QSslConfiguration::setCaCertificates(). If an application does this to select
CA roots it trusts explicitly, and then for some reason is calling verify, the
application can have its QSslSockets successfully connecting to a host, whose
root was not trusted by the application. Also, on Windows, defaultCaCertificates()
include system roots already, no need to have them twice.

[ChangeLog][QtCore][QtNetwork] QSslSocket::verify - do not change the default configuration

Pick-to: 5.15
Pick-to: 6.0
Pick-to: 6.0.0
Fixes: QTBUG-88639
Change-Id: I1cd40b259d0a6dcd15c78d1e7c027ff10859595c
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2020-11-30 23:11:05 +01:00
..
127-0-0-1-as-CN.crt QSslSocket: Fix isMatchingHostname when the CN is an IP Address 2019-01-28 14:03:30 +00:00
aspiriniks.ca.crt
bogus-ca.crt ssl: add test for server-side QSslSocket::PeerVerifyMode 2015-02-07 06:51:05 +00:00
bogus-ca.key ssl: add test for server-side QSslSocket::PeerVerifyMode 2015-02-07 06:51:05 +00:00
bogus-client.crt ssl: add test for server-side QSslSocket::PeerVerifyMode 2015-02-07 06:51:05 +00:00
bogus-client.key ssl: add test for server-side QSslSocket::PeerVerifyMode 2015-02-07 06:51:05 +00:00
bogus-server.crt ssl: add test for server-side QSslSocket::PeerVerifyMode 2015-02-07 06:51:05 +00:00
bogus-server.key ssl: add test for server-side QSslSocket::PeerVerifyMode 2015-02-07 06:51:05 +00:00
ca.crt Add support for intermediate certificates to server sockets. 2013-02-19 21:37:24 +01:00
fake-login.live.com.key
fake-login.live.com.pem
fluke.cert
fluke.key
inter.crt Add support for intermediate certificates to server sockets. 2013-02-19 21:37:24 +01:00
leaf.crt Add support for intermediate certificates to server sockets. 2013-02-19 21:37:24 +01:00
leaf.key Add support for intermediate certificates to server sockets. 2013-02-19 21:37:24 +01:00
qt-test-server-cacert.pem SSL: Update an about-to-expire certificate 2019-06-24 15:18:47 +02:00
qt-test-server-cert.pem Convert tst_QSslSocket to work with Docker 2019-03-11 15:38:58 +00:00
qtiochain.crt QSslSocket::verify: do not alter the default configuration 2020-11-30 23:11:05 +01:00
selfsigned-client.crt Add test case for QSslSocket to show the wrong behavior 2020-10-02 13:22:38 +02:00
selfsigned-client.key Add test case for QSslSocket to show the wrong behavior 2020-10-02 13:22:38 +02:00
selfsigned-server.crt Add test case for QSslSocket to show the wrong behavior 2020-10-02 13:22:38 +02:00
selfsigned-server.key Add test case for QSslSocket to show the wrong behavior 2020-10-02 13:22:38 +02:00
subjectAltNameIP.crt Ssl: Add support for IP-address in alternate subject name 2019-01-24 15:24:14 +00:00
xn--schufele-2za.crt QSslSocket: fix connection to a international domain name 2017-03-23 16:11:15 +00:00