Skip to content

Commit

Permalink
remove redundant issuer validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfl0wer committed Apr 15, 2024
1 parent 05b2a2d commit 75ec3b0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/certs/idcert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ impl<S: Signature, P: PublicKey<S>> IdCert<S, P> {
) -> Result<Self, ConversionError> {
// IdCsr gets validated in IdCertTbs::from_..._csr
let signature_algorithm = signing_key.algorithm_identifier();
issuer.validate()?; // TODO: Maybe this and the below validation should be done in IdCertTbs?
if !equal_domain_components(&id_csr.inner_csr.subject, &issuer) {
return Err(ConversionError::InvalidInput(InvalidInput::Malformed(
"Domain components of the issuer and the subject do not match".to_string(),
Expand Down

0 comments on commit 75ec3b0

Please sign in to comment.