Skip to content

Commit df9ef62

Browse files
committed
Fix parser name to parse_der_visiblestring for VisibleString (Closes #64)
Rename `visiblestring` to `parse_der_visiblestring` and keep previous function for compatibility (mark it as deprecated).
1 parent ea99cdc commit df9ef62

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/der/parser.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,16 @@ pub fn parse_der_numericstring(i: &[u8]) -> DerResult {
221221
/// Read a printable string value. The content is verified to
222222
/// contain only the allowed characters.
223223
#[inline]
224-
pub fn visiblestring(i: &[u8]) -> DerResult {
224+
pub fn parse_der_visiblestring(i: &[u8]) -> DerResult {
225225
parse_der_with_tag(i, Tag::VisibleString)
226226
}
227227

228+
#[deprecated(since = "8.2.0", note = "Use `parse_der_visiblestring` instead")]
229+
#[inline]
230+
pub fn visiblestring(i: &[u8]) -> DerResult {
231+
parse_der_visiblestring(i)
232+
}
233+
228234
/// Read a printable string value. The content is verified to
229235
/// contain only the allowed characters.
230236
#[inline]

0 commit comments

Comments
 (0)