From 66a53c6d3c5851d7f9db3aa9bc6bb3cb677394b7 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 13 Dec 2016 18:43:47 -0800 Subject: add plugin hook to zot_best_algorithm() --- include/zot.php | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- cgit v1.2.3