-
-
Notifications
You must be signed in to change notification settings - Fork 799
Closed
Description
Over in rustls/rustls-ffi#324 (review) we talked a bit about the current API for the built-in implementations of ClientCertVerifier:
AllowAnyAnonymousOrAuthenticatedClient
The naming of these is a little verbose and confusing, and now that they take a CRLs argument, they are a bit redundant. Instead, we could adopt a builder-style API that could construct these, like ServerConfig. E.g.:
ClientVerifier::builder()
.with_roots(root_store)
.with_crls(crls)
.allow_unauthenticated()
.build()
ClientVerifier::builder()
.with_roots(root_store)
.without_crls()
.build()
// equivalent to NoClientAuth; or we could keep NoClientAuth as a shortcut for this
ClientVerifier::builder()
.allow_unauthenticated()
.build()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels