Skip to content

Commit

Permalink
pkcs8: don't re-export der::pem (#211)
Browse files Browse the repository at this point in the history
It can be easily accessed as `pkcs8::der::pem`
  • Loading branch information
tarcieri committed Nov 14, 2021
1 parent 3a54a0e commit 78c58e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkcs8/src/document/encrypted_private_key.rs
Expand Up @@ -10,7 +10,7 @@ use zeroize::{Zeroize, Zeroizing};
use crate::PrivateKeyDocument;

#[cfg(feature = "pem")]
use {crate::pem, core::str::FromStr};
use {core::str::FromStr, der::pem};

/// Encrypted PKCS#8 private key document.
///
Expand Down
2 changes: 1 addition & 1 deletion pkcs8/src/document/private_key.rs
Expand Up @@ -15,9 +15,9 @@ use {

#[cfg(feature = "pem")]
use {
crate::{pem, LineEnding},
alloc::string::String,
core::str::FromStr,
der::pem::{self, LineEnding},
};

#[cfg(feature = "std")]
Expand Down
2 changes: 1 addition & 1 deletion pkcs8/src/lib.rs
Expand Up @@ -107,7 +107,7 @@ pub use {

#[cfg(feature = "pem")]
#[cfg_attr(docsrs, doc(cfg(feature = "pem")))]
pub use der::pem::{self, LineEnding};
pub use der::pem::LineEnding;

#[cfg(feature = "pkcs5")]
pub use {crate::encrypted_private_key_info::EncryptedPrivateKeyInfo, pkcs5};
Expand Down

0 comments on commit 78c58e9

Please sign in to comment.