Skip to content

Commit

Permalink
publicise functions needed by pemfile compatibility layer
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Sep 25, 2024
1 parent cdced6c commit 01af8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl PemObject for (SectionKind, Vec<u8>) {
/// - Otherwise each decoded section is returned with a `Ok(Some((..., remainder)))` where
/// `remainder` is the part of the `input` that follows the returned section
#[allow(clippy::type_complexity)]
fn from_slice(mut input: &[u8]) -> Result<Option<((SectionKind, Vec<u8>), &[u8])>, Error> {
pub fn from_slice(mut input: &[u8]) -> Result<Option<((SectionKind, Vec<u8>), &[u8])>, Error> {
let mut b64buf = Vec::with_capacity(1024);
let mut section = None::<(Vec<_>, Vec<_>)>;

Expand Down Expand Up @@ -203,7 +203,7 @@ fn from_slice(mut input: &[u8]) -> Result<Option<((SectionKind, Vec<u8>), &[u8])
/// - Underlying IO errors produce a `Err(...)`
/// - Otherwise each decoded section is returned with a `Ok(Some(...))`
#[cfg(feature = "std")]
fn from_buf(rd: &mut dyn io::BufRead) -> Result<Option<(SectionKind, Vec<u8>)>, Error> {
pub fn from_buf(rd: &mut dyn io::BufRead) -> Result<Option<(SectionKind, Vec<u8>)>, Error> {
let mut b64buf = Vec::with_capacity(1024);
let mut section = None::<(Vec<_>, Vec<_>)>;
let mut line = Vec::with_capacity(80);
Expand Down

0 comments on commit 01af8d6

Please sign in to comment.