blob: f61f1a03aeb1fa18d9fdd71461210565cd5d69f2 (
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() {
return ByteArray(getAuthorizationID()) + '\0' + ByteArray(getAuthenticationID()) + '\0' + ByteArray(getPassword());
}
bool PLAINClientAuthenticator::setChallenge(const ByteArray&) {
return true;
}
}
|