diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-12-09 21:57:09 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-12-09 21:57:09 (GMT) |
commit | 08cc79dfe35b0735ef49108b82c52f94aab02e84 (patch) | |
tree | 6592881a96f7298ed6b1fc28073da4395d7ac368 /Swiften/Serializer | |
parent | 6c9ab286f209266e627bd011847c3b5d6476ddab (diff) | |
download | swift-contrib-08cc79dfe35b0735ef49108b82c52f94aab02e84.zip swift-contrib-08cc79dfe35b0735ef49108b82c52f94aab02e84.tar.bz2 |
Upgraded stream errors to new RFC3920bis.
Diffstat (limited to 'Swiften/Serializer')
-rw-r--r-- | Swiften/Serializer/StreamErrorSerializer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swiften/Serializer/StreamErrorSerializer.cpp b/Swiften/Serializer/StreamErrorSerializer.cpp index 14dd13f..b88f5c4 100644 --- a/Swiften/Serializer/StreamErrorSerializer.cpp +++ b/Swiften/Serializer/StreamErrorSerializer.cpp @@ -34,8 +34,10 @@ String StreamErrorSerializer::serialize(boost::shared_ptr<Element> element) con case StreamError::InvalidNamespace: typeTag = "invalid-namespace"; break; case StreamError::InvalidXML: typeTag = "invalid-xml"; break; case StreamError::NotAuthorized: typeTag = "not-authorized"; break; + case StreamError::NotWellFormed: typeTag = "not-well-formed"; break; case StreamError::PolicyViolation: typeTag = "policy-violation"; break; case StreamError::RemoteConnectionFailed: typeTag = "remote-connection-failed"; break; + case StreamError::Reset: typeTag = "reset"; break; case StreamError::ResourceConstraint: typeTag = "resource-constraint"; break; case StreamError::RestrictedXML: typeTag = "restricted-xml"; break; case StreamError::SeeOtherHost: typeTag = "see-other-host"; break; @@ -44,7 +46,6 @@ String StreamErrorSerializer::serialize(boost::shared_ptr<Element> element) con case StreamError::UnsupportedEncoding: typeTag = "unsupported-encoding"; break; case StreamError::UnsupportedStanzaType: typeTag = "unsupported-stanza-type"; break; case StreamError::UnsupportedVersion: typeTag = "unsupported-version"; break; - case StreamError::XMLNotWellFormed: typeTag = "xml-not-well-formed"; break; } errorElement.addNode(boost::make_shared<XMLElement>(typeTag, "urn:ietf:params:xml:ns:xmpp-streams")); |