From a1a8a0d5bbcb638557a813805de08f1aebd1f728 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Tue, 13 Oct 2026 23:46:29 +0200 Subject: [PATCH] OpenSSL 4 compatibility (use accessors instead of fields on opaque structures) --- client/SslCertificate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/SslCertificate.cpp b/client/SslCertificate.cpp index c1281fce0..b355ed4cf 100644 --- a/client/SslCertificate.cpp +++ b/client/SslCertificate.cpp @@ -51,7 +51,9 @@ struct free_argument template static auto toQByteArray(T &x) { - return QByteArray((const char*)x->data, x->length); + const auto *str = std::to_address(x); + return QByteArray((const char*)ASN1_STRING_get0_data(str), + ASN1_STRING_length(str)); } template