MONGOC_CLIENT...ET_KEYALTNAMES(3)

πŸ’… MONGOC_CLIENT_ENCRYPTION_DATAKEY_OPTS_SET_KEYALTNAMES(3) ✨

ok so this is a page from libmongoc, and it's about giving your data keys cute little nicknames. bestie, let me tell you everything 🫢


🌸 SYNOPSIS 🌸

void
mongoc_client_encryption_datakey_opts_set_keyaltnames (
   mongoc_client_encryption_datakey_opts_t *opts,
   char **keyaltnames,
   uint32_t keyaltnames_count);

πŸ’– DESCRIPTION πŸ’–

Okay so picture this: you've got a data key, and you want other strings you can use to identify it. That's literally what this does β€” it sets a list of alternate name strings that can be used to identify a data key. Key alternate names must be unique. No cap, that part actually matters πŸ”₯


πŸŽ€ PARAMETERS πŸŽ€

  • opts β€” a mongoc_client_encryption_datakey_opts_t. your little options bag, the main character of this whole function πŸ’…
  • keyaltnames β€” an array of strings. the nicknames themselves, bestie ✨
  • keyaltnames_count β€” the number of strings in keyaltnames. gotta tell it how many there are or it simply will not know 😭

πŸ‘‘ SEE ALSO πŸ‘‘

  • mongoc_client_encryption_encrypt_opts_set_keyaltname() β€” the sibling function, go give it a read too πŸ¦‹

🌈 AUTHOR 🌈

MongoDB, Inc β€” yes, the MongoDB, Inc πŸ’œ


2009-present, MongoDB, Inc. β€” iconic, protected, periodt πŸŽ€


ok that's the whole page, go forth and name your data keys something adorable, mwah πŸ’–βœ¨

libmongoc version 2.5.6, dated Oct 09, 2026 β€” signed off with love, from your favorite unix gremlin πŸ§šπŸ’œ

πŸ“¦ where this page comes from