aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-13 18:43:47 -0800
committerzotlabs <mike@macgirvin.com>2016-12-13 18:43:47 -0800
commit66a53c6d3c5851d7f9db3aa9bc6bb3cb677394b7 (patch)
tree57e74b711125e38345f6e7da79ef0ef346e7cab2
parentf111c5c325fec1139ee7ea36c691de452469fa5a (diff)
downloadvolse-hubzilla-66a53c6d3c5851d7f9db3aa9bc6bb3cb677394b7.tar.gz
volse-hubzilla-66a53c6d3c5851d7f9db3aa9bc6bb3cb677394b7.tar.bz2
volse-hubzilla-66a53c6d3c5851d7f9db3aa9bc6bb3cb677394b7.zip
add plugin hook to zot_best_algorithm()
-rw-r--r--include/zot.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index c80081cc8..853c8eb9e 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -169,6 +169,11 @@ function zot_best_algorithm($methods) {
if(\Zotlabs\Lib\System::get_server_role() !== 'pro')
return 'aes256cbc';
+ $x = [ 'methods' => $methods, 'result' => '' ];
+ call_hooks('zot_best_algorithm',$x);
+ if($x['result'])
+ return $x['result'];
+
if($methods) {
$x = explode(',',$methods);
if($x) {