summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-09-14 20:05:27 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-09-14 20:05:27 (GMT)
commit2b630292e8e26e07a77e350024ba45c625f8dd95 (patch)
tree86ce156fee03120080146bf547c1fc31a9b4bcd6 /Swiften/Disco/CapsManager.h
parentef5a4dc3a5b0224628a225ef0dccc679287478be (diff)
downloadswift-2b630292e8e26e07a77e350024ba45c625f8dd95.zip
swift-2b630292e8e26e07a77e350024ba45c625f8dd95.tar.bz2
Print warning on non-validating hashes.
Diffstat (limited to 'Swiften/Disco/CapsManager.h')
-rw-r--r--Swiften/Disco/CapsManager.h6
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;