diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-05-08 17:01:12 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-05-08 17:01:12 (GMT) |
commit | eb6a3e659254de70b7c45627e7e0f4f53b737d04 (patch) | |
tree | 09152371318a66feb4e8b0c936255bab17b74a91 /Swiften/Client/ClientSession.h | |
parent | d233ec7a863fb0b9a6f20ea0aa52c7c0ea38e2fd (diff) | |
download | swift-eb6a3e659254de70b7c45627e7e0f4f53b737d04.zip swift-eb6a3e659254de70b7c45627e7e0f4f53b737d04.tar.bz2 |
Don't allow PLAIN over Non-TLS.
Diffstat (limited to 'Swiften/Client/ClientSession.h')
-rw-r--r-- | Swiften/Client/ClientSession.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Client/ClientSession.h b/Swiften/Client/ClientSession.h index fa52706..37f8bea 100644 --- a/Swiften/Client/ClientSession.h +++ b/Swiften/Client/ClientSession.h @@ -61,6 +61,10 @@ namespace Swift { return state; } + void setAllowPLAINOverNonTLS(bool b) { + allowPLAINOverNonTLS = b; + } + void start(); void finish(); @@ -100,6 +104,7 @@ namespace Swift { JID localJID; State state; boost::shared_ptr<SessionStream> stream; + bool allowPLAINOverNonTLS; bool needSessionStart; ClientAuthenticator* authenticator; }; |