From fd9f9fb455250c3925cc2178d415df80bac61ebb Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 20 Dec 2024 07:13:32 +0100 Subject: [PATCH] Known S/MIME pubkey requires email addresses --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 8c63a9b6a4..3b5b3f3c7d 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -10135,9 +10135,9 @@ public class FragmentMessages extends FragmentBase }; if (s.verify(verifier)) { - boolean known = true; String fingerprint = EntityCertificate.getFingerprintSha256(cert); List emails = EntityCertificate.getEmailAddresses(cert); + boolean known = !emails.isEmpty(); for (String email : emails) { EntityCertificate record = db.certificate().getCertificate(fingerprint, email); if (record == null)