Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename is_zsk to is_zone_key. #292

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rdata/dnssec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl<Octs> Dnskey<Octs> {
/// cover RRSETs. See [RFC 4034, Section 2.1.1].
///
/// [RFC 4034, Section 2.1.1]: https://tools.ietf.org/html/rfc4034#section-2.1.1
pub fn is_zsk(&self) -> bool {
pub fn is_zone_key(&self) -> bool {
self.flags() & 0b0000_0001_0000_0000 != 0
}

Expand Down Expand Up @@ -2645,7 +2645,7 @@ mod test {
let dnskey =
Dnskey::new(257, 3, SecAlg::RSASHA256, bytes::Bytes::new())
.unwrap();
assert!(dnskey.is_zsk());
assert!(dnskey.is_zone_key());
assert!(dnskey.is_secure_entry_point());
assert!(!dnskey.is_revoked());
}
Expand Down
Loading