Check channel binding requirements when unsupported locally
This commit is contained in:
parent
7b230592db
commit
8079ed6766
@ -255,7 +255,11 @@ where
|
||||
let (channel_binding, mechanism) = if has_scram_plus {
|
||||
match channel_binding {
|
||||
Some(channel_binding) => (channel_binding, sasl::SCRAM_SHA_256_PLUS),
|
||||
None => (sasl::ChannelBinding::unsupported(), sasl::SCRAM_SHA_256),
|
||||
None => {
|
||||
can_skip_channel_binding(config)?;
|
||||
|
||||
(sasl::ChannelBinding::unsupported(), sasl::SCRAM_SHA_256)
|
||||
},
|
||||
}
|
||||
} else if has_scram {
|
||||
can_skip_channel_binding(config)?;
|
||||
|
Loading…
Reference in New Issue
Block a user