From 236a79144838c17c7bc00f8602d2a6529022a816 Mon Sep 17 00:00:00 2001 From: Max Ammann Date: Wed, 25 Jun 2025 13:54:32 +0200 Subject: [PATCH] Remove mentions of require-full and require-ca --- tokio-postgres/src/connect_tls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-postgres/src/connect_tls.rs b/tokio-postgres/src/connect_tls.rs index d220cd3b5..0f6c697c8 100644 --- a/tokio-postgres/src/connect_tls.rs +++ b/tokio-postgres/src/connect_tls.rs @@ -24,7 +24,7 @@ where return Ok(MaybeTlsStream::Raw(stream)) } SslMode::Prefer if negotiation == SslNegotiation::Direct => { - return Err(Error::tls("weak sslmode \"prefer\" may not be used with sslnegotiation=direct (use \"require\", \"verify-ca\", or \"verify-full\")".into())) + return Err(Error::tls("weak sslmode \"prefer\" may not be used with sslnegotiation=direct (use \"require\")".into())) } SslMode::Prefer | SslMode::Require => {} }