summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-05-05 16:08:55 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-05-05 16:08:55 (GMT)
commit501a4a43c9a95b3611bf91b8693fffc8814954b4 (patch)
tree1ab0d89a982392941503832fb968b72aab09422f /Swiften/TLS/Schannel/SchannelContextFactory.cpp
parent9c11acbb8801186bafa29ff820d368512590396a (diff)
downloadswift-501a4a43c9a95b3611bf91b8693fffc8814954b4.zip
swift-501a4a43c9a95b3611bf91b8693fffc8814954b4.tar.bz2
Re-enable revocation check.
Diffstat (limited to 'Swiften/TLS/Schannel/SchannelContextFactory.cpp')
-rw-r--r--Swiften/TLS/Schannel/SchannelContextFactory.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/Swiften/TLS/Schannel/SchannelContextFactory.cpp b/Swiften/TLS/Schannel/SchannelContextFactory.cpp
index 8ab7c6c..8b0044c 100644
--- a/Swiften/TLS/Schannel/SchannelContextFactory.cpp
+++ b/Swiften/TLS/Schannel/SchannelContextFactory.cpp
@@ -9,12 +9,22 @@
namespace Swift {
+SchannelContextFactory::SchannelContextFactory() : checkCertificateRevocation(true) {
+}
+
bool SchannelContextFactory::canCreate() const {
return true;
}
TLSContext* SchannelContextFactory::createTLSContext() {
- return new SchannelContext();
+ SchannelContext* context = new SchannelContext();
+ context->setCheckCertificateRevocation(checkCertificateRevocation);
+ return context;
}
+void SchannelContextFactory::setCheckCertificateRevocation(bool b) {
+ checkCertificateRevocation = b;
+}
+
+
}