summaryrefslogtreecommitdiffstats
blob: a3016d121dea241c6bc04e406a886046a004babf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2012 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#include <Swiften/SASL/EXTERNALClientAuthenticator.h>

namespace Swift {

EXTERNALClientAuthenticator::EXTERNALClientAuthenticator() : ClientAuthenticator("EXTERNAL"), finished(false) {
}

boost::optional<SafeByteArray> EXTERNALClientAuthenticator::getResponse() const {
	return boost::optional<SafeByteArray>();
}

bool EXTERNALClientAuthenticator::setChallenge(const boost::optional<ByteArray>&) {
	if (finished) {
		return false;
	}
	finished = true;
	return true;
}

}