gnutls_privkey_import_x509_raw(3)
π gnutls_privkey_import_x509_raw(3) π
okay bestie, welcome to the gnutls manual, and specifically to the page for gnutls_privkey_import_x509_raw. this is the glow-up moment where your raw private key data becomes an actual abstract gnutls_privkey_t. it's giving β¨main character energyβ¨ for keys. let's get into it π«Ά
πΈ NAME πΈ
gnutls_privkey_import_x509_raw β an API function, bestie. that's the whole name, no notes. π
π¦ SYNOPSIS π¦
#include <gnutls/abstract.h>
int gnutls_privkey_import_x509_raw(gnutls_privkey_t pkey, const
gnutls_datum_t * data, gnutls_x509_crt_fmt_t format, const char *
password, unsigned int flags);
yep, that's the whole signature, copy it exactly, don't freestyle it. π
π ARGUMENTS π
gnutls_privkey_t pkeyβ the private key. that's the glow-up target, the one getting imported into. πconst gnutls_datum_t * dataβ the private key data that's getting imported. the raw material, the before picture. πgnutls_x509_crt_fmt_t formatβ the format of the private key. so we know how to read it, iykyk. πconst char * passwordβ a password. it's optional, so no pressure if there isn't one. πunsigned int flagsβ an ORed sequence ofgnutls_pkcs_encrypt_flags_t. yes, ORed, as in you smush them together with|. β¨
π DESCRIPTION π
so the way that this function works: it imports the given private key into the abstract gnutls_privkey_t type. literally just β¨transformationβ¨.
The supported formats are basic unencrypted key, PKCS8, PKCS12, TSS2, and the openssl format. so you've got options, bestie, and they all slay in their own way. π₯
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you see 0, you ate. if you see a negative number, something's not vibing β go check it. π
π§ SINCE π§
3.1.0 β she's been iconic since way back. periodt. π
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
not me asking you to email the bugs in, but yes, fr fr, that's the address. π«Ά
π 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/
and that's the whole page, bestie! this was gnutls 3.8.13, the gnutls_privkey_import_x509_raw(3) page. go import some keys and be iconic. bye πβ¨π
π¦ 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