MONGOC_CLIENT_...YPTION_GET_KEY(3)
π MONGOC_CLIENT_...YPTION_GET_KEY(3) π
okay so this is a libmongoc manual page, and it's all about grabbing a key document. Bestie, it's giving βfetch the key from the vaultβ energy. π
β¨ SYNOPSIS β¨
bool
mongoc_client_encryption_get_key (mongoc_client_encryption_t *client_encryption,
const bson_value_t *keyid,
bson_t *key_doc,
bson_error_t *error);
Get a key document in the key vault collection that has the given keyid. That's the whole vibe. π¦
πΈ PARAMETERS πΈ
client_encryptionβ amongoc_client_encryption_t. The main character object you're passing in. πkeyidβ the UUID of the key to get. It's a BSON binary subtype0x04, iykyk. πkey_docβ optional, bestie. It's an uninitializedbson_tthat gets set to the resulting key document, or to an empty document value if the key does not exist. You must free it withbson_destroy(). Don't forget, fr fr. π«Άerrorβ optional. Abson_error_t. That's where the error tea goes if something's off. π
π₯ RETURNS π₯
Returns true if successful. Returns false and sets error otherwise. No cap. β
π SEE ALSO π
mongoc_client_encryption_t
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
Catch you later, bestie β this is libmongoc version 2.5.6, dated Oct 09, 202 (the footer got cut off mid-date, iykyk) πβ¨
π¦ 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