S/MIME: skip certificate check when encrypt-only

This commit is contained in:
M66B
2025-04-03 15:36:55 +02:00
parent 01a9e7b8b2
commit 813a613fbe

View File

@@ -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();