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

Added remark

This commit is contained in:
M66B 2024-12-09 07:10:01 +01:00
parent f35f041633
commit 01ee00fceb

View file

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