File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ module PQ
297
297
end
298
298
end
299
299
300
- struct SamlContext
300
+ struct SaslContext
301
301
SCRAM_NAME = " SCRAM-SHA-256"
302
302
SCRAM_PLUS_NAME = " SCRAM-SHA-256-PLUS"
303
303
@@ -359,17 +359,17 @@ module PQ
359
359
360
360
private def handle_auth_sasl (mechanism_list )
361
361
mechs = String .new(mechanism_list).split(Char ::ZERO )
362
- cbind = if mechs.includes?(SamlContext ::SCRAM_PLUS_NAME )
362
+ cbind = if mechs.includes?(SaslContext ::SCRAM_PLUS_NAME )
363
363
check_auth_method!(" scram-sha-256-plus" )
364
364
true
365
- elsif mechs.includes?(SamlContext ::SCRAM_NAME )
365
+ elsif mechs.includes?(SaslContext ::SCRAM_NAME )
366
366
check_auth_method!(" scram-sha-256" )
367
367
false
368
368
else
369
369
raise ConnectionError .new(" no known sasl mechanism in list: #{ mechs.join(" , " ) } " )
370
370
end
371
371
372
- ctx = SamlContext .new(@conninfo .password || " " , cbind, soc)
372
+ ctx = SaslContext .new(@conninfo .password || " " , cbind, soc)
373
373
374
374
# send client-first-message
375
375
write_chr 'p' # SASLInitialResponse
You can’t perform that action at this time.
0 commit comments