MONGOC_CLIENT_ENCRYPTION_T(3)
π MONGOC_CLIENT_ENCRYPTION_T(3) π
okay bestie, welcome to the libmongoc page for MONGOC_CLIENT_ENCRYPTION_T(3) β yes that's the manual name, yes it's a mouthful, no we're not shortening it, it's iconic β¨
β¨ SYNOPSIS β¨
typedef struct _mongoc_client_encryption_t mongoc_client_encryption_t;
so like, mongoc_client_encryption_t is the little struct that hands you utility functions for In-Use Encryption π that's the whole vibe.
π§΅ THREAD SAFETY π§΅
listen up because this part matters fr fr: mongoc_client_encryption_t is NOT thread-safe π and it should only be used in the same thread as the mongoc_client_t that's configured via mongoc_client_encryption_opts_set_keyvault_client(). no cap. don't be out here sharing it across threads, it will not slay π
πΈ LIFECYCLE πΈ
the key vault client β the one you configure via mongoc_client_encryption_opts_set_keyvault_client() β must outlive the mongoc_client_encryption_t. like, it's the main character and your encryption object is the sidekick, okay? sidekicks go first π«Ά
π 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
go read those, they're giving required reading π
π AUTHOR π
MongoDB, Inc β the whole team, not just one guy, we love a collective π
π COPYRIGHT π
2009-present, MongoDB, Inc. that's the copyright line, keep it sacred π
and that's the page!! mwah π this was brought to you by libmongoc version 2.5.6, dated Oct 09, 2026 β periodt, see you in the next manpage bestie π¦π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms