Skip to content

Commit 26a4ee8

Browse files
authored
fixes #10247 -- clarify negative serial number warning (#12365)
1 parent 3b689ce commit 26a4ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust/src/x509/certificate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ pub(crate) fn load_der_x509_certificate(
440440
fn warn_if_negative_serial(py: pyo3::Python<'_>, bytes: &'_ [u8]) -> pyo3::PyResult<()> {
441441
if bytes[0] & 0x80 != 0 {
442442
let warning_cls = types::DEPRECATED_IN_36.get(py)?;
443-
let message = cstr_from_literal!("Parsed a negative serial number, which is disallowed by RFC 5280. Loading this certificate will cause an exception in the next release of cryptography.");
443+
let message = cstr_from_literal!("Parsed a negative serial number, which is disallowed by RFC 5280. Loading this certificate will cause an exception in a future release of cryptography.");
444444
pyo3::PyErr::warn(py, &warning_cls, message, 1)?;
445445
}
446446
Ok(())

0 commit comments

Comments
 (0)