Postgres module

verify_server_name

procedure · 1 overloadsince 0.27.0Source

"" when the certificate is for host, else why not.

verify_server_name :: (stream: *Tls.Tls_Stream, host: string) -> string

"" when the certificate is for host, else why not.

Parameters

stream: *Tls.Tls_Stream
the finished TLS handshake, whose peer certificate is checked.
host: string
the host name or address the client connected to.

Returns

string

See also