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 β€” a mongoc_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. πŸ’œ

2009-present, MongoDB, Inc. β€” long-running icon behavior, we love to see it ⭐


🌸 a cute little sign-off for you: this page is from version 2.5.6, dated Oct 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