gnutls_x509_crt_set_pubkey(3)
π gnutls_x509_crt_set_pubkey(3) π
okay bestie, welcome to the gnutls manual β this one's a lil function page, and yes it's exactly as niche and exactly as useful as it sounds π
β¨ NAME β¨
gnutls_x509_crt_set_pubkey β it's an API function, and it does exactly one job: gluing a public key onto a certificate π«Ά
β¨ SYNOPSIS β¨
#include <gnutls/abstract.h>
int gnutls_x509_crt_set_pubkey(gnutls_x509_crt_t crt, gnutls_pubkey_t
key);
β¨ ARGUMENTS β¨
gnutls_x509_crt_t crtβ bestie this one should contain agnutls_x509_crt_ttype. that's the whole vibe check for this argument πgnutls_pubkey_t keyβ and this one holds a public key. that's it. that's the whole thing β¨
β¨ DESCRIPTION β¨
so, the way this works: this function will set the public parameters from the given public key to the certificate. literally just moves the public params over. and here's the slay part β the key can be deallocated after that. so you don't have to keep it around forever, she's done her job, let her go π¦
β¨ RETURNS β¨
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, which is giving "something went wrong and it's not telling you nicely" π
β¨ SINCE β¨
2.12.0 β she's been iconic since way back β
β¨ REPORTING BUGS β¨
found a bug? report it to <bugs@gnutls.org>. no cap, they actually want to know π
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/
π reminder for the girlies: this is the gnutls_x509_crt_set_pubkey(3) page from gnutls 3.8.13 β so if your version is different, don't come for me, come for your package manager. periodt π
πΈ
stay encrypted, stay iconic, mwah ππ§π
π¦ 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