Function stringprep::x520prep
source ยท pub fn x520prep(s: &str, case_fold: bool) -> Result<Cow<'_, str>, Error>
Expand description
Prepares a string according to the procedures described in Section 7 of ITU-T Recommendation X.520 (2019).
Note that this function does not remove leading, trailing, or inner spaces as described in Section 7.6, because the characters needing removal will vary across the matching rules and ASN.1 syntaxes used.