disable channel binding

This commit is contained in:
Conrad Ludgate
2025-07-08 17:11:30 +01:00
parent 2c915e2f3d
commit ccea44becd
2 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
//! A group of high-level tests for connection establishing logic and auth.
#![allow(clippy::unimplemented)]
mod mitm;
// disabled as we removed support for channel binding.
// mod mitm;
use std::sync::Arc;
use std::time::Duration;
@@ -296,7 +297,7 @@ async fn scram_auth_good(#[case] password: &str) -> anyhow::Result<()> {
));
let _conn = postgres_client::Config::new("test".to_owned(), 5432)
.channel_binding(postgres_client::config::ChannelBinding::Require)
.channel_binding(postgres_client::config::ChannelBinding::Disable)
.user("user")
.dbname("db")
.password(password)

View File

@@ -188,7 +188,8 @@ fn process_key_cert(
let key = sign::any_supported_type(&priv_key).context("invalid private key")?;
let first_cert = &cert_chain[0];
let tls_server_end_point = TlsServerEndPoint::new(first_cert)?;
// let tls_server_end_point = TlsServerEndPoint::new(first_cert)?;
let tls_server_end_point = TlsServerEndPoint::Undefined;
let certificate = SliceReader::new(first_cert)
.context("Failed to parse cerficiate")?