Skip to content

Commit f01b123

Browse files
authored
Added a comment on when deprecated behavior can be removed (#12938)
1 parent afdba93 commit f01b123

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rust/src/x509/certificate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ fn parse_display_text<'p>(
477477
DisplayText::IA5String(o) => Ok(pyo3::types::PyString::new(py, o.as_str()).into_any()),
478478
DisplayText::Utf8String(o) => Ok(pyo3::types::PyString::new(py, o.as_str()).into_any()),
479479
DisplayText::VisibleString(o) => {
480+
// We should be able to remove this at the start of 2027.
480481
if asn1::VisibleString::new(o.as_str()).is_none() {
481482
let warning_cls = types::DEPRECATED_IN_41.get(py)?;
482483
let message = cstr_from_literal!("Invalid ASN.1 (UTF-8 characters in a VisibleString) in the explicit text and/or notice reference of the certificate policies extension. In a future version of cryptography, an exception will be raised.");

0 commit comments

Comments
 (0)