fix(SECURITY): return error on failed DANE verification
and add raw cert caching in DANE verificator
This commit is contained in:
parent
c3b50e4ecc
commit
32b888b3c1
2 changed files with 18 additions and 10 deletions
|
@ -149,8 +149,7 @@ impl SelfsignedCertVerifier for CertVerifier {
|
|||
CertFingerprint::new_sha256(cert)
|
||||
}
|
||||
Err(e) => {
|
||||
// some other problem (e.g. DNS server rejected the request),
|
||||
// we shouldn't continue
|
||||
// cert not matched, DNS server rejected request, etc.
|
||||
eprintln!("DANE verification failed: {:?}", e);
|
||||
return Err(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue