File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -256,14 +256,10 @@ where
256
256
match channel_binding {
257
257
Some ( channel_binding) => ( channel_binding, sasl:: SCRAM_SHA_256_PLUS ) ,
258
258
None => {
259
- can_skip_channel_binding ( config) ?;
260
-
261
259
( sasl:: ChannelBinding :: unsupported ( ) , sasl:: SCRAM_SHA_256 )
262
260
} ,
263
261
}
264
262
} else if has_scram {
265
- can_skip_channel_binding ( config) ?;
266
-
267
263
match channel_binding {
268
264
Some ( _) => ( sasl:: ChannelBinding :: unrequested ( ) , sasl:: SCRAM_SHA_256 ) ,
269
265
None => ( sasl:: ChannelBinding :: unsupported ( ) , sasl:: SCRAM_SHA_256 ) ,
@@ -272,6 +268,10 @@ where
272
268
return Err ( Error :: authentication ( "unsupported SASL mechanism" . into ( ) ) ) ;
273
269
} ;
274
270
271
+ if mechanism != sasl:: SCRAM_SHA_256_PLUS {
272
+ can_skip_channel_binding ( config) ?;
273
+ }
274
+
275
275
let mut scram = ScramSha256 :: new ( password, channel_binding) ;
276
276
277
277
let mut buf = vec ! [ ] ;
You can’t perform that action at this time.
0 commit comments