From 0206283a4b4eb9bd2108eb8fc8937c29cbb5d9c5 Mon Sep 17 00:00:00 2001 From: Ievgenii Meshcheriakov Date: Fri, 2 Sep 2022 14:52:37 +0200 Subject: QTlsBackendOpenSSL: Make ensureLibraryLoaded() private MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This method is not used outside of the class right now. This is also an initialization method that may not be called recursively. Making it private hopefully makes it harder to make this mistake in the future. Task-number: QTBUG-103559 Change-Id: I8e1113e442e815320108b79bbd7b41bd28a66840 Reviewed-by: MÃ¥rten Nordheim --- src/plugins/tls/openssl/qtlsbackend_openssl_p.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/tls/openssl/qtlsbackend_openssl_p.h b/src/plugins/tls/openssl/qtlsbackend_openssl_p.h index 748ef13ac4..6ff1052957 100644 --- a/src/plugins/tls/openssl/qtlsbackend_openssl_p.h +++ b/src/plugins/tls/openssl/qtlsbackend_openssl_p.h @@ -41,7 +41,6 @@ public: static void logAndClearErrorQueue(); static void clearErrorQueue(); - static bool ensureLibraryLoaded(); // Index used in SSL_get_ex_data to get the matching TlsCryptographerOpenSSL: static bool s_loadedCiphersAndCerts; static int s_indexForSSLExtraData; @@ -49,7 +48,7 @@ public: static QString msgErrorsDuringHandshake(); static QSslCipher qt_OpenSSL_cipher_to_QSslCipher(const SSL_CIPHER *cipher); private: - + static bool ensureLibraryLoaded(); QString backendName() const override; bool isValid() const override; long tlsLibraryVersionNumber() const override; -- cgit v1.2.3