aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppClient.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2020-01-28 19:30:26 +0100
committerLNJ <lnj@kaidan.im>2020-01-29 11:25:43 +0100
commit0a074f6baa11970686c0fdb63903cd167bf3945a (patch)
tree39d9e5e48bb73cb3df8e8da039740ea85d79bb35 /src/client/QXmppClient.cpp
parent97cb75b28b2a3c5825b55a0541dccaf50e45b35d (diff)
downloadqxmpp-0a074f6baa11970686c0fdb63903cd167bf3945a.tar.gz
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.
Diffstat (limited to 'src/client/QXmppClient.cpp')
-rw-r--r--src/client/QXmppClient.cpp41
1 files changed, 0 insertions, 41 deletions
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()