SYNOPSIS

bool
mongoc_stream_tls_check_cert (mongoc_stream_t *stream,
                              const char      *host);

DESCRIPTION

The mongoc_stream_tls_check_cert() function shall perform a rfc 6125 certificate verification.

host

A UTF-8 string holding the hostname used in socket creation. This value is what will be matched against the server provided certificate.

RETURN VALUE

The mongoc_stream_tls_check_cert() function returns true if the certificate is valid was successful. If false, openssl errors may be set.

ERRORS

SSL errors are accessed through OpenSSL’s API. See SSL_get_error(3).

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.