Skip to content

Commit

Permalink
docs: Be explicit about how to not pass a list of DNs for client auth
Browse files Browse the repository at this point in the history
It took me way longer than I care to admit to figure this out, so I
thought I'd spare others the trouble.

Fixes #828.
  • Loading branch information
horazont authored and djc committed Sep 22, 2021
1 parent 42e624b commit 63c5368
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rustls/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ pub trait ClientCertVerifier: Send + Sync {
/// Returns the subject names of the client authentication trust anchors to
/// share with the client when requesting client authentication.
///
/// Return `None` to abort the connection.
/// Return `None` to abort the connection. Return an empty `Vec` to continue
/// the handshake without passing a list of CA DNs.
fn client_auth_root_subjects(&self) -> Option<DistinguishedNames>;

/// Verify the end-entity certificate `end_entity` is valid for the
Expand Down

0 comments on commit 63c5368

Please sign in to comment.