rust: bssl-tls: Fix a typo on the cert verification mode option Signed-off-by: Xiangfei Ding <xfding@google.com> Change-Id: Id908fddc02e84d88e0a45877bdfc48226a6a6964 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/92467 Reviewed-by: Rudolf Polzer <rpolzer@google.com>
diff --git a/rust/bssl-tls/src/context/credentials.rs b/rust/bssl-tls/src/context/credentials.rs index 9853ac9..bb9f304 100644 --- a/rust/bssl-tls/src/context/credentials.rs +++ b/rust/bssl-tls/src/context/credentials.rs
@@ -58,7 +58,10 @@ /// if the certificate request by the server is not fulfilled. /// - [`CertificateVerificationMode::PeerCertMandatory`] which will abort handshake if /// the request is not fulfilled. - pub fn with_certificate_mode(&mut self, mode: CertificateVerificationMode) -> &mut Self { + pub fn with_certificate_verification_mode( + &mut self, + mode: CertificateVerificationMode, + ) -> &mut Self { let conn = self.ptr(); unsafe { // Safety: we only uninstall the vtable.