summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/TLS/TLSContext.h')
-rw-r--r--Swiften/TLS/TLSContext.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/Swiften/TLS/TLSContext.h b/Swiften/TLS/TLSContext.h
index 2d05100..47f2697 100644
--- a/Swiften/TLS/TLSContext.h
+++ b/Swiften/TLS/TLSContext.h
@@ -7,6 +7,7 @@
#pragma once
#include "Swiften/Base/boost_bsignals.h"
+#include <boost/shared_ptr.hpp>
#include "Swiften/Base/ByteArray.h"
#include "Swiften/TLS/Certificate.h"
@@ -27,11 +28,7 @@ namespace Swift {
virtual void handleDataFromApplication(const ByteArray&) = 0;
virtual Certificate::ref getPeerCertificate() const = 0;
- virtual boost::optional<CertificateVerificationError> getPeerCertificateVerificationError() const = 0;
-
- protected:
- static const char* ID_ON_XMPPADDR_OID;
- static const char* ID_ON_DNSSRV_OID;
+ virtual boost::shared_ptr<CertificateVerificationError> getPeerCertificateVerificationError() const = 0;
public:
boost::signal<void (const ByteArray&)> onDataForNetwork;