mirror of
https://github.com/coredns/coredns.git
synced 2025-11-14 16:02:16 -05:00
Correct some if/iff mixups (#3406)
This is a fixup for https://github.com/coredns/coredns/pull/3310 which replaced some 'iff's with 'if' under the assumption they were typos. I'm fairly confident they were "If and only if" (https://en.wikipedia.org/wiki/If_and_only_if), which is commonly shortened as "iff". I've updated them to the full length 'if, and only if' for the sake of readability. Signed-off-by: Euan Kemp <euan@ngrok.com>
This commit is contained in:
@@ -83,12 +83,12 @@ func (d Dnssec) getDNSKEY(state request.Request, zone string, do bool, server st
|
||||
return m
|
||||
}
|
||||
|
||||
// Return true if this is a zone key with the SEP bit unset. This implies a ZSK (rfc4034 2.1.1).
|
||||
// Return true if, and only if, this is a zone key with the SEP bit unset. This implies a ZSK (rfc4034 2.1.1).
|
||||
func (k DNSKEY) isZSK() bool {
|
||||
return k.K.Flags&(1<<8) == (1<<8) && k.K.Flags&1 == 0
|
||||
}
|
||||
|
||||
// Return true if this is a zone key with the SEP bit set. This implies a KSK (rfc4034 2.1.1).
|
||||
// Return true if, and only if, this is a zone key with the SEP bit set. This implies a KSK (rfc4034 2.1.1).
|
||||
func (k DNSKEY) isKSK() bool {
|
||||
return k.K.Flags&(1<<8) == (1<<8) && k.K.Flags&1 == 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user