gnutls_pubkey_import_tpm_url(3)
π gnutls_pubkey_import_tpm_url(3) π
okay bestie, welcome to the gnutls manual, this one's a page from the big gnutls book and it's all about yanking a public key out of a TPM by its URL. it's giving niche but iconic, fr fr. let's go π«Ά
β¨ NAME β¨
gnutls_pubkey_import_tpm_url β the API function, the moment, the legend π
β¨ SYNOPSIS β¨
#include <gnutls/abstract.h>
int gnutls_pubkey_import_tpm_url(gnutls_pubkey_t pkey, const char * url,
const char * srk_password, unsigned int flags);
β¨ ARGUMENTS β¨
gnutls_pubkey_t pkeyβ the public key, aka your main character πconst char * urlβ the URL of the TPM key that's getting imported. it's literally the address, no cap πconst char * srk_passwordβ the password for the SRK key. it's optional, so no pressure πunsigned int flagsβ should be zero. that's it, that's the whole vibe π«
β¨ DESCRIPTION β¨
so this function will import the given private key into the abstract gnutls_privkey_t type. yes, we said private key, we're just reporting what the page says, don't come for me π
heads up bestie, important caveat: unlessGNUTLS_PUBKEY_DISABLE_CALLBACKSis specified, if incorrect (orNULL) passwords are given, the PKCS11 callback functions will be used to obtain the correct passwords. otherwise, if the SRK password is wrong,GNUTLS_E_TPM_SRK_PASSWORD_ERRORis returned. so like, it'll try to help you, and if you told it not to, it'll just β¨failβ¨. not me being dramatic, that's just the deal π
β¨ RETURNS β¨
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value π slay when it works, sad when it doesn't.
β¨ SINCE β¨
3.1.0 β an elder, honestly. been here since before some of y'all were born π
β¨ REPORTING BUGS β¨
found a bug? tell the gnutls girlies:
- 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. (translation: take it, share it, just keep the receipts π§Ύπ)
β¨ 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, go visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie! this was gnutls_pubkey_import_tpm_url(3) from gnutls version 3.8.13 β thanks for reading, ily, go import some keys responsibly πβ¨ππ¦
π¦ 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