Skip to content

Commit

Permalink
doc: fix comment on WebPKI and platform verifier
Browse files Browse the repository at this point in the history
Since the webpki crate is a specific implementation (which is chosen by the
platform verifier crate on some platforms), it was confusing to call it out by
name. Instead, simplify the comment to say it uses "the default behavior for the
current platform."
  • Loading branch information
jsha authored and cpu committed Jul 30, 2024
1 parent 554382d commit 21a2cdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/cipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,8 +1055,9 @@ box_castable! {
}

impl rustls_server_cert_verifier {
/// Create a new server certificate verifier that uses the system's root store and WebPKI via
/// [`rustls-platform-verifier`][].
/// Create a verifier that uses the default behavior for the current platform.
///
/// This uses [`rustls-platform-verifier`][].
///
/// The verifier can be used in several `rustls_client_config` instances and must be freed by
/// the application using `rustls_server_cert_verifier_free` when no longer needed.
Expand Down
5 changes: 3 additions & 2 deletions src/rustls.h
Original file line number Diff line number Diff line change
Expand Up @@ -1257,8 +1257,9 @@ rustls_result rustls_web_pki_server_cert_verifier_builder_build(struct rustls_we
void rustls_web_pki_server_cert_verifier_builder_free(struct rustls_web_pki_server_cert_verifier_builder *builder);

/**
* Create a new server certificate verifier that uses the system's root store and WebPKI via
* [`rustls-platform-verifier`][].
* Create a verifier that uses the default behavior for the current platform.
*
* This uses [`rustls-platform-verifier`][].
*
* The verifier can be used in several `rustls_client_config` instances and must be freed by
* the application using `rustls_server_cert_verifier_free` when no longer needed.
Expand Down

0 comments on commit 21a2cdb

Please sign in to comment.