for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Nucleus - XMPP Library for PHP
*
* Copyright (C) 2016, Some rights reserved.
* @author Kacper "Kadet" Donat <[email protected]>
* Contact with author:
* Xmpp: [email protected]
* E-mail: [email protected]
* From Kadet with love.
*/
namespace Kadet\Xmpp\Sasl;
class DigestMD5 extends \Fabiang\Sasl\Authentication\DigestMD5
{
* Provides the (main) client response for DIGEST-MD5
* requires a few extra parameters than the other
* mechanisms, which are unavoidable.
* @param string $challenge The digest challenge sent by the server
* @return string The digest response (NOT base64 encoded)
public function createResponse($challenge = null)
if(strpos($challenge, 'rspauth=') !== false) {
return '';
}
return parent::createResponse($challenge);