1 2 3 4 5 6 7 8 9 10
#include "Swiften/SASL/PLAINMessage.h" namespace Swift { PLAINMessage::PLAINMessage(const String& authcid, const String& password, const String& authzid) { String s = authzid + '\0' + authcid + '\0' + password; value_ = ByteArray(s.getUTF8Data(), s.getUTF8Size()); } }