summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-09 22:12:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-09 22:15:47 (GMT)
commitafae15f7cf212c993da8264a4ae89cf8729b3f86 (patch)
treea165f41a8c7b9fd3e6eee90bdf961013204bf09e /Swiften/Client
parentbc5b3a02de2e9131bff940c9667f28b2ae588807 (diff)
downloadswift-afae15f7cf212c993da8264a4ae89cf8729b3f86.zip
swift-afae15f7cf212c993da8264a4ae89cf8729b3f86.tar.bz2
Added Doxygen documentation for some certificate APIs.
Diffstat (limited to 'Swiften/Client')
-rw-r--r--Swiften/Client/Client.h6
-rw-r--r--Swiften/Client/CoreClient.h8
2 files changed, 14 insertions, 0 deletions
diff --git a/Swiften/Client/Client.h b/Swiften/Client/Client.h
index 1a6700e..fa45fdd 100644
--- a/Swiften/Client/Client.h
+++ b/Swiften/Client/Client.h
@@ -127,6 +127,12 @@ namespace Swift {
return discoManager;
}
+ /**
+ * Configures the client to always trust a non-validating
+ * TLS certificate from the server.
+ * This is equivalent to setting a BlindCertificateTrustChecker
+ * using setCertificateTrustChecker().
+ */
void setAlwaysTrustCertificates();
public:
diff --git a/Swiften/Client/CoreClient.h b/Swiften/Client/CoreClient.h
index 211f84f..628ced0 100644
--- a/Swiften/Client/CoreClient.h
+++ b/Swiften/Client/CoreClient.h
@@ -133,6 +133,14 @@ namespace Swift {
return stanzaChannel_;
}
+ /**
+ * Sets the certificate trust checker.
+ *
+ * This checker will be called when the server sends a
+ * TLS certificate that does not validate. If the trust checker
+ * says the certificate is trusted, then connecting will proceed;
+ * if not, the connection will end with an error.
+ */
void setCertificateTrustChecker(CertificateTrustChecker*);
public: