Postgres module

start_tls

procedure · 1 overloadsince 0.27.0Source

Sets up the TLS configuration from the settings and runs the handshake.

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

Sets up the TLS configuration from the settings and runs the handshake.

Parameters

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

Returns

See also