gnutls_privkey_import_x509(3)
β¨ gnutls_privkey_import_x509(3) β¨
okay so bestie, we're in the gnutls manual and today's main character is gnutls_privkey_import_x509 π it's an API function, it's iconic, and it's here to move your private key into its abstract-era glow-up. let's get into it π«Ά
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_privkey_import_x509(gnutls_privkey_t pkey,
gnutls_x509_privkey_t key, unsigned int flags);
π ARGUMENTS π
gnutls_privkey_t pkeyβ the private key π this is the destination, the one getting the glow-up.gnutls_x509_privkey_t keyβ the private key that's getting imported, aka the source, the one doing the arriving.unsigned int flagsβ the flags for the import, the little settings that decide how this whole thing goes down β¨
π DESCRIPTION π
so what this function does is it takes the private key you hand it and imports it into the abstract gnutls_privkey_t type. that's the whole vibe. it's giving "move over, we're abstract now" π¦
β οΈ IMPORTANT BESTIE β οΈ the gnutls_x509_privkey_t object must not be deallocated during the lifetime of this structure. like, do not free it while this thing is still alive, fr fr. that's a real one π
and the flags situation? it might be zero, or it might be one of GNUTLS_PRIVKEY_IMPORT_AUTO_RELEASE and GNUTLS_PRIVKEY_IMPORT_COPY. pick your fighter π
π RETURNS π
on success you get GNUTLS_E_SUCCESS (0) back, slay β¨ otherwise you get a negative error value, which is the "not me getting a negative number" moment π
β SINCE β
2.12.0 β an elder, an OG, we respect her π
π REPORTING BUGS π
found a bug? report it to <bugs@gnutls.org>. don't be shy, they wanna 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. 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/
and that's the whole page bestie, no cap π this was gnutls_privkey_import_x509(3) from the gnutls manual, version 3.8.13 β ty for reading, 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