Check channel binding requirements when unsupported locally

This commit is contained in:
Steven Fackler 2019-09-25 17:46:15 -07:00
parent 7b230592db
commit 8079ed6766

View File

@ -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)?;