port hubzillas OpenWebAuth - rename some methods and classes
This commit is contained in:
@@ -6,7 +6,7 @@ namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Util\HTTPSig;
|
||||
use Friendica\Util\HTTPSignature;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
use dba;
|
||||
@@ -76,7 +76,7 @@ class Magic extends BaseModule
|
||||
$headers['X-Open-Web-Auth'] = random_string();
|
||||
|
||||
// Create a header that is signed with the local users private key.
|
||||
$headers = HTTPSig::createSig(
|
||||
$headers = HTTPSignature::createSig(
|
||||
'',
|
||||
$headers,
|
||||
$user['prvkey'],
|
||||
|
||||
@@ -9,7 +9,7 @@ use Friendica\Core\System;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Verify;
|
||||
use Friendica\Util\HTTPSig;
|
||||
use Friendica\Util\HTTPSignature;
|
||||
|
||||
use dba;
|
||||
|
||||
@@ -39,7 +39,7 @@ class Owa extends BaseModule
|
||||
continue;
|
||||
}
|
||||
|
||||
$sigblock = HTTPSig::parseSigheader($_SERVER[$head]);
|
||||
$sigblock = HTTPSignature::parseSigheader($_SERVER[$head]);
|
||||
if ($sigblock) {
|
||||
$keyId = $sigblock['keyId'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user