qt6-bb10/tests/auto/network
Mårten Nordheim 731b759c00 ASN1: speed up parsing of certificate timestamps
By parsing QDate and QTime separately it will internally parse the
values as-if-by UTC. This means we avoid the overhead of figuring out
what the local timezone is repeatedly for each certificate.

On Windows, with Schannel, this brings QAsn1Element::toDateTime
from consuming more than 97% of the test time to below 10%.
The test being tst_QSslSocket::systemCaCertificates. It also goes
from taking 1 minute in debug, to 1 second.

As a drive-by: add a (currently) failing test for Feb 29 2000, which
fails because we decode the date as 1900 before adjusting it to 2000.
But there is no 1900-02-29, so it returns an invalid date. As spotted
by Eddy.

Pick-to: 6.6 6.5
Change-Id: Iefa73a01d710129faf6412c4fa8bc2b5d7c98bbb
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-11-27 21:24:01 +01:00
..
access tst_http2: increase testing for authenticationRequired 2023-11-15 13:18:13 +02:00
kernel tst_QDnsLookup: fix typo in CMakeListst.txt 2023-09-04 14:17:12 -07:00
selftest Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
socket Change created socket protocol to IPv4 in broadcast test 2023-11-23 19:26:49 +01:00
ssl ASN1: speed up parsing of certificate timestamps 2023-11-27 21:24:01 +01:00
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00