---
name: "mongoc_client_encryption_t"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_client_encryption_t"
---

# mongoc\_client\_encryption\_t(3)

## SYNOPSIS

```
typedef struct _mongoc_client_encryption_t mongoc_client_encryption_t;
```

**mongoc\_client\_encryption\_t** provides utility functions for *In-Use Encryption*.

## THREAD SAFETY

*mongoc\_client\_encryption\_t* is NOT thread-safe and should only be used in the same thread as the *mongoc\_client\_t* that is configured via *mongoc\_client\_encryption\_opts\_set\_keyvault\_client()*.

## LIFECYCLE

The key vault client, configured via *mongoc\_client\_encryption\_opts\_set\_keyvault\_client()*, must outlive the *mongoc\_client\_encryption\_t*.

**SEE ALSO:**

```
mongoc_client_enable_auto_encryption()
```

```
mongoc_client_pool_enable_auto_encryption()
```

```
In-Use Encryption for libmongoc
```

```
The MongoDB Manual for Client-Side Field Level Encryption
```

```
The MongoDB Manual for Queryable Encryption
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
