make signing methods variable and signable
This commit is contained in:
parent
ddecbf052e
commit
c24cfbc62a
2
boot.php
2
boot.php
@ -50,7 +50,7 @@ require_once('include/attach.php');
|
|||||||
|
|
||||||
define ( 'PLATFORM_NAME', 'hubzilla' );
|
define ( 'PLATFORM_NAME', 'hubzilla' );
|
||||||
define ( 'STD_VERSION', '2.5.9' );
|
define ( 'STD_VERSION', '2.5.9' );
|
||||||
define ( 'ZOT_REVISION', '1.2' );
|
define ( 'ZOT_REVISION', '1.3' );
|
||||||
|
|
||||||
define ( 'DB_UPDATE_VERSION', 1192 );
|
define ( 'DB_UPDATE_VERSION', 1192 );
|
||||||
|
|
||||||
|
@ -185,6 +185,16 @@ function crypto_methods() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function signing_methods() {
|
||||||
|
|
||||||
|
|
||||||
|
$r = [ 'sha256' ];
|
||||||
|
call_hooks('signing_methods',$r);
|
||||||
|
return $r;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function aes_encapsulate($data,$pubkey) {
|
function aes_encapsulate($data,$pubkey) {
|
||||||
if(! $pubkey)
|
if(! $pubkey)
|
||||||
logger('aes_encapsulate: no key. data: ' . $data);
|
logger('aes_encapsulate: no key. data: ' . $data);
|
||||||
|
@ -122,7 +122,8 @@ function zot_build_packet($channel, $type = 'notify', $recipients = null, $remot
|
|||||||
],
|
],
|
||||||
'callback' => '/post',
|
'callback' => '/post',
|
||||||
'version' => ZOT_REVISION,
|
'version' => ZOT_REVISION,
|
||||||
'encryption' => crypto_methods()
|
'encryption' => crypto_methods(),
|
||||||
|
'signing' => signing_methods()
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($recipients) {
|
if ($recipients) {
|
||||||
|
Reference in New Issue
Block a user