mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Validate BIMI certificates
This commit is contained in:
@@ -835,7 +835,7 @@ public class EmailProvider implements Parcelable {
|
||||
Certificate[] certs = sslSocket.getSession().getPeerCertificates();
|
||||
for (Certificate cert : certs)
|
||||
if (cert instanceof X509Certificate) {
|
||||
List<String> names = ConnectionHelper.getDnsNames((X509Certificate) cert);
|
||||
List<String> names = EntityCertificate.getDnsNames((X509Certificate) cert);
|
||||
EntityLog.log(context, "Certificate " + address +
|
||||
" " + TextUtils.join(",", names));
|
||||
if (ConnectionHelper.matches(host, names)) {
|
||||
|
||||
Reference in New Issue
Block a user