1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Known S/MIME pubkey requires email addresses

This commit is contained in:
M66B 2024-12-20 07:13:32 +01:00
parent b0be9f3e19
commit fd9f9fb455

View file

@ -10135,9 +10135,9 @@ public class FragmentMessages extends FragmentBase
}; };
if (s.verify(verifier)) { if (s.verify(verifier)) {
boolean known = true;
String fingerprint = EntityCertificate.getFingerprintSha256(cert); String fingerprint = EntityCertificate.getFingerprintSha256(cert);
List<String> emails = EntityCertificate.getEmailAddresses(cert); List<String> emails = EntityCertificate.getEmailAddresses(cert);
boolean known = !emails.isEmpty();
for (String email : emails) { for (String email : emails) {
EntityCertificate record = db.certificate().getCertificate(fingerprint, email); EntityCertificate record = db.certificate().getCertificate(fingerprint, email);
if (record == null) if (record == null)