Skip to content

Commit

Permalink
Filter more disallowed openssl ciphers thanks to @gene-git #641
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Nov 9, 2022
1 parent 1d62920 commit 8f37226
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snappymail/v/0.0.0/app/libraries/snappymail/crypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public static function listCiphers() : array
$list = \array_diff($list, \array_map('strtoupper',$list));
$list = \array_filter($list, function($v){
// DES/ECB/bf/rc insecure, GCM/CCM not supported
return !\preg_match('/(^(des|bf|rc))|-(ecb|gcm|ccm|ocb)|wrap/i', $v);
// AEAD
return !\preg_match('/(^(des|bf|rc))|-(ecb|gcm|ccm|ocb|siv|cts)|wrap/i', $v);
});
\natcasesort($list);
}
Expand Down

0 comments on commit 8f37226

Please sign in to comment.