make signing methods variable and signable

This commit is contained in:
zotlabs 2017-07-25 15:59:58 -07:00
parent ddecbf052e
commit c24cfbc62a
3 changed files with 13 additions and 2 deletions

View File

@ -50,7 +50,7 @@ require_once('include/attach.php');
define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'STD_VERSION', '2.5.9' );
define ( 'ZOT_REVISION', '1.2' );
define ( 'ZOT_REVISION', '1.3' );
define ( 'DB_UPDATE_VERSION', 1192 );

View File

@ -185,6 +185,16 @@ function crypto_methods() {
}
function signing_methods() {
$r = [ 'sha256' ];
call_hooks('signing_methods',$r);
return $r;
}
function aes_encapsulate($data,$pubkey) {
if(! $pubkey)
logger('aes_encapsulate: no key. data: ' . $data);

View File

@ -122,7 +122,8 @@ function zot_build_packet($channel, $type = 'notify', $recipients = null, $remot
],
'callback' => '/post',
'version' => ZOT_REVISION,
'encryption' => crypto_methods()
'encryption' => crypto_methods(),
'signing' => signing_methods()
];
if ($recipients) {