diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-09-14 20:05:27 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-09-14 20:05:27 (GMT) |
commit | 2b630292e8e26e07a77e350024ba45c625f8dd95 (patch) | |
tree | 86ce156fee03120080146bf547c1fc31a9b4bcd6 /Swiften/Disco/CapsManager.h | |
parent | ef5a4dc3a5b0224628a225ef0dccc679287478be (diff) | |
download | swift-contrib-2b630292e8e26e07a77e350024ba45c625f8dd95.zip swift-contrib-2b630292e8e26e07a77e350024ba45c625f8dd95.tar.bz2 |
Print warning on non-validating hashes.
Diffstat (limited to 'Swiften/Disco/CapsManager.h')
-rw-r--r-- | Swiften/Disco/CapsManager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Swiften/Disco/CapsManager.h b/Swiften/Disco/CapsManager.h index 3188a07..e2a8901 100644 --- a/Swiften/Disco/CapsManager.h +++ b/Swiften/Disco/CapsManager.h @@ -26,6 +26,11 @@ namespace Swift { DiscoInfo::ref getCaps(const String&) const; + // Mainly for testing purposes + void setWarnOnInvalidHash(bool b) { + warnOnInvalidHash = b; + } + private: void handlePresenceReceived(boost::shared_ptr<Presence>); void handleStanzaChannelAvailableChanged(bool); @@ -35,6 +40,7 @@ namespace Swift { private: IQRouter* iqRouter; CapsStorage* capsStorage; + bool warnOnInvalidHash; std::set<String> requestedDiscoInfos; std::set< std::pair<JID, String> > failingCaps; std::map<String, std::set< std::pair<JID, String> > > fallbacks; |