mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-17 14:33:32 +02:00
S/MIME: skip certificate check when encrypt-only
This commit is contained in:
@@ -4417,7 +4417,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
for (X509Certificate cert : chain)
|
||||
Log.i("S/MIME cert sign algo=" + cert.getSigAlgName() + " " + cert.getSigAlgOID());
|
||||
|
||||
if (check_certificate) {
|
||||
if (check_certificate && !EntityMessage.SMIME_ENCRYPTONLY.equals(type)) {
|
||||
// Check public key validity
|
||||
try {
|
||||
chain[0].checkValidity();
|
||||
|
||||
Reference in New Issue
Block a user