Skip to content

Commit 733a1ca

Browse files
committed
csr: document potential errors from parsing CSRs
1 parent 247bccc commit 733a1ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rcgen/src/csr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ impl CertificateSigningRequestParams {
9191
/// - `Key Usage` (see [`KeyUsagePurpose`])
9292
/// - `Extended Key Usage` (see [`ExtendedKeyUsagePurpose`])
9393
///
94-
/// On encountering other extensions, this function will return an error.
94+
/// On encountering other extensions, this function will return [`Error::UnsupportedExtension`].
95+
/// If the request's signature is invalid, it will return [`Error::InvalidRequestSignature`].
9596
///
9697
/// [`rustls_pemfile::csr()`] is often used to obtain a [`CertificateSigningRequestDer`] from
9798
/// PEM input. If you already have a byte slice containing DER, it can trivially be converted

0 commit comments

Comments
 (0)