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 => {} }