mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 06:09:59 +00:00
disable channel binding
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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")?
|
||||
|
||||
Reference in New Issue
Block a user