SYNOPSIS

bool
mongoc_stream_tls_do_handshake (mongoc_stream_t *stream,
                                int32_t          timeout_msec);

DESCRIPTION

The mongoc_stream_tls_do_handshake() function shall execute an SSL handshake.

timeout_msec

The timeout, in milliseconds, for the handshake

RETURN VALUE

The mongoc_stream_tls_do_handshake() function returns true if the handshake was successful. If false, errno or openssl errors may be set.

ERRORS

ETIMEDOUT

The handshake timedout

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

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.