diff options
Diffstat (limited to 'Swiften/Serializer/AuthRequestSerializer.cpp')
m--------- | Swiften | 0 | ||||
-rw-r--r-- | Swiften/Serializer/AuthRequestSerializer.cpp | 17 |
2 files changed, 0 insertions, 17 deletions
diff --git a/Swiften b/Swiften new file mode 160000 +Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c diff --git a/Swiften/Serializer/AuthRequestSerializer.cpp b/Swiften/Serializer/AuthRequestSerializer.cpp deleted file mode 100644 index 7122485..0000000 --- a/Swiften/Serializer/AuthRequestSerializer.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include "Swiften/Serializer/AuthRequestSerializer.h" - -#include "Swiften/Elements/AuthRequest.h" -#include "Swiften/StringCodecs/Base64.h" - -namespace Swift { - -AuthRequestSerializer::AuthRequestSerializer() { -} - -String AuthRequestSerializer::serialize(boost::shared_ptr<Element> element) const { - boost::shared_ptr<AuthRequest> authRequest(boost::dynamic_pointer_cast<AuthRequest>(element)); - String value = (authRequest->getMessage().isEmpty() ? "=" : Base64::encode(authRequest->getMessage())); - return "<auth xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\" mechanism=\"" + authRequest->getMechanism() + "\">" + value + "</auth>"; -} - -} |