diff options
| author | Tim Blechmann <tim.blechmann@qt.io> | 2025-07-18 12:19:31 +0800 |
|---|---|---|
| committer | Tim Blechmann <tim.blechmann@qt.io> | 2025-08-16 08:57:26 +0800 |
| commit | 9d8ffc0685eb28198cf04c8afdfae62a449552e8 (patch) | |
| tree | 3d4bd3ac9e6b06e3c291f928323b398f5e6b6208 /src/plugins/tls/openssl/qtls_openssl.cpp | |
| parent | 3acd2d81d0c32d14644faefe51adbfac875b29f2 (diff) | |
openssl: ensure namespacing
Functions are declared as extern "C", which prevents them from being
mangled. Since they are onyly passed as callacks to openssl, but we
don't need to prevent mangling, we can remove the extern "C" statements
from them
Pick-to: 6.10
Task-number: QTBUG-138543
Change-Id: I0f4cca0cf799ebb6b2df980d2a607c6b336aa8c9
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/tls/openssl/qtls_openssl.cpp')
| -rw-r--r-- | src/plugins/tls/openssl/qtls_openssl.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/tls/openssl/qtls_openssl.cpp b/src/plugins/tls/openssl/qtls_openssl.cpp index db9661b8c15..64c6b69ef4d 100644 --- a/src/plugins/tls/openssl/qtls_openssl.cpp +++ b/src/plugins/tls/openssl/qtls_openssl.cpp @@ -112,8 +112,6 @@ QSslCertificate findCertificateToFetch(const QList<QSslError> &tlsErrors, bool c namespace QTlsPrivate { -extern "C" { - int q_X509Callback(int ok, X509_STORE_CTX *ctx) { if (!ok) { @@ -359,8 +357,6 @@ void qt_AlertInfoCallback(const SSL *connection, int from, int value) crypto->alertMessageReceived(value); } -} // extern "C" - #if QT_CONFIG(ocsp) namespace { |
