gnutls_pkcs12_bag_encrypt(3)

πŸ’– NAME πŸ’–

gnutls_pkcs12_bag_encrypt β€” bestie, it's an API function, and it's here to lock your bag UP πŸ”’βœ¨


✨ SYNOPSIS ✨

#include <gnutls/pkcs12.h>

int gnutls_pkcs12_bag_encrypt(gnutls_pkcs12_bag_t bag, const char *
pass, unsigned int flags);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_pkcs12_bag_t bag β€” the bag. yes, THE bag. the one we're about to encrypt. πŸ‘‘
  • const char * pass β€” the password used for encryption, and bestie listen: it must be ASCII. no fancy unicode era, okay? plain ASCII only. 😭
  • unsigned int flags β€” should be one of the gnutls_pkcs_encrypt_flags_t elements, bitwise or'd together. so like, you take those flag vibes and OR them. that's the assignment. πŸ’…

🌸 DESCRIPTION 🌸

okay so this function will encrypt the given bag. that's it. that's the whole thing. it takes your bag and it locks it up. iconic behavior honestly. πŸ¦‹


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (0) is returned β€” slay, zero, the good number, we love to see it. πŸ’š

otherwise? a negative error code comes back. not the vibe. check it, bestie, don't just ignore it. 🚩


πŸ› REPORTING BUGS πŸ›

found a bug? not me finding a bug πŸ’€ β€” report it to <bugs@gnutls.org>.

home page: https://www.gnutls.org


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

(no cap, you can share this. just keep the notice. periodt. πŸ’œ)


🌈 SEE ALSO 🌈

the full documentation for gnutls is maintained as a Texinfo manual. if the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:

https://www.gnutls.org/manual/

and that's the whole page, bestie β€” brought to you by the gnutls manual, version 3.8.13, dated somewhere in that 2001-2023 copyright era. go encrypt a bag, stay ASCII, and check your return codes. mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from