aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppStream.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-02-11 08:04:05 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-02-11 08:04:05 +0000
commit4e325a8574e4823d8b9ef270974d7514ec5d396e (patch)
treedc3f8aebbee378c4652f1c0b7449a17f28bd4ffb /source/QXmppStream.cpp
parent1fceaa86f263122c90fd9e7e3a85cb05a0fc505f (diff)
downloadqxmpp-4e325a8574e4823d8b9ef270974d7514ec5d396e.tar.gz
add a configuration item to decide whether to ignore SSL errors (issue #42)
Diffstat (limited to 'source/QXmppStream.cpp')
-rw-r--r--source/QXmppStream.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp
index c0bc03d3..f0b9f91c 100644
--- a/source/QXmppStream.cpp
+++ b/source/QXmppStream.cpp
@@ -140,9 +140,11 @@ void QXmppStream::connect()
void QXmppStream::socketSslErrors(const QList<QSslError> & error)
{
log(QString("SSL errors"));
- m_socket.ignoreSslErrors();
for(int i = 0; i< error.count(); ++i)
log(error.at(i).errorString());
+
+ if (getConfiguration().getIgnoreSslErrors())
+ m_socket.ignoreSslErrors();
}
void QXmppStream::socketHostFound()