diff options
Diffstat (limited to 'Swiften/TLS/CertificateVerificationError.h')
-rw-r--r-- | Swiften/TLS/CertificateVerificationError.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiften/TLS/CertificateVerificationError.h b/Swiften/TLS/CertificateVerificationError.h index 22e6eaf..b17f5df 100644 --- a/Swiften/TLS/CertificateVerificationError.h +++ b/Swiften/TLS/CertificateVerificationError.h @@ -1,40 +1,42 @@ /* * Copyright (c) 2010-2012 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once #include <boost/shared_ptr.hpp> #include <Swiften/Base/Error.h> namespace Swift { class CertificateVerificationError : public Error { public: typedef boost::shared_ptr<CertificateVerificationError> ref; enum Type { UnknownError, Expired, NotYetValid, SelfSigned, Rejected, Untrusted, InvalidPurpose, PathLengthExceeded, InvalidSignature, InvalidCA, InvalidServerIdentity, + Revoked, + RevocationCheckFailed }; CertificateVerificationError(Type type = UnknownError) : type(type) {} Type getType() const { return type; } private: Type type; }; } |