gnutls_pkcs12_...t_friendly_name(3)
π gnutls_pkcs12_bag_set_friendly_name(3) π
okay bestie, welcome to the gnutls manual page for gnutls_pkcs12_bag_set_friendly_name β yes that's a whole mouthful, we love her anyway π«Ά this one lives in the gnutls family of man pages and she's here to give your PKCS#12 bag elements a cute lil name. slay.
β¨ NAME β¨
gnutls_pkcs12_bag_set_friendly_name β it's an API function, no cap π
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs12.h>
int gnutls_pkcs12_bag_set_friendly_name(gnutls_pkcs12_bag_t bag,
unsigned indx, const char * name);
like, literally just include the header and call her. that's the whole vibe.
π ARGUMENTS π
gnutls_pkcs12_bag_t bagβ the bag itself, the main character of this whole operation πunsigned indxβ which element inside the bag we're adding the id to, index-style π¦const char * nameβ the name. the actual name. the friendly one. her name π
π§ DESCRIPTION π§
so here's the tea: this function adds the given key friendly name to the bag element you picked out by index. that name gets encoded as a 'Friendly name' bag attribute β and that attribute is usually what you use to set a user name for the local private key + certificate pair. iykyk. it's giving "let me label my keys so future me isn't confused" energy and honestly? obsessed.
β RETURNS β
on success you get GNUTLS_E_SUCCESS (0) back π otherwise it hands you a negative error value. or a negative error code on error. (yes bestie, the original says both, and we respect her for it π) either way, negative = not the vibe.
π REPORTING BUGS π
found a bug? not cute. report it to <bugs@gnutls.org> π
home page: https://www.gnutls.org β go say hi π
π 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. periodt. π
π 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/
ngl this page is from gnutls version 3.8.13, and it's filed under the gnutls manual section. mwah, thanks for reading, go name your keys 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