Skip to content

Commit

Permalink
Update src/rust/cryptography-x509-validation/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Gaynor <[email protected]>
  • Loading branch information
woodruffw and alex authored Nov 13, 2023
1 parent ea88d53 commit 7bfab59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/cryptography-x509-validation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ where
if let Some(sans) = extensions.get_extension(&SUBJECT_ALTERNATIVE_NAME_OID) {
let sans: SubjectAlternativeName<'_> = sans.value().map_err(PolicyError::Malformed)?;
for san in sans.clone() {
// If there are no applicable constraints, the SAN is considered valid so let's default to true.
// If there are no applicable constraints, the SAN is considered valid so the default is true.
let mut permit = true;
for c in constraints.permitted.iter() {
let status = self.apply_name_constraint(c, &san)?;
Expand Down

0 comments on commit 7bfab59

Please sign in to comment.