gnutls_pkcs12_bag_decrypt(3)
β¨ gnutls_pkcs12_bag_decrypt β¨
okay bestie, welcome to the gnutls manual β yes, the whole thing, and yes we're doing the PKCS#12 corner of it today π This little guy lives in section 3 (that's the library-functions section, iykyk).
πΈ NAME πΈ
gnutls_pkcs12_bag_decrypt</purl> β it's an API function, and its whole job is un-encrypting a bag. That's it. That's the gig. π
π SYNOPSIS π
#include <gnutls/pkcs12.h>
int gnutls_pkcs12_bag_decrypt(gnutls_pkcs12_bag_t bag, const char * pass);
π¦ ARGUMENTS π¦
gnutls_pkcs12_bag_t bagβ the bag, bestie. literally the bag we're decrypting.const char * passβ the password used for encryption. and listen, it must be ASCII. no fancy unicode glyphs, no emoji passwords (sad, I know π), ASCII only, periodt.
π DESCRIPTION π
so this function will decrypt the given encrypted bag and return 0 on success. that's the whole vibe. hand it an encrypted bag + the password, get an unencrypted bag back. no cap.
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned β slay. Otherwise you get a negative error code back, which is the library's way of saying "not today, girlie". π
π REPORTING BUGS π
Found a bug? spill 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. (basically: take it, share it, just keep the receipts π«Ά)
π 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 π this was gnutls version 3.8.13, dated gnutls_pkcs12_bag_decrypt(3) β mwah, go decrypt something iconic πβ¨
π¦ 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