diff options
author | Mario <mario@mariovavti.com> | 2021-05-27 08:27:33 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-05-27 08:27:33 +0000 |
commit | 9ea60ba79f41cbe82628292f9010be0c2a06ba05 (patch) | |
tree | f1e1baf6fe5d8cfa048d7a8952d8da060419ee14 | |
parent | 43ef82aaaa78cf5b11325183d1a05af1e6888fd0 (diff) | |
download | volse-hubzilla-9ea60ba79f41cbe82628292f9010be0c2a06ba05.tar.gz volse-hubzilla-9ea60ba79f41cbe82628292f9010be0c2a06ba05.tar.bz2 volse-hubzilla-9ea60ba79f41cbe82628292f9010be0c2a06ba05.zip |
deprecate make_xchan_hash()
-rw-r--r-- | Zotlabs/Zot6/Zot6Handler.php | 2 | ||||
-rw-r--r-- | include/channel.php | 4 |
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']); |