gnutls_pkcs11_token_get_url(3)
π gnutls_pkcs11_token_get_url π
okay bestie, so this is a page from the gnutls manual β the whole gnutls manpage collection, the PKCS#11 corner of it anyway β and we're gonna talk about one tiny little function that goes and fetches URLs for the tokens hanging out on your system. no cap, it's short. let's go π¦
πΈ NAME πΈ
gnutls_pkcs11_token_get_url β literally just an API function, that's the whole job description π
β¨ SYNOPSIS β¨
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_token_get_url(unsigned int seq,
gnutls_pkcs11_url_type_t detailed, char ** url);
π ARGUMENTS π
unsigned int seqβ the sequence number, and it starts counting from0like a good little zero-indexed girlie β¨gnutls_pkcs11_url_type_t detailedβ if this is non zero, you're asking for a detailed URL, periodtchar ** urlβ this bad boy will contain an allocated url when the function is done with it π
π DESCRIPTION π
so this function will return the URL for each token available in system. that's it, that's the vibe π
and listen β the url has to be released using gnutls_free(). don't forget. don't ghost your memory allocations, bestie, that's not the energy we're bringing into this repo π
π₯ RETURNS π₯
- On success,
GNUTLS_E_SUCCESS(0) is returned π GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEif the sequence number exceeds the available tokens π- otherwise, a negative error value π
β SINCE β
2.12.0 β oldie but a goodie, she's been iconic since day one π
π«Ά REPORTING BUGS π«Ά
found a bug? don't be shy, 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. (yes, fr fr, you can copy 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 visit
https://www.gnutls.org/manual/ π«
that's the whole page babes π this was gnutls 3.8.13, the gnutls_pkcs11_token_get_url(3) entry, and it's giving "short, sweet, and fully documented." slay π
β¨π¦
π¦ 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