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 Β© 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