summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-11 21:50:53 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-11 21:50:53 (GMT)
commitc81f60d353e61f91d8923514dedbce8a0b61c2df (patch)
tree0e3d6c79047ec1b7094e1f907a120740daa1ad50 /Swiften/TLS
parente058923f1b69a94fa48d0061a362e21a0823dfe0 (diff)
downloadswift-c81f60d353e61f91d8923514dedbce8a0b61c2df.zip
swift-c81f60d353e61f91d8923514dedbce8a0b61c2df.tar.bz2
Added CertificateVerificationError::ref.
Diffstat (limited to 'Swiften/TLS')
-rw-r--r--Swiften/TLS/CertificateVerificationError.h2
-rw-r--r--Swiften/TLS/TLSContext.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/TLS/CertificateVerificationError.h b/Swiften/TLS/CertificateVerificationError.h
index 807df03..554fd3b 100644
--- a/Swiften/TLS/CertificateVerificationError.h
+++ b/Swiften/TLS/CertificateVerificationError.h
@@ -11,6 +11,8 @@
namespace Swift {
class CertificateVerificationError : public Error {
public:
+ typedef boost::shared_ptr<CertificateVerificationError> ref;
+
enum Type {
UnknownError,
Expired,
diff --git a/Swiften/TLS/TLSContext.h b/Swiften/TLS/TLSContext.h
index 47f2697..2b8ed2d 100644
--- a/Swiften/TLS/TLSContext.h
+++ b/Swiften/TLS/TLSContext.h
@@ -28,7 +28,7 @@ namespace Swift {
virtual void handleDataFromApplication(const ByteArray&) = 0;
virtual Certificate::ref getPeerCertificate() const = 0;
- virtual boost::shared_ptr<CertificateVerificationError> getPeerCertificateVerificationError() const = 0;
+ virtual CertificateVerificationError::ref getPeerCertificateVerificationError() const = 0;
public:
boost::signal<void (const ByteArray&)> onDataForNetwork;