provide a keychange operation to rebase an identity on a new keypair
This commit is contained in:
@@ -12,6 +12,8 @@ interface IHandler {
|
||||
|
||||
function Request($data);
|
||||
|
||||
function Rekey($sender,$data);
|
||||
|
||||
function AuthCheck($data,$encrypted);
|
||||
|
||||
function Purge($sender,$recipients);
|
||||
|
@@ -120,6 +120,10 @@ class Receiver {
|
||||
$this->handler->Notify($this->data);
|
||||
break;
|
||||
|
||||
case 'rekey':
|
||||
$this->handler->Rekey($this->sender, $this->data);
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->response['message'] = 'Not implemented';
|
||||
json_return_and_die($this->response);
|
||||
|
@@ -20,6 +20,10 @@ class ZotHandler implements IHandler {
|
||||
zot_reply_message_request($data);
|
||||
}
|
||||
|
||||
function Rekey($sender,$data) {
|
||||
zot_rekey_request($sender,$data);
|
||||
}
|
||||
|
||||
function AuthCheck($data,$encrypted) {
|
||||
zot_reply_auth_check($data,$encrypted);
|
||||
}
|
||||
|
Reference in New Issue
Block a user