gnutls_system_key_add_x509(3)
β¨ gnutls_system_key_add_x509 β¨
okay bestie, welcome to the gnutls manual, and today's main character is gnutls_system_key_add_x509 from the gnutls section 3 pages. it's an API function, it's giving very "let me file this for you" energy, and we're gonna get into it. π
πΈ NAME πΈ
gnutls_system_key_add_x509 β literally an API function, that's the whole name, no notes π«Ά
π SYNOPSIS π
#include <gnutls/system-keys.h>
int gnutls_system_key_add_x509(gnutls_x509_crt_t crt,
gnutls_x509_privkey_t privkey, const char * label, char ** cert_url,
char ** key_url);
like. look at her. iconic signature. β¨
π¦ ARGUMENTS π¦
gnutls_x509_crt_t crtβ the certificate that's getting added, bestie. the actual cert. πgnutls_x509_privkey_t privkeyβ and the key that's getting added. they come as a pair, they're a package deal, fr fr. πconst char * labelβ the friendly name that describes the key. like a lil nickname so you know who's who. π·οΈchar ** cert_urlβ if this is non-NULL, it'll end up holding an allocated value with the certificate URL. allocated!! so that's yours to deal with. πchar ** key_urlβ same vibe, if it's non-NULLit'll contain an allocated value with the key URL. π
π DESCRIPTION π
so what does she actually do? this function will add the given key and certificate pair to the system list. that's it. that's the whole thing. key + cert, together, into the system list. slay. β¨
β RETURNS β
on success you get GNUTLS_E_SUCCESS (which is 0, love that for us). otherwise you get a negative error value, and honestly? we don't love that. π
π SINCE π
3.4.0 β she's been around, she's got history, she's a legacy icon. π
π REPORTING BUGS π
found a bug? not me being the messenger but:
- 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. so like, go off, but 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_system_key_add_x509(3), brought to you by gnutls 3.8.13 β mwah, go add some key pairs, ily π«Άπβ¨
π¦ 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