gnutls_privkey_import_url(3)
β¨ gnutls_privkey_import_url β¨
okay so bestie, we're in the gnutls manual, section 3, and today's main character is gnutls_privkey_import_url(3) β the lil function that lets you pull a private key straight out of a PKCS11 or TPM URL. no cap. π
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_privkey_import_url(gnutls_privkey_t key, const char * url,
unsigned int flags);
likeβ¦ she's giving very demure, very mindful, three args and a dream π«Ά
π ARGUMENTS π
gnutls_privkey_t keyβ your key, and it's gotta be of typegnutls_privkey_t. that's the whole vibe. πconst char * urlβ a PKCS 11 url. yes literally just a URL, that's the source of the key. iconic honestly. πunsigned int flagsβ bestieβ¦ should be zero. that's it. that's the instruction. zero. π«
π DESCRIPTION π
so what does she DO? this function will import a PKCS11 or TPM URL as a private key. that's the whole assignment and she ate. π₯
and if you're sitting there like "okay but which URL types are even supported??" β not me being helpful, but you can literally check that with gnutls_url_is_supported(). go ask her. iykyk. β¨
β RETURNS β
on success? GNUTLS_E_SUCCESS (0) is returned. slay. π
otherwise you get a negative error value, which is giving not slay but at least it's honest. π
π¦ SINCE π¦
3.1.0 β she's been around a minute, an elder stateswoman of the API honestly π
π REPORTING BUGS π
found a bug? don't be shy, report it to <bugs@gnutls.org>. fr fr, they wanna know. π
home page: https://www.gnutls.org β go say hi π
π 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 means you can share it, go off π«Ά)
π 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 notes π
okay bye ily, this was gnutls version 3.8.13, page gnutls_privkey_import_url(3) β go import some keys and be the main character of your own TLS handshake πΈβ¨π
π¦ 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