---
name: "mongoc_client_get_crypt_shared_version"
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_get_crypt_shared_version"
---

# mongoc\_client\_get\_crypt\_shared\_version(3)

## SYNOPSIS

```
const char *
mongoc_client_get_crypt_shared_version (const mongoc_client_t *client);
```

Obtain the version string of the *crypt\_shared* that is loaded for auto-encryption on the given **client**. If no *crypt\_shared* library is loaded, the returned pointer will be **NULL**.

## PARAMETERS

- •

  **client**: A live *mongoc\_client\_t*

## RETURNS

A pointer to a null-terminated character array string designating the version of *crypt\_shared* that was loaded for auto-encryption with **client**. If no *crypt\_shared* library is loaded, or auto-encryption is not loaded for the given **client**, the returned pointer will be **NULL**. The pointed-to array must not be modified or freed. The returned pointer is only valid for the lifetime of **client**.

**SEE ALSO:**

- •

  *mongoc\_client\_encryption\_get\_crypt\_shared\_version()*

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
