diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-11-11 21:50:53 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-11-11 21:50:53 (GMT) |
commit | c81f60d353e61f91d8923514dedbce8a0b61c2df (patch) | |
tree | 0e3d6c79047ec1b7094e1f907a120740daa1ad50 /Swiften | |
parent | e058923f1b69a94fa48d0061a362e21a0823dfe0 (diff) | |
download | swift-c81f60d353e61f91d8923514dedbce8a0b61c2df.zip swift-c81f60d353e61f91d8923514dedbce8a0b61c2df.tar.bz2 |
Added CertificateVerificationError::ref.
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/TLS/CertificateVerificationError.h | 2 | ||||
-rw-r--r-- | Swiften/TLS/TLSContext.h | 2 |
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; |