docs: fix broken link in ClientCertVerifier docs. (#1270)

Previously the `ClientCertVerifier` rust docs had a broken link to the
`Error::InvalidCertificate(CertificateError::BadEncoding)` type.

This commit breaks up the link into two parts, one for the
`Error::InvalidCertificate` variant and one for the
`CertificateError::BadEncoding` variant.
This commit is contained in:
Daniel McCarney 2023-04-03 10:56:58 -04:00 committed by GitHub
parent b0d5766a25
commit 5c81497d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -264,7 +264,10 @@ pub trait ClientCertVerifier: Send + Sync {
///
/// Note that none of the certificates have been parsed yet, so it is the responsibility of
/// the implementor to handle invalid data. It is recommended that the implementor returns
/// [`Error::InvalidCertificate(CertificateError::BadEncoding)`] when these cases are encountered.
/// an [InvalidCertificate] error with the [BadEncoding] variant when these cases are encountered.
///
/// [InvalidCertificate]: Error#variant.InvalidCertificate
/// [BadEncoding]: CertificateError#variant.BadEncoding
fn verify_client_cert(
&self,
end_entity: &Certificate,