From 01ee00fcebe948470b231a4d75b4534b3e62e35a Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 9 Dec 2024 07:10:01 +0100 Subject: [PATCH] Added remark --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index f7fc29d994..ed2d98a3b4 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -10187,6 +10187,7 @@ public class FragmentMessages extends FragmentBase // https://datatracker.ietf.org/doc/html/rfc3850#section-4.4.2 for (X509Certificate c : certs) { + // https://datatracker.ietf.org/doc/html/rfc3280#section-4.2.1.3 boolean[] usage = c.getKeyUsage(); boolean keyCertSign = (usage != null && usage.length > 5 && usage[5]); boolean selfSigned = c.getIssuerX500Principal().equals(c.getSubjectX500Principal());