Function mongocrypt_sys::mongocrypt_kms_ctx_endpoint
source · pub unsafe extern "C" fn mongocrypt_kms_ctx_endpoint(
kms: *mut mongocrypt_kms_ctx_t,
endpoint: *mut *const c_char,
) -> bool
Expand description
Get the hostname from which to connect over TLS.
The storage for @p endpoint is not owned by the caller, but is valid until calling @ref mongocrypt_ctx_kms_done.
@param[in] kms A @ref mongocrypt_kms_ctx_t. @param[out] endpoint The output endpoint as a NULL terminated string. The endpoint consists of a hostname and port separated by a colon. E.g. “example.com:123”. A port is always present.
@returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_kms_ctx_status