Skip to content

Commit

Permalink
Re-publicise DistinguishedName::in_sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Oct 27, 2023
1 parent 1afdd45 commit 169671f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustls/src/msgs/handshake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ impl DistinguishedName {
/// use x509_parser::prelude::FromDer;
/// println!("{}", x509_parser::x509::X509Name::from_der(dn.as_ref())?.1);
/// ```
pub(crate) fn in_sequence(bytes: &[u8]) -> Self {
pub fn in_sequence(bytes: &[u8]) -> Self {
let mut wrapped = bytes.to_owned();
x509::wrap_in_sequence(&mut wrapped);
Self(PayloadU16::new(wrapped))
Expand Down

0 comments on commit 169671f

Please sign in to comment.