Function mongocrypt_sys::mongocrypt_ctx_next_kms_ctx

source ยท
pub unsafe extern "C" fn mongocrypt_ctx_next_kms_ctx(
    ctx: *mut mongocrypt_ctx_t,
) -> *mut mongocrypt_kms_ctx_t
Expand description

Get the next KMS handle.

Multiple KMS handles may be retrieved at once. Drivers may do this to fan out multiple concurrent KMS HTTP requests. Feeding multiple KMS requests is thread-safe.

If KMS handles are being handled synchronously, the driver can reuse the same TLS socket to send HTTP requests and receive responses.

@param[in] ctx A @ref mongocrypt_ctx_t. @returns a new @ref mongocrypt_kms_ctx_t or NULL.