From d98cb8358d1842fe1cb73efda1e929d669bef725 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Mon, 29 Jul 2024 18:03:03 -0700 Subject: [PATCH] doc: fix comment on WebPKI and platform verifier 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." --- src/cipher.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cipher.rs b/src/cipher.rs index 6f5d4bda..6d903cd6 100644 --- a/src/cipher.rs +++ b/src/cipher.rs @@ -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.