Postgres module

name_matches

procedure · 1 overloadsince 0.27.0Source

A name from the certificate against the host: equal without regard to case, or a wildcard *.rest for a host with exactly one more label in front of .rest.

name_matches :: (
    certificate_name: string,
    host: string,
    host_is_address: bool
) -> bool

A name from the certificate against the host: equal without regard to case, or a wildcard *.rest for a host with exactly one more label in front of .rest.

Parameters

certificate_name: string
a dNSName entry or common name from the certificate.
host: string
the host name or address the client connected to.
host_is_address: bool
host is an address: a wildcard name never matches it.

Returns

bool

See also