Skip to content

Commit

Permalink
[potentially dangerous] allow certs without name constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Pässler committed Apr 8, 2021
1 parent 8840b2d commit 0407eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ pub fn check_name_constraints(
}
let subtrees = der::nested(inner, subtrees_tag, Error::BadDER, |tagged| {
der::expect_tag_and_get_value(tagged, der::Tag::Sequence)
})?;
Ok(Some(subtrees))
});
Ok(subtrees.ok())
}

let permitted_subtrees = parse_subtrees(input, der::Tag::ContextSpecificConstructed0)?;
Expand Down

0 comments on commit 0407eb7

Please sign in to comment.