MONGOC_CLIENT_...SET_KEYALTNAME(3)
π MONGOC_CLIENT_...SET_KEYALTNAME(3) β¨
okay so bestie, welcome to the libmongoc extended universe β this one is a whole function about telling the encryption layer which key you want, by name instead of by id. main character energy fr.
πΈ SYNOPSIS πΈ
void
mongoc_client_encryption_encrypt_opts_set_keyaltname (
mongoc_client_encryption_encrypt_opts_t *opts, const char *keyaltname);
π¦ DESCRIPTION π¦
So this little icon identifies the data key to use for encryption. That's it, that's the job. π
β οΈ but hear me out: this option is mutually exclusive with mongoc_client_encryption_encrypt_opts_set_keyid(). like, pick one. you cannot be doing both. it's giving "choose your fighter" and honestly the vibes will not survive if you try to set both π
π PARAMETERS π
optsβ amongoc_client_encryption_encrypt_opts_t. your options struct, your canvas, your moment β¨keyaltnameβ a string identifying a data key by alternate name. like a nickname for your key, no cap π«Ά
π SEE ALSO π
mongoc_client_encryption_encrypt_opts_set_keyid()β the other way to pick a key (mutually exclusive bestie, remember π )mongoc_client_encryption_datakey_opts_set_keyaltnames()β the plural-flavoured one, if you're setting up alt names on data key opts π
π§ AUTHOR π§
MongoDB, Inc β yeah, that MongoDB. slay. π
π COPYRIGHT π
2009-present, MongoDB, Inc. β long-running icon behavior, we love to see it β
πΈ a cute little sign-off for you: this page is from version2.5.6, datedOct 09, 202β and yes the year is literally cut off in the original, the page ate its own footer, no thoughts head empty π anyway, that's the tea, go encrypt something gorgeous π₯
π¦ 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