moving forward again

This commit is contained in:
friendica
2012-08-08 18:50:04 -07:00
parent c28da56737
commit 9a39d4ade2
7 changed files with 33 additions and 70 deletions

View File

@@ -52,15 +52,16 @@ function zot_sign(&$item,$identity) {
// Given an item and an identity, verify the signature.
function zot_verify(&$item,$identity) {
return rsa_verify($item[signed'],base64url_decode($item['signature']),$identity['pubkey']);
return rsa_verify($item['signed'],base64url_decode($item['signature']),$identity['pubkey']);
}
function zot_notify($entity,$url) {
$x = z_post_url($url, array(
'zot_uid' => $entity['entity_global_id'],
'callback' => z_root() . '/zot',
'type' => 'notify',
'guid' => $entity['entity_global_id'],
'callback' => z_root() . '/post',
'spec' => ZOT_REVISION)
);
return($x);