gnutls_privkey_import_pkcs11(3)
β¨ gnutls_privkey_import_pkcs11 β¨
okay bestie, so this is a page from the gnutls manual, section 3 (the library-functions girlies π ), and it's literally about yeeting a PKCS#11 private key into the abstract key world. stay with me, it's cute, I promise π«Ά
πΈ NAME πΈ
gnutls_privkey_import_pkcs11 β the API function that does exactly what it says on the tin π
π SYNOPSIS π
#include <gnutls/abstract.h>
int gnutls_privkey_import_pkcs11(gnutls_privkey_t pkey,
gnutls_pkcs11_privkey_t key, unsigned int flags);
π¦ ARGUMENTS π¦
gnutls_privkey_t pkeyβ the private key. the destination, the main character, the one getting the glow-up β¨gnutls_pkcs11_privkey_t keyβ the private key that's getting imported. it's the one being moved in πunsigned int flagsβ flags for the import, bestie. they control the vibe of the whole operation π
π DESCRIPTION π
so basically this function imports the private key you hand it into the abstract gnutls_privkey_t type. glow-up complete, she's abstract now π
β οΈ lowkey important: the gnutls_pkcs11_privkey_t object must not be deallocated during the lifetime of this structure. like, do not free her while she's still being used, that's not the vibe. fr fr. π«£
and flags? it might be zero, or it might be one of GNUTLS_PRIVKEY_IMPORT_AUTO_RELEASE and GNUTLS_PRIVKEY_IMPORT_COPY. pick your fighter π
π RETURNS π
slay on success: GNUTLS_E_SUCCESS (0) comes back at you. otherwise? a negative error value, which is giving "something went wrong" energy π
β SINCE β
2.12.0 β she's been iconic for a while now, no cap π§
π REPORTING BUGS π
found a bug? not me gatekeeping the address:
- 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. (yes, that's the whole thing, and yes, it's giving generous queen π)
π₯ 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, bestie, just go visit:
https://www.gnutls.org/manual/
okay that's the whole page, you ate that π thanks for reading, ily, go import some keys responsibly π
β brought to you by the gnutls manual, version 3.8.13 π β¨ mwah, 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