gnutls_pkcs11_privkey_import_url(3)
β¨ gnutls_pkcs11_privkey_import_url(3) β¨
okay bestie, welcome to the gnutls manual, this page is gnutls_pkcs11_privkey_import_url, an API function, and it's giving "let me introduce your token's private key to GnuTLS" π
πΈ NAME πΈ
gnutls_pkcs11_privkey_import_url β API function π
π¦ SYNOPSIS π¦
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_privkey_import_url(gnutls_pkcs11_privkey_t pkey, const
char * url, unsigned int flags);
π ARGUMENTS π
gnutls_pkcs11_privkey_t pkeyβ the private key, that's the one we're hooking up π«Άconst char * urlβ a PKCS 11 url that identifies the key, like a little address for your key fr frunsigned int flagsβ an or sequence ofGNUTLS_PKCS11_OBJ_*flags, mix and match as needed β¨
π DESCRIPTION π
So here's the tea: this function will "import" a PKCS 11 URL that identifies a private key into the gnutls_pkcs11_privkey_t type. But ngl, "import" is in quotes for a reason β in reality, since in most cases keys cannot be exported, the private key structure is just being associated with the available operations on the token. no cap, the key stays home, you're just vibing with it π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value π (negative = not the vibe, go read the error).
π REPORTING BUGS π
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. iconic behaviour tbh π
π₯ 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/
lowkey if you're still here, go read the actual docs too, they ate π
that's the whole page bestie, written for gnutls version 3.8.13, manual name gnutls β stay hydrated, keep your keys on the token, periodt π¦πβ¨
π¦ 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