aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-07-25 15:59:58 -0700
committerzotlabs <mike@macgirvin.com>2017-07-25 15:59:58 -0700
commitc24cfbc62af111f18576cfde8e4e920e66c57ff5 (patch)
treef1f7454a202b959ba82712f8c300f3500195cdfb
parentddecbf052eabe92f61091bcd2541190b1037e466 (diff)
downloadvolse-hubzilla-c24cfbc62af111f18576cfde8e4e920e66c57ff5.tar.gz
volse-hubzilla-c24cfbc62af111f18576cfde8e4e920e66c57ff5.tar.bz2
volse-hubzilla-c24cfbc62af111f18576cfde8e4e920e66c57ff5.zip
make signing methods variable and signable
-rwxr-xr-xboot.php2
-rw-r--r--include/crypto.php10
-rw-r--r--include/zot.php3
3 files changed, 13 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 061c14554..f5fe4b185 100755
--- a/boot.php
+++ b/boot.php
@@ -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 );
diff --git a/include/crypto.php b/include/crypto.php
index 2c5545e9b..6ac3fd732 100644
--- a/include/crypto.php
+++ b/include/crypto.php
@@ -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);
diff --git a/include/zot.php b/include/zot.php
index 33cf1d40d..f9682237e 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -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) {