gnutls_pubkey_import_x509(3)
β¨ gnutls_pubkey_import_x509 β¨
okay bestie so we're in the gnutls manual, and today's main character is gnutls_pubkey_import_x509 β the API function that does exactly one job and does it slayfully π
πΈ NAME πΈ
gnutls_pubkey_import_x509 β it's an API function, periodt.
π SYNOPSIS π
#include <gnutls/abstract.h>
int gnutls_pubkey_import_x509(gnutls_pubkey_t key, gnutls_x509_crt_t
crt, unsigned int flags);
like. look at her. three args. no drama. π₯
π¦ ARGUMENTS π¦
gnutls_pubkey_t keyβ this is the public key, the lil guy we're writing into π«Άgnutls_x509_crt_t crtβ the certificate to be imported</crt>, aka where we're stealing the key from (consensually, it's fine)unsigned int flagsβ bestie. it should be zero. that's the whole vibe. zero. that's it. π
π DESCRIPTION π
so the way this works: this function will import the given public key into the abstract gnutls_pubkey_t type. that's it. that's the function. iconic behaviour, no notes β¨
π RETURNS π
on success you get GNUTLS_E_SUCCESS (which is 0, the number we all love) and otherwise you get a negative error value and you go π
β SINCE β
2.12.0 β she's been here since 2.12.0, a true veteran, highkey legendary π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the girlies:
- 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. keep the receipt bestie π§
π 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, go visit:
https://www.gnutls.org/manual/
and that's the whole page, no cap π
this was gnutls version 3.8.13, and yeah the manpage itself is dated the same β go off, 3.8.13, we love you πβ¨π«Ά
π¦ 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