public function get_challenge_response_pkt($challenge)
{
$stanza = new JAXLXml('response', XMPP::NS_SASL);
$decoded = $this->explode_data(base64_decode($challenge));
if (!isset($decoded['rspauth'])) {
JAXLLogger::debug("calculating response to challenge");
$stanza->t($this->get_challenge_response($decoded));
}
return $stanza;
}