qt5base-lts/tests/auto/network/ssl
Timur Pocheptsov e5438e8ded QSslSocket (OpenSSL) improve alert messages handling
1. Add a new verification callback. This gives an option
to report errors directly from this callback (by emitting
handshakeInterruptedOnError()). This allows an application
to explain to its peer why the handshake was interrupted (by
sending a corresponding alert message).
2. This also means we want to notice such alerts (in Qt,
from the application's point of view, they are mostly
informational only, no interaction is required). So we
also introduce a new 'info callback', that can notice alert
messages read or written. We also introduce two new enums
describing the level and type of an alert message. QSslSocket
gets three new signals (for incoming/outgoing alerts and
verification errors found early).
3. In case we requested a certificate, but the peer provided
none, we would previously abruptly close the connection without
a proper alert message (and such a situation is not handled
by any verification callbacks, since there is no certificate(s)
to verify essentially). So we now introduce a new verification
option that maps to what OpenSSL calls 'SSL_VERIFY_FAIL_IF_NO_PEER_CERT'.
This way, the proper alert will be generated.

Fixes: QTBUG-68419
Change-Id: I5d1e9298b4040a2d4f867f5b1a3567a2253927b8
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2019-12-03 18:06:02 +01:00
..
qasn1element QAsn1Element - fix toDateTime function 2017-07-18 13:09:16 +00:00
qdtls Merge remote-tracking branch 'origin/5.15' into dev 2019-11-02 01:01:12 +01:00
qdtlscookie DTLS auto-test(s) - fix a buggy logic with pending datagrams 2019-10-10 11:28:24 +02:00
qocsp Make QList an alias to QVector 2019-10-30 11:52:48 +01:00
qpassworddigestor Introduce QPasswordDigestor functions 2018-04-23 12:55:45 +00:00
qsslcertificate unblacklist passing tests 2019-07-08 11:01:42 +00:00
qsslcipher prune cargo-culted and obsolete winsock deps from autotests 2018-07-19 13:31:08 +00:00
qssldiffiehellmanparameters prune cargo-culted and obsolete winsock deps from autotests 2018-07-19 13:31:08 +00:00
qsslellipticcurve prune cargo-culted and obsolete winsock deps from autotests 2018-07-19 13:31:08 +00:00
qsslerror prune cargo-culted and obsolete winsock deps from autotests 2018-07-19 13:31:08 +00:00
qsslkey Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
qsslsocket QSslSocket (OpenSSL) improve alert messages handling 2019-12-03 18:06:02 +01:00
qsslsocket_onDemandCertificates_member Make network tests build and pass with disabled deprecated APIs 2019-07-23 18:48:17 +00:00
qsslsocket_onDemandCertificates_static Make network tests build and pass with disabled deprecated APIs 2019-07-23 18:48:17 +00:00
ssl.pro Add tst_QOcsp auto-test 2018-12-06 05:14:45 +00:00