The property has two major issues:
* it is out of sync with the underlying m_configuration
* it does not allow to disable an SSL option once it was enabled
Fixing the behavior is considered dangerous, because it affects the
default SSL options, and so potentially affects the application
security.
As a result, it was decided to deprecate this property and introduce
a new one instead of it.
Move the QML tests of the deprecated property into a separate TestCase
and enable it conditionally based on the value of
QT_REMOVAL_QT7_DEPRECATED_SINCE(6, 11) macro. This requires to use
QUICK_TEST_MAIN_WITH_SETUP() macro and introduce a custom Setup class
to pass the proper value from C++ to QML.
[ChangeLog][QQmlNetwork][Deprecation Notices] Deprecated the sslOptions
property of sslConfiguration/sslDtlsConfiguration. Use the new
sslOptionFlags property instead.
Fixes: QTBUG-137900
Change-Id: I7cd559e32475272fa77ae9dbf735d70371755725
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
It should replace the sslOptions property which is out-of-sync with
the underlying configuration and does not allow to reset an option
once it is set.
[ChangeLog][QQmlNetwork][sslConfiguration/sslDtlsConfiguration] Added
an sslOptionFlags property. Use it instead of the sslOptions property.
Task-number: QTBUG-137900
Change-Id: Ic2ce9059514742b597ea2d9a187fadcef1f4cc36
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
The tests show that the sslOptions property is out of sync with the
underlying QSslConfiguration.
Amends b44f466621.
Task-number: QTBUG-137900
Pick-to: 6.10 6.9 6.8
Change-Id: I2a34b373ea868c7e76c7470f872d3ba0233394ea
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>