aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-27 08:27:33 +0000
committerMario <mario@mariovavti.com>2021-05-27 08:27:33 +0000
commit9ea60ba79f41cbe82628292f9010be0c2a06ba05 (patch)
treef1e1baf6fe5d8cfa048d7a8952d8da060419ee14
parent43ef82aaaa78cf5b11325183d1a05af1e6888fd0 (diff)
downloadvolse-hubzilla-9ea60ba79f41cbe82628292f9010be0c2a06ba05.tar.gz
volse-hubzilla-9ea60ba79f41cbe82628292f9010be0c2a06ba05.tar.bz2
volse-hubzilla-9ea60ba79f41cbe82628292f9010be0c2a06ba05.zip
deprecate make_xchan_hash()
-rw-r--r--Zotlabs/Zot6/Zot6Handler.php2
-rw-r--r--include/channel.php4
2 files changed, 1 insertions, 5 deletions
diff --git a/Zotlabs/Zot6/Zot6Handler.php b/Zotlabs/Zot6/Zot6Handler.php
index bd321c4b1..d95009784 100644
--- a/Zotlabs/Zot6/Zot6Handler.php
+++ b/Zotlabs/Zot6/Zot6Handler.php
@@ -174,7 +174,7 @@ class Zot6Handler implements IHandler {
$old = null;
if(Libzot::verify($data['old_guid'],$data['old_guid_sig'],$data['old_key'])) {
- $oldhash = make_xchan_hash($data['old_guid'],$data['old_key']);
+ $oldhash = Libzot::make_xchan_hash($data['old_guid'],$data['old_key']);
$old = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($oldhash)
);
diff --git a/include/channel.php b/include/channel.php
index f051ded58..e02467125 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -235,10 +235,6 @@ function create_identity($arr) {
$guid = Libzot::new_uid($nick);
$key = Crypto::new_keypair(4096);
- // legacy zot
- $zsig = base64url_encode(Crypto::sign($guid,$key['prvkey']));
- $zhash = make_xchan_hash($guid,$zsig);
-
// zot6
$sig = Libzot::sign($guid,$key['prvkey']);
$hash = Libzot::make_xchan_hash($guid,$key['pubkey']);