]> dgit.raspbian.org Git - qtbase-opensource-src.git/commit
update sources to support OpenSSL 4
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Mon, 21 Sep 2026 18:14:33 +0000 (21:14 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 21 Sep 2026 18:14:33 +0000 (21:14 +0300)
commit9a4ae359586f951dfd20f34de6651ba5a0e2aa78
tree4d1a45eac0670d3dc3cc87cf7380692ebd41b4f2
parent7cc131085ee9489099cb63383a1d96d32ccd8a19
update sources to support OpenSSL 4

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e806630e694d89f5
Last-Update: 2026-06-10

OpenSSL 4 now uses const in logical cases across its X.509 API; this
patch updates Qt's TLS backend to compile against both 3.x and 4.x.

To do this QT_OPENSSL4_CONST macro (expands to `const` on OpenSSL >= 4,
empty otherwise) is introduced for functions which changed in OpenSSL 4.

There were pre-existing functions that were already const in OpenSSL 3
but were declared without const in Qt's wrapper layer - they have now
been fixed with plain const.

ASN1_STRING was made opaque in OpenSSL 4, so replace direct access with
use of accessor functions through the wrappers.

Gbp-Pq: Name openssl4.diff
src/network/ssl/qsslcertificate_openssl.cpp
src/network/ssl/qsslcertificate_p.h
src/network/ssl/qsslsocket_openssl_p.h
src/network/ssl/qsslsocket_openssl_symbols.cpp
src/network/ssl/qsslsocket_openssl_symbols_p.h