aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-30 16:36:33 -0800
committerzotlabs <mike@macgirvin.com>2016-11-30 16:36:33 -0800
commitc845eed114ec3cea90acd35c419110d9ab76051f (patch)
treed487da2ba21b282274648904395b111b633693c1 /include/zot.php
parent5b09829959948b85fa6b156abaa091c40d88a9e1 (diff)
downloadvolse-hubzilla-c845eed114ec3cea90acd35c419110d9ab76051f.tar.gz
volse-hubzilla-c845eed114ec3cea90acd35c419110d9ab76051f.tar.bz2
volse-hubzilla-c845eed114ec3cea90acd35c419110d9ab76051f.zip
advanced crypto restricted by server role
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index e29978908..379a9b04c 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -166,6 +166,9 @@ function zot_build_packet($channel, $type = 'notify', $recipients = null, $remot
function zot_best_algorithm($methods) {
+ if(\Zotlabs\Lib\System::get_server_role() !== 'pro')
+ return 'aes256cbc';
+
if($methods) {
$x = explode(',',$methods);
if($x) {