Postgres module

scram_start

procedure · 1 overloadsince 0.27.0Source

Picks a mechanism from the server's offer and sends the client-first message.

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_binding decides whether -PLUS is used.
s: *Scram
the exchange state, filled in for the later steps.
mechanisms: [] string
the SASL mechanism names the server offered.

Returns

See also