mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
resolved: never authenticate RRsets with revoked keys
This commit is contained in:
parent
1d3db294fc
commit
28b8191e2f
@ -671,6 +671,8 @@ int dnssec_rrsig_match_dnskey(DnsResourceRecord *rrsig, DnsResourceRecord *dnske
|
||||
return 0;
|
||||
if ((dnskey->dnskey.flags & DNSKEY_FLAG_ZONE_KEY) == 0)
|
||||
return 0;
|
||||
if ((dnskey->dnskey.flags & DNSKEY_FLAG_REVOKE))
|
||||
return 0;
|
||||
if (dnskey->dnskey.protocol != 3)
|
||||
return 0;
|
||||
if (dnskey->dnskey.algorithm != rrsig->rrsig.algorithm)
|
||||
|
@ -34,8 +34,9 @@ typedef struct DnsResourceRecord DnsResourceRecord;
|
||||
typedef struct DnsTxtItem DnsTxtItem;
|
||||
|
||||
/* DNSKEY RR flags */
|
||||
#define DNSKEY_FLAG_ZONE_KEY (UINT16_C(1) << 8)
|
||||
#define DNSKEY_FLAG_SEP (UINT16_C(1) << 0)
|
||||
#define DNSKEY_FLAG_REVOKE (UINT16_C(1) << 7)
|
||||
#define DNSKEY_FLAG_ZONE_KEY (UINT16_C(1) << 8)
|
||||
|
||||
/* mDNS RR flags */
|
||||
#define MDNS_RR_CACHE_FLUSH (UINT16_C(1) << 15)
|
||||
|
Loading…
x
Reference in New Issue
Block a user