gnutls_tpm_key_list_get_url(3)
β¨ gnutls_tpm_key_list_get_url β¨
okay so bestie, welcome to the gnutls manual page for gnutls_tpm_key_list_get_url β yes the name is a mouthful, yes it's iconic, no we're not changing it π
this is page three of the gnutls manual, section 3, and it's literally all about pulling a URL out of a TPM key list. stay with me, it's giving very niche but very useful π¦
πΈ SYNOPSIS πΈ
#include <gnutls/tpm.h>
int gnutls_tpm_key_list_get_url(gnutls_tpm_key_list_t list, unsigned int
idx, char ** url, unsigned int flags);
like, that's the whole vibe. one function, four args, zero drama π
π«Ά ARGUMENTS π«Ά
gnutls_tpm_key_list_t listβ a list of the keys. yes, THE list. the one with the keys in it πunsigned int idxβ the index of the key you want. and bestie, it starts from zero.0is the first one, not1. classic zero-indexed behaviour, no cap.char ** urlβ the URL to be returned. this is where the function drops the goods π¬unsigned int flagsβ should be zero. that's it. that's the whole requirement. zero, bestie π
π DESCRIPTION π
so here's the tea: this function will return, for each given index, a URL of the corresponding key. one index in, one URL out. simple, clean, slay β¨
and if you hand it an index that's out of bounds? not it. it returns GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE instead. so like, vibe check your index before you call, fr fr π
π RETURNS π
on success, GNUTLS_E_SUCCESS (which is 0, queen of numbers) is returned π otherwise you get a negative error value β so if the number is negative, something went sideways and you should probably go look at it π
β SINCE β
3.1.0 β she's been here since 3.1.0 and she's not going anywhere π«Ά
π REPORTING BUGS π
found a bug? don't just scream into the group chat, actually report it:
- 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, share it, remix it, whatever β just keep the receipts, bestie π§
π₯ SEE ALSO π₯
the full documentation for gnutls is maintained as a Texinfo manual. and if the /usr/share/doc/gnutls/ directory does not contain the HTML form, go visit:
https://www.gnutls.org/manual/
iykyk π
lowkey reminder: flags should be zero. i'm not saying it twice. okay i literally just said it twice. anyway π
and that's the page!! this was gnutls version 3.8.13, manual page gnutls_tpm_key_list_get_url in section 3 β thanks for reading the whole thing, you ate that π
β¨π
π¦ 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