gnutls_pkcs12_bag_set_data(3)
π gnutls_pkcs12_bag_set_data(3) π
okay bestie, so this one lives in the gnutls manual β section 3, the library functions section, iykyk π«Ά β and it's literally the function that shoves a lil data blob into a PKCS#12 bag. Cute, right? Let's get into it β¨
πΈ NAME πΈ
gnutls_pkcs12_bag_set_data β API function π
π SYNOPSIS π
#include <gnutls/pkcs12.h>
int gnutls_pkcs12_bag_set_data(gnutls_pkcs12_bag_t bag,
gnutls_pkcs12_bag_type_t type, const gnutls_datum_t * data);
π¦ ARGUMENTS π¦
gnutls_pkcs12_bag_t bagβ bestie, this is the bag. The bag we're putting stuff into. The main character of the whole operation πgnutls_pkcs12_bag_type_t typeβ the data's type, like, what kind of thing are we even adding here πconst gnutls_datum_t * dataβ the data to be copied. yes, copied, she gets duplicated into the bag, no sharing, no borrowing π
β¨ DESCRIPTION β¨
So the vibe is: this function will insert the given data of the given type into the bag. That's it. That's the whole moment. You hand her a type, you hand her data, she puts it in the bag, slay π
π RETURNS π
On success? She gives you back the index of the added bag β like, where it landed, so you can find her later π₯°
On error? A negative value. And no, bestie, negative is not a vibe. Check it. Fr fr π
π REPORTING BUGS π
Found something cursed? Report bugs 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.
π₯ 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, no cap π§π go forth and populate those bags
gnutls 3.8.13 β that's the source and version, and the page is filed under gnutls_pkcs12_bag_set_data(3). mwah, bye bestie πππΈ
π¦ 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