Skip to content

Commit

Permalink
x509-cert: remove RelativeDistinguishedName::encode_from_string (#1509
Browse files Browse the repository at this point in the history
)

It's been deprecated. This removes it prior to the next breaking
release.
  • Loading branch information
tarcieri authored Sep 8, 2024
1 parent 8d99360 commit 76cb875
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions x509-cert/src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,6 @@ pub type DistinguishedName = RdnSequence;
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct RelativeDistinguishedName(pub SetOfVec<AttributeTypeAndValue>);

impl RelativeDistinguishedName {
/// Converts an RelativeDistinguishedName string into an encoded RelativeDistinguishedName
#[deprecated(
since = "0.2.1",
note = "use RelativeDistinguishedName::from_str(...)?.to_der()"
)]
pub fn encode_from_string(s: &str) -> Result<Vec<u8>, der::Error> {
Self::from_str(s)?.to_der()
}
}

/// Parse a [`RelativeDistinguishedName`] string.
///
/// This function follows the rules in [RFC 4514].
Expand Down

0 comments on commit 76cb875

Please sign in to comment.