gnutls_pkcs12_bag_get_data(3)
π gnutls_pkcs12_bag_get_data(3) π
okay bestie, welcome to the gnutls manual β this one's a lil function called gnutls_pkcs12_bag_get_data, and it's literally the "hey can u hand me what's inside this bag" function. no cap. β¨
π NAME π
gnutls_pkcs12_bag_get_data β API function
like, that's the whole name. it does what it says. iconic behaviour honestly.
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs12.h>
int gnutls_pkcs12_bag_get_data(gnutls_pkcs12_bag_t bag, unsigned indx,
gnutls_datum_t * data);
yes she's a three-argument girlie. we love a consistent signature. π«Ά
π¦ ARGUMENTS π¦
gnutls_pkcs12_bag_t bagβ The bag πΌ like, the actual bag object you're digging around in.unsigned indxβ The element of the bag to get the data from. which slot, bestie, which slot.gnutls_datum_t * dataβ where the bag's data will be. Should be treated as constant. π¨ constant, okay? don't go messing with it.
β¨ DESCRIPTION β¨
So this function will return the bag's data. that's it. that's the job. π
The data is a constant that is stored into the bag β meaning it's not a lil copy just for you, it's the thing, living inside the bag.
π¨ important bestie alert: Should not be accessed after the bag is deleted. the bag dies, the data dies with it. do not be out here using a pointer to a deleted bag's guts, that's giving undefined behaviour and we do NOT want that energy. π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.
so like β zero is the slay. anything negative is the "something went wrong, check it" vibe. β
π REPORTING BUGS π
found a bug? not the vibe, but okay, tell the people:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they wanna know fr fr. π
π 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.
(translation: 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/
go read the whole thing, i promise it's worth it. π
and that's the page, bestie!! π
this was gnutls_pkcs12_bag_get_data(3) from the gnutls manual, version 3.8.13 β mwah, love that for us. go forth and get your bag's data (but like, not after you delete the bag, ok?). periodt. ππβ¨
π¦ 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