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