mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +03:00
Filter more disallowed openssl ciphers thanks to @gene-git #641
This commit is contained in:
parent
1d629209b4
commit
8f37226b76
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ abstract class Crypt
|
||||||
$list = \array_diff($list, \array_map('strtoupper',$list));
|
$list = \array_diff($list, \array_map('strtoupper',$list));
|
||||||
$list = \array_filter($list, function($v){
|
$list = \array_filter($list, function($v){
|
||||||
// DES/ECB/bf/rc insecure, GCM/CCM not supported
|
// 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);
|
\natcasesort($list);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue