summaryrefslogtreecommitdiffstats
blob: 8f88c3c4d978871a9488718e337d4a3f7edc9b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "Swiften/SASL/PLAINClientAuthenticator.h"

namespace Swift {

PLAINClientAuthenticator::PLAINClientAuthenticator() : ClientAuthenticator("PLAIN") {
}

ByteArray PLAINClientAuthenticator::getResponse() const {
	return ByteArray(getAuthorizationID()) + '\0' + ByteArray(getAuthenticationID()) + '\0' + ByteArray(getPassword());
}

bool PLAINClientAuthenticator::setChallenge(const ByteArray&) {
	return true;
}

}