gnutls_privkey_import_tpm_raw(3)
β¨ gnutls_privkey_import_tpm_raw β¨
okay bestie, buckle up, we're in the gnutls manual and this one is a whole little function called gnutls_privkey_import_tpm_raw. it's giving "let me slide a TPM key into your abstract privkey era." π
πΈ NAME πΈ
gnutls_privkey_import_tpm_raw β an API function, no cap. literally what it says on the tin. π«Ά
π SYNOPSIS π
#include <gnutls/abstract.h>
int gnutls_privkey_import_tpm_raw(gnutls_privkey_t pkey, const
gnutls_datum_t * fdata, gnutls_tpmkey_fmt_t format, const char *
srk_password, const char * key_password, unsigned int flags);
six args, one vibe check, zero notes. π
π¦ ARGUMENTS π¦
gnutls_privkey_t pkeyβ the private key. your main character, fr.const gnutls_datum_t * fdataβ the TPM key that's about to be imported. it's coming home πgnutls_tpmkey_fmt_t formatβ the format of that private key. gotta know what we're working with.const char * srk_passwordβ the password for the SRK key. it's optional, so if you don't have one, no stress π«Άconst char * key_passwordβ a password for the key. also optional. iconic flexibility tbh.unsigned int flagsβ should be zero. that's it. that's the whole thing. zero. π
π DESCRIPTION π
so the way that this works: this function imports the given private key into the abstract gnutls_privkey_t type. slay, congrats, it's abstract now β¨
and about those passwords? the same rules as in gnutls_privkey_import_tpm_url() apply. so if you already know how that one handles passwords, you're already set, iykyk.
β RETURNS β
if everything goes right: GNUTLS_E_SUCCESS (0) is returned. periodt. π
otherwise? a negative error value. π not the negative error value.
π SINCE π
3.1.0 β an elder, lowkey, but still serving. π
π REPORTING BUGS π
found a bug? don't be shy, 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. so like, take it, share it, just keep the receipts bestie π§
π 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/
gnutls version 3.8.13, and this little page is dated gnutls_privkey_import_tpm_raw(3). that's the whole manual page, bestie β now go import that TPM key, you've got this πβ¨π¦
π¦ 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