Skip to content

Commit

Permalink
lib: consistent desc. of permitted and excluded subtrees.
Browse files Browse the repository at this point in the history
Matches language across the `permitted_subtrees` and `excluded_subtrees`
rustdoc comments for the `NameConstraints` struct.
  • Loading branch information
cpu committed Sep 9, 2023
1 parent 1ae2181 commit 6c6e716
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1256,13 +1256,11 @@ impl CertificateParams {
/// (only relevant for CA certificates)
#[derive(Debug, PartialEq, Eq, Clone)]
pub struct NameConstraints {
/// If non-empty, a whitelist of subtrees that the
/// domain has to match.
/// If non-empty, an allow list of subtrees that the domain has to match.
pub permitted_subtrees: Vec<GeneralSubtree>,
/// A list of excluded subtrees.
/// If non-empty, a forbid-list of excluded subtrees that the domain must not match.
///
/// Any name matching an excluded subtree is invalid
/// even if it also matches a permitted subtree.
/// Any name matching an excluded subtree is invalid even if it also matches a permitted subtree.
pub excluded_subtrees: Vec<GeneralSubtree>,
}

Expand Down

0 comments on commit 6c6e716

Please sign in to comment.