summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-12 17:55:10 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-12 17:55:10 (GMT)
commit040207607ac43f1a03a8b030edb46538a12ca00e (patch)
treec23bed44320d03c3a30b6bb279cc686a72daef25 /Swiften
parent23767436d2399ac36241b618bc42d3504ad20f1a (diff)
downloadswift-040207607ac43f1a03a8b030edb46538a12ca00e.zip
swift-040207607ac43f1a03a8b030edb46538a12ca00e.tar.bz2
Added missing break statements in case switch.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Client/CoreClient.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp
index 49726ca..66fe23e 100644
--- a/Swiften/Client/CoreClient.cpp
+++ b/Swiften/Client/CoreClient.cpp
@@ -184,26 +184,37 @@ void CoreClient::handleSessionFinished(boost::shared_ptr<Error> error) {
switch(verificationError->getType()) {
case CertificateVerificationError::UnknownError:
clientError = ClientError(ClientError::UnknownCertificateError);
+ break;
case CertificateVerificationError::Expired:
clientError = ClientError(ClientError::CertificateExpiredError);
+ break;
case CertificateVerificationError::NotYetValid:
clientError = ClientError(ClientError::CertificateNotYetValidError);
+ break;
case CertificateVerificationError::SelfSigned:
clientError = ClientError(ClientError::CertificateSelfSignedError);
+ break;
case CertificateVerificationError::Rejected:
clientError = ClientError(ClientError::CertificateRejectedError);
+ break;
case CertificateVerificationError::Untrusted:
clientError = ClientError(ClientError::CertificateUntrustedError);
+ break;
case CertificateVerificationError::InvalidPurpose:
clientError = ClientError(ClientError::InvalidCertificatePurposeError);
+ break;
case CertificateVerificationError::PathLengthExceeded:
clientError = ClientError(ClientError::CertificatePathLengthExceededError);
+ break;
case CertificateVerificationError::InvalidSignature:
clientError = ClientError(ClientError::InvalidCertificateSignatureError);
+ break;
case CertificateVerificationError::InvalidCA:
clientError = ClientError(ClientError::InvalidCAError);
+ break;
case CertificateVerificationError::InvalidServerIdentity:
clientError = ClientError(ClientError::InvalidServerIdentityError);
+ break;
}
}
actualError = boost::optional<ClientError>(clientError);