Postgres module

negotiate_tls

procedure · 1 overloadsince 0.27.0Source

Asks for TLS and starts it, as ssl_mode requires. Does nothing for a Unix socket.

negotiate_tls :: (c: *Connection, config: Config) -> Pg_Error

Asks for TLS and starts it, as ssl_mode requires. Does nothing for a Unix socket.

Parameters

c: *Connection
the connection to upgrade.
config: Config
the settings: ssl_mode, ssl_direct and the TLS options.

Returns

See also