diff options
Diffstat (limited to 'Swiften/TLS')
-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; |