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 thegnutls_pkcs_encrypt_flags_telements, 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 π
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
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms