From 0a074f6baa11970686c0fdb63903cd167bf3945a Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Tue, 28 Jan 2020 19:30:26 +0100 Subject: QXmppClient: Remove obsolete methods for TLS management The methods are obsolete since the TLS manager has become an internal client extension. The methods were not of any use except for the TLS manager and should better not be public to the user at all (i.e. startSocketEncryption()). This can be done without any concerns because the methods were not part of the public API in any release, yet. --- src/client/QXmppClient.cpp | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'src/client/QXmppClient.cpp') diff --git a/src/client/QXmppClient.cpp b/src/client/QXmppClient.cpp index 5fb1b869..f6622e94 100644 --- a/src/client/QXmppClient.cpp +++ b/src/client/QXmppClient.cpp @@ -433,47 +433,6 @@ QString QXmppClient::socketErrorString() const return d->stream->socket()->errorString(); } -/// Returns true, if the used socket supports SSL / TLS encryption. -/// -/// This is useful for checking whether TLS can be enabled. It is used by the -/// \c QXmppTlsManager. -/// -/// \since QXmpp 1.2 - -bool QXmppClient::socketSupportsSsl() const -{ - return d->stream->socket()->supportsSsl(); -} - -/// Returns true, if the socket used for connection to the XMPP server -/// currently uses SSL / TLS encryption. -/// -/// When using STARTTLS, this is false at first and becomes true later. -/// -/// \since QXmpp 1.2 - -bool QXmppClient::isSocketEncrypted() const -{ - return d->stream->socket()->isEncrypted(); -} - -/// If the socket supports SSL / TLS encryption, this method can be used to -/// enable it. -/// -/// This is used by the \c QXmppTlsManager to enable SSL / TLS encryption for -/// STARTTLS. -/// -/// \note You should usually not use this method manually. If you want to -/// enable or disable TLS encryption, you can set this in the -/// \c QXmppConfiguration provided to \c connectToServer(). -/// -/// \since QXmpp 1.2 - -void QXmppClient::startSocketEncryption() -{ - d->stream->socket()->startClientEncryption(); -} - /// Returns the XMPP stream error if QXmppClient::Error is QXmppClient::XmppStreamError. QXmppStanza::Error::Condition QXmppClient::xmppStreamError() -- cgit v1.2.3