mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
MiniDNS: removed TLSA record name check
This commit is contained in:
parent
9f9edc69cb
commit
9be02a22c3
1 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,8 @@ public class DaneVerifier {
|
|||
List<DaneCertificateException.CertificateMismatch> certificateMismatchExceptions = new LinkedList<>();
|
||||
boolean verified = false;
|
||||
for (Record<? extends Data> record : res.answerSection) {
|
||||
if (record.type == Record.TYPE.TLSA && record.name.equals(req)) {
|
||||
// https://github.com/MiniDNS/minidns/issues/140
|
||||
if (record.type == Record.TYPE.TLSA /*&& record.name.equals(req)*/) {
|
||||
TLSA tlsa = (TLSA) record.payloadData;
|
||||
try {
|
||||
verified |= checkCertificateMatches(chain[0], tlsa, hostName);
|
||||
|
|
Loading…
Reference in a new issue