Skip to content

Commit

Permalink
Update src/rust/src/pkcs7.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot <[email protected]>
  • Loading branch information
alex and Copilot authored Jan 31, 2025
1 parent 88fe698 commit f0ff2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/src/pkcs7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ fn load_der_pkcs7_certificates<'p>(
let result = load_pkcs7_certificates(py, pkcs7_decoded)?;
if asn1::parse_single::<pkcs7::ContentInfo<'_>>(data).is_err() {
let warning_cls = pyo3::exceptions::PyUserWarning::type_object(py);
let message = cstr_from_literal!("PKCS#7 certificates could not be parsed as DER, falling back to parsing as BER. Please file an issue at https://github.com/pyca/cryptography/issues explaining how your PKCS#7 certificates was created. In the future, this may become an exception.");
let message = cstr_from_literal!("PKCS#7 certificates could not be parsed as DER, falling back to parsing as BER. Please file an issue at https://github.com/pyca/cryptography/issues explaining how your PKCS#7 certificates were created. In the future, this may become an exception.");
pyo3::PyErr::warn(py, &warning_cls, message, 1)?;
}

Expand Down

0 comments on commit f0ff2e1

Please sign in to comment.