gnutls_pkcs11_privkey_export_url(3)
π gnutls_pkcs11_privkey_export_url π
okay bestie, so this one lives in the gnutls manual, and it's about turning your fancy PKCS 11 key into a cute lil URL that points right at it. very demure, very mindful, very "here's where my key is living." β¨
β¨ SYNOPSIS β¨
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_privkey_export_url(gnutls_pkcs11_privkey_t key,
gnutls_pkcs11_url_type_t detailed, char ** url);
π ARGUMENTS π
gnutls_pkcs11_privkey_t keyβ this is the PKCS 11 key, like the actual key you're holding. she's the main character here πgnutls_pkcs11_url_type_t detailedβ non zero if a detailed URL is required. so like,0= give me the chill version, nonzero = give me the full lore πchar ** urlβ will contain an allocated url. so you pass in the address of achar *and it gets filled up with a freshly allocated string. (allocated = you're gonna need to free it later, just saying π«Ά)
πΈ DESCRIPTION πΈ
This function will export a URL identifying the given key. that's it, that's the whole vibe β you hand over a key, you get back a URL that says "this one, right here." iconic behavior fr fr β¨
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you get a 0 bestie, we're slaying π
if it's negative, it's giving "something went wrong" and you should go check π
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
like please actually tell them, they wanna know, no cap π«Ά
π 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: you can copy and share this file however you want, no payment needed, just keep the copyright notice and this notice intact. periodt. π)
π¦ 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/
go read the whole thing, it's lowkey a masterpiece iykyk πβ¨
mwah π that was gnutls 3.8.13, signing off β go export some URLs bestie, you 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