Skip to content

Commit d992370

Browse files
committed
csr: update documentation about parsing PEM
1 parent c6ddb2b commit d992370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rcgen/src/csr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ impl CertificateSigningRequestParams {
9494
/// On encountering other extensions, this function will return [`Error::UnsupportedExtension`].
9595
/// If the request's signature is invalid, it will return [`Error::InvalidRequestSignature`].
9696
///
97-
/// [`rustls_pemfile::csr()`] is often used to obtain a [`CertificateSigningRequestDer`] from
97+
/// The [`PemObject`] trait is often used to obtain a [`CertificateSigningRequestDer`] from
9898
/// PEM input. If you already have a byte slice containing DER, it can trivially be converted
9999
/// into [`CertificateSigningRequestDer`] using the [`Into`] trait.
100100
///
101-
/// [`rustls_pemfile::csr()`]: https://docs.rs/rustls-pemfile/latest/rustls_pemfile/fn.csr.html
101+
/// [`PemObject`]: pki_types::pem::PemObject
102102
#[cfg(feature = "x509-parser")]
103103
pub fn from_der(csr: &CertificateSigningRequestDer<'_>) -> Result<Self, Error> {
104104
use x509_parser::prelude::FromDer;

0 commit comments

Comments
 (0)