Skip to content

Commit

Permalink
validation: document BC handling
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Nov 26, 2023
1 parent c6d502e commit e26feb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rust/cryptography-x509-validation/src/policy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ impl<'a, B: CryptoOps> Policy<'a, B> {
// to test here. It's also conceptually an extension policy, but
// requires a bit of extra external state (`current_depth`) that isn't
// presently convenient to push into that layer.
//
// NOTE: BasicConstraints is required via `ca_extension_policies`,
// so we always take this branch.
if let Some(bc) = extensions.get_extension(&BASIC_CONSTRAINTS_OID) {
let bc: BasicConstraints = bc.value()?;

Expand Down

0 comments on commit e26feb8

Please sign in to comment.