Picks a mechanism from the server's offer and sends the client-first message.
- c: the connection to answer on.
- config: the connection settings;
channel_bindingdecides whether -PLUS is used. - s: the exchange state, filled in for the later steps.
- mechanisms: the SASL mechanism names the server offered.
scram_start :: (
c: *Connection,
config: Config,
s: *Scram,
mechanisms: [] string
) -> Pg_Error
Picks a mechanism from the server's offer and sends the client-first message.
Parameters
- c: *Connection
- the connection to answer on.
- config: Config
- the connection settings;
channel_bindingdecides whether -PLUS is used. - s: *Scram
- the exchange state, filled in for the later steps.
- mechanisms: [] string
- the SASL mechanism names the server offered.