Skip to content

Commit

Permalink
removed the PEM tag check
Browse files Browse the repository at this point in the history
  • Loading branch information
nitneuqr committed Sep 17, 2024
1 parent 8ff612d commit 71e8abc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/rust/src/pkcs7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@ fn deserialize_and_decrypt<'p>(
.map_err(|_| pyo3::exceptions::PyValueError::new_err("Invalid PEM data"))?;
let pem = pem::parse(pem_str)
.map_err(|_| pyo3::exceptions::PyValueError::new_err("Failed to parse PEM data"))?;
if pem.tag() != "PKCS7" {
return Err(pyo3::exceptions::PyValueError::new_err("PEM tag mismatch").into());
}
pem.contents().to_vec()
};

Expand Down

0 comments on commit 71e8abc

Please sign in to comment.